@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.js
CHANGED
|
@@ -1475,7 +1475,9 @@ var LLMGatewayChatLanguageModel = class {
|
|
|
1475
1475
|
}
|
|
1476
1476
|
}
|
|
1477
1477
|
return null;
|
|
1478
|
-
}).filter(
|
|
1478
|
+
}).filter(
|
|
1479
|
+
(p) => p !== null
|
|
1480
|
+
) : choice.message.reasoning ? [
|
|
1479
1481
|
{
|
|
1480
1482
|
type: "reasoning",
|
|
1481
1483
|
text: choice.message.reasoning
|
|
@@ -2269,7 +2271,7 @@ function createLLMGateway(options = {}) {
|
|
|
2269
2271
|
"The LLMGateway model function cannot be called with the new keyword."
|
|
2270
2272
|
);
|
|
2271
2273
|
}
|
|
2272
|
-
if (modelId === "openai/gpt-3.5-turbo
|
|
2274
|
+
if (modelId === "openai/gpt-3.5-turbo") {
|
|
2273
2275
|
return createCompletionModel(
|
|
2274
2276
|
modelId,
|
|
2275
2277
|
settings
|