@openrouter/ai-sdk-provider 2.2.3 → 2.2.4
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.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -5
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +2 -4
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -4
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3506,15 +3506,13 @@ var OpenRouterChatLanguageModel = class {
|
|
|
3506
3506
|
}
|
|
3507
3507
|
const reasoningMetadata = {
|
|
3508
3508
|
openrouter: {
|
|
3509
|
-
reasoning_details:
|
|
3509
|
+
reasoning_details: accumulatedReasoningDetails.map((d) => __spreadValues({}, d))
|
|
3510
3510
|
}
|
|
3511
3511
|
};
|
|
3512
3512
|
for (const detail of delta.reasoning_details) {
|
|
3513
3513
|
switch (detail.type) {
|
|
3514
3514
|
case "reasoning.text" /* Text */: {
|
|
3515
|
-
|
|
3516
|
-
emitReasoningChunk(detail.text, reasoningMetadata);
|
|
3517
|
-
}
|
|
3515
|
+
emitReasoningChunk(detail.text || "", reasoningMetadata);
|
|
3518
3516
|
break;
|
|
3519
3517
|
}
|
|
3520
3518
|
case "reasoning.encrypted" /* Encrypted */: {
|
|
@@ -4558,7 +4556,7 @@ function withUserAgentSuffix2(headers, ...userAgentSuffixParts) {
|
|
|
4558
4556
|
}
|
|
4559
4557
|
|
|
4560
4558
|
// src/version.ts
|
|
4561
|
-
var VERSION2 = false ? "0.0.0-test" : "2.2.
|
|
4559
|
+
var VERSION2 = false ? "0.0.0-test" : "2.2.4";
|
|
4562
4560
|
|
|
4563
4561
|
// src/provider.ts
|
|
4564
4562
|
function createOpenRouter(options = {}) {
|