@openrouter/sdk 0.3.1 → 0.3.2
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/esm/lib/config.d.ts
CHANGED
|
@@ -45,8 +45,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
45
45
|
export declare const SDK_METADATA: {
|
|
46
46
|
readonly language: "typescript";
|
|
47
47
|
readonly openapiDocVersion: "1.0.0";
|
|
48
|
-
readonly sdkVersion: "0.3.
|
|
49
|
-
readonly genVersion: "2.
|
|
50
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.3.
|
|
48
|
+
readonly sdkVersion: "0.3.2";
|
|
49
|
+
readonly genVersion: "2.788.4";
|
|
50
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.3.2 2.788.4 1.0.0 @openrouter/sdk";
|
|
51
51
|
};
|
|
52
52
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -25,8 +25,8 @@ export function serverURLFromOptions(options) {
|
|
|
25
25
|
export const SDK_METADATA = {
|
|
26
26
|
language: "typescript",
|
|
27
27
|
openapiDocVersion: "1.0.0",
|
|
28
|
-
sdkVersion: "0.3.
|
|
29
|
-
genVersion: "2.
|
|
30
|
-
userAgent: "speakeasy-sdk/typescript 0.3.
|
|
28
|
+
sdkVersion: "0.3.2",
|
|
29
|
+
genVersion: "2.788.4",
|
|
30
|
+
userAgent: "speakeasy-sdk/typescript 0.3.2 2.788.4 1.0.0 @openrouter/sdk",
|
|
31
31
|
};
|
|
32
32
|
//# sourceMappingURL=config.js.map
|
package/esm/lib/event-streams.js
CHANGED
|
@@ -20,7 +20,7 @@ export class EventStream extends ReadableStream {
|
|
|
20
20
|
const message = buffer.slice(0, match.index);
|
|
21
21
|
buffer = buffer.slice(match.index + match.length);
|
|
22
22
|
const item = parseMessage(message, parse);
|
|
23
|
-
if (item
|
|
23
|
+
if (item && !item.done)
|
|
24
24
|
return downstream.enqueue(item.value);
|
|
25
25
|
if (item?.done) {
|
|
26
26
|
await upstream.cancel("done");
|
|
@@ -10,7 +10,7 @@ export type OutputItemImageGenerationCallType = ClosedEnum<typeof OutputItemImag
|
|
|
10
10
|
export type OutputItemImageGenerationCall = {
|
|
11
11
|
type: OutputItemImageGenerationCallType;
|
|
12
12
|
id: string;
|
|
13
|
-
result
|
|
13
|
+
result: string | null;
|
|
14
14
|
status: ImageGenerationStatus;
|
|
15
15
|
};
|
|
16
16
|
/** @internal */
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"author": "OpenRouter",
|
|
5
5
|
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 300+ language models through a unified API.",
|
|
6
6
|
"keywords": [
|