@llmgateway/ai-sdk-provider 2.0.1 → 2.1.1
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.
- package/dist/index.d.mts +2740 -6
- package/dist/index.d.ts +2740 -6
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +2872 -5
- package/dist/internal/index.d.ts +2872 -5
- package/dist/internal/index.js +3118 -29
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +3116 -28
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1440,7 +1440,9 @@ var LLMGatewayChatLanguageModel = class {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
1442
|
return null;
|
|
1443
|
-
}).filter(
|
|
1443
|
+
}).filter(
|
|
1444
|
+
(p) => p !== null
|
|
1445
|
+
) : choice.message.reasoning ? [
|
|
1444
1446
|
{
|
|
1445
1447
|
type: "reasoning",
|
|
1446
1448
|
text: choice.message.reasoning
|
|
@@ -2234,7 +2236,7 @@ function createLLMGateway(options = {}) {
|
|
|
2234
2236
|
"The LLMGateway model function cannot be called with the new keyword."
|
|
2235
2237
|
);
|
|
2236
2238
|
}
|
|
2237
|
-
if (modelId === "openai/gpt-3.5-turbo
|
|
2239
|
+
if (modelId === "openai/gpt-3.5-turbo") {
|
|
2238
2240
|
return createCompletionModel(
|
|
2239
2241
|
modelId,
|
|
2240
2242
|
settings
|