@openrouter/ai-sdk-provider 1.5.3 → 1.5.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.d.mts +1 -83
- package/dist/index.d.ts +1 -83
- package/dist/index.js +1 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -22
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -8
package/dist/index.mjs
CHANGED
|
@@ -2844,7 +2844,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
2844
2844
|
}
|
|
2845
2845
|
|
|
2846
2846
|
// src/version.ts
|
|
2847
|
-
var VERSION = false ? "0.0.0-test" : "1.5.
|
|
2847
|
+
var VERSION = false ? "0.0.0-test" : "1.5.4";
|
|
2848
2848
|
|
|
2849
2849
|
// src/provider.ts
|
|
2850
2850
|
function createOpenRouter(options = {}) {
|
|
@@ -2912,30 +2912,9 @@ var openrouter = createOpenRouter({
|
|
|
2912
2912
|
compatibility: "strict"
|
|
2913
2913
|
// strict for OpenRouter API
|
|
2914
2914
|
});
|
|
2915
|
-
|
|
2916
|
-
// src/toon/index.ts
|
|
2917
|
-
async function getToonModule() {
|
|
2918
|
-
try {
|
|
2919
|
-
return await import("@toon-format/toon");
|
|
2920
|
-
} catch (e) {
|
|
2921
|
-
throw new Error(
|
|
2922
|
-
"The @toon-format/toon package is required for TOON encoding/decoding. Install it with: npm install @toon-format/toon"
|
|
2923
|
-
);
|
|
2924
|
-
}
|
|
2925
|
-
}
|
|
2926
|
-
async function encodeToon(value, options) {
|
|
2927
|
-
const toon = await getToonModule();
|
|
2928
|
-
return toon.encode(value, options);
|
|
2929
|
-
}
|
|
2930
|
-
async function decodeToon(input, options) {
|
|
2931
|
-
const toon = await getToonModule();
|
|
2932
|
-
return toon.decode(input, options);
|
|
2933
|
-
}
|
|
2934
2915
|
export {
|
|
2935
2916
|
OpenRouter,
|
|
2936
2917
|
createOpenRouter,
|
|
2937
|
-
decodeToon,
|
|
2938
|
-
encodeToon,
|
|
2939
2918
|
openrouter
|
|
2940
2919
|
};
|
|
2941
2920
|
//# sourceMappingURL=index.mjs.map
|