@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/index.js
CHANGED
|
@@ -2834,7 +2834,7 @@ function convertToOpenRouterChatMessages(prompt) {
|
|
|
2834
2834
|
return true;
|
|
2835
2835
|
}
|
|
2836
2836
|
const format = (_a17 = detail.format) != null ? _a17 : DEFAULT_REASONING_FORMAT;
|
|
2837
|
-
if (format !== "anthropic-claude-v1" /* AnthropicClaudeV1 */) {
|
|
2837
|
+
if (format !== "anthropic-claude-v1" /* AnthropicClaudeV1 */ && format !== "google-gemini-v1" /* GoogleGeminiV1 */) {
|
|
2838
2838
|
return true;
|
|
2839
2839
|
}
|
|
2840
2840
|
return !!detail.signature;
|
|
@@ -2843,7 +2843,7 @@ function convertToOpenRouterChatMessages(prompt) {
|
|
|
2843
2843
|
const logger = globalThis.AI_SDK_LOG_WARNINGS;
|
|
2844
2844
|
if (logger !== false && typeof logger !== "function") {
|
|
2845
2845
|
console.warn(
|
|
2846
|
-
"[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."
|
|
2846
|
+
"[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."
|
|
2847
2847
|
);
|
|
2848
2848
|
}
|
|
2849
2849
|
}
|
|
@@ -4832,7 +4832,7 @@ function withUserAgentSuffix2(headers, ...userAgentSuffixParts) {
|
|
|
4832
4832
|
}
|
|
4833
4833
|
|
|
4834
4834
|
// src/version.ts
|
|
4835
|
-
var VERSION2 = false ? "0.0.0-test" : "2.5.
|
|
4835
|
+
var VERSION2 = false ? "0.0.0-test" : "2.5.1";
|
|
4836
4836
|
|
|
4837
4837
|
// src/provider.ts
|
|
4838
4838
|
function createOpenRouter(options = {}) {
|