@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.mjs
CHANGED
|
@@ -2801,7 +2801,7 @@ function convertToOpenRouterChatMessages(prompt) {
|
|
|
2801
2801
|
return true;
|
|
2802
2802
|
}
|
|
2803
2803
|
const format = (_a17 = detail.format) != null ? _a17 : DEFAULT_REASONING_FORMAT;
|
|
2804
|
-
if (format !== "anthropic-claude-v1" /* AnthropicClaudeV1 */) {
|
|
2804
|
+
if (format !== "anthropic-claude-v1" /* AnthropicClaudeV1 */ && format !== "google-gemini-v1" /* GoogleGeminiV1 */) {
|
|
2805
2805
|
return true;
|
|
2806
2806
|
}
|
|
2807
2807
|
return !!detail.signature;
|
|
@@ -2810,7 +2810,7 @@ function convertToOpenRouterChatMessages(prompt) {
|
|
|
2810
2810
|
const logger = globalThis.AI_SDK_LOG_WARNINGS;
|
|
2811
2811
|
if (logger !== false && typeof logger !== "function") {
|
|
2812
2812
|
console.warn(
|
|
2813
|
-
"[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."
|
|
2813
|
+
"[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."
|
|
2814
2814
|
);
|
|
2815
2815
|
}
|
|
2816
2816
|
}
|
|
@@ -4799,7 +4799,7 @@ function withUserAgentSuffix2(headers, ...userAgentSuffixParts) {
|
|
|
4799
4799
|
}
|
|
4800
4800
|
|
|
4801
4801
|
// src/version.ts
|
|
4802
|
-
var VERSION2 = false ? "0.0.0-test" : "2.5.
|
|
4802
|
+
var VERSION2 = false ? "0.0.0-test" : "2.5.1";
|
|
4803
4803
|
|
|
4804
4804
|
// src/provider.ts
|
|
4805
4805
|
function createOpenRouter(options = {}) {
|