@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.mjs
CHANGED
|
@@ -2766,7 +2766,7 @@ function convertToOpenRouterChatMessages(prompt) {
|
|
|
2766
2766
|
return true;
|
|
2767
2767
|
}
|
|
2768
2768
|
const format = (_a17 = detail.format) != null ? _a17 : DEFAULT_REASONING_FORMAT;
|
|
2769
|
-
if (format !== "anthropic-claude-v1" /* AnthropicClaudeV1 */) {
|
|
2769
|
+
if (format !== "anthropic-claude-v1" /* AnthropicClaudeV1 */ && format !== "google-gemini-v1" /* GoogleGeminiV1 */) {
|
|
2770
2770
|
return true;
|
|
2771
2771
|
}
|
|
2772
2772
|
return !!detail.signature;
|
|
@@ -2775,7 +2775,7 @@ function convertToOpenRouterChatMessages(prompt) {
|
|
|
2775
2775
|
const logger = globalThis.AI_SDK_LOG_WARNINGS;
|
|
2776
2776
|
if (logger !== false && typeof logger !== "function") {
|
|
2777
2777
|
console.warn(
|
|
2778
|
-
"[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."
|
|
2778
|
+
"[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."
|
|
2779
2779
|
);
|
|
2780
2780
|
}
|
|
2781
2781
|
}
|