@openrouter/ai-sdk-provider 2.5.0 → 2.5.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.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +2 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/internal/index.js
CHANGED
|
@@ -2800,7 +2800,7 @@ function convertToOpenRouterChatMessages(prompt) {
|
|
|
2800
2800
|
return true;
|
|
2801
2801
|
}
|
|
2802
2802
|
const format = (_a17 = detail.format) != null ? _a17 : DEFAULT_REASONING_FORMAT;
|
|
2803
|
-
if (format !== "anthropic-claude-v1" /* AnthropicClaudeV1 */) {
|
|
2803
|
+
if (format !== "anthropic-claude-v1" /* AnthropicClaudeV1 */ && format !== "google-gemini-v1" /* GoogleGeminiV1 */) {
|
|
2804
2804
|
return true;
|
|
2805
2805
|
}
|
|
2806
2806
|
return !!detail.signature;
|
|
@@ -2809,7 +2809,7 @@ function convertToOpenRouterChatMessages(prompt) {
|
|
|
2809
2809
|
const logger = globalThis.AI_SDK_LOG_WARNINGS;
|
|
2810
2810
|
if (logger !== false && typeof logger !== "function") {
|
|
2811
2811
|
console.warn(
|
|
2812
|
-
"[openrouter] Some reasoning_details entries were removed because they were missing signatures. See https://github.com/OpenRouterTeam/ai-sdk-provider/issues/423 for more details."
|
|
2812
|
+
"[openrouter] Some reasoning_details entries were removed because they were missing signatures. See https://github.com/OpenRouterTeam/ai-sdk-provider/issues/423 and https://github.com/OpenRouterTeam/ai-sdk-provider/issues/418 for more details."
|
|
2813
2813
|
);
|
|
2814
2814
|
}
|
|
2815
2815
|
}
|