langchain 0.3.6 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -118,7 +118,9 @@ params = {}) {
|
|
|
118
118
|
* _inferModelProvider("unknown-model"); // returns undefined
|
|
119
119
|
*/
|
|
120
120
|
function _inferModelProvider(modelName) {
|
|
121
|
-
if (modelName.startsWith("gpt-3") ||
|
|
121
|
+
if (modelName.startsWith("gpt-3") ||
|
|
122
|
+
modelName.startsWith("gpt-4") ||
|
|
123
|
+
modelName.startsWith("o1")) {
|
|
122
124
|
return "openai";
|
|
123
125
|
}
|
|
124
126
|
else if (modelName.startsWith("claude")) {
|
|
@@ -115,7 +115,9 @@ params = {}) {
|
|
|
115
115
|
* _inferModelProvider("unknown-model"); // returns undefined
|
|
116
116
|
*/
|
|
117
117
|
export function _inferModelProvider(modelName) {
|
|
118
|
-
if (modelName.startsWith("gpt-3") ||
|
|
118
|
+
if (modelName.startsWith("gpt-3") ||
|
|
119
|
+
modelName.startsWith("gpt-4") ||
|
|
120
|
+
modelName.startsWith("o1")) {
|
|
119
121
|
return "openai";
|
|
120
122
|
}
|
|
121
123
|
else if (modelName.startsWith("claude")) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "langchain",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"description": "Typescript bindings for langchain",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
"js-tiktoken": "^1.0.12",
|
|
521
521
|
"js-yaml": "^4.1.0",
|
|
522
522
|
"jsonpointer": "^5.0.1",
|
|
523
|
-
"langsmith": "^0.2.
|
|
523
|
+
"langsmith": "^0.2.8",
|
|
524
524
|
"openapi-types": "^12.1.3",
|
|
525
525
|
"p-retry": "4",
|
|
526
526
|
"uuid": "^10.0.0",
|