@opencode/ai 2.0.18 → 2.0.20
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/README.md +24 -12
- package/dist/cache-policy.js +7 -0
- package/dist/experimental/evaluation.d.ts +7 -0
- package/dist/experimental/evaluation.js +2 -0
- package/dist/experimental/system-one.js +10 -7
- package/dist/generation.d.ts +1 -1
- package/dist/generation.js +23 -18
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/llm.d.ts +1 -1
- package/dist/promise.d.ts +3 -3
- package/dist/promise.js +4 -3
- package/dist/protocols/alibaba-chat.d.ts +8 -2
- package/dist/protocols/alibaba-responses.d.ts +14 -14
- package/dist/protocols/anthropic-messages.js +2 -15
- package/dist/protocols/bedrock-converse.d.ts +1 -1
- package/dist/protocols/bedrock-converse.js +38 -12
- package/dist/protocols/deepgram-speech.js +9 -7
- package/dist/protocols/deepgram-transcription.js +4 -10
- package/dist/protocols/elevenlabs-transcription.d.ts +28 -0
- package/dist/protocols/elevenlabs-transcription.js +137 -0
- package/dist/protocols/gemini.js +1 -10
- package/dist/protocols/google-speech.js +9 -2
- package/dist/protocols/google-transcription.js +4 -0
- package/dist/protocols/google-video.js +11 -2
- package/dist/protocols/meta-messages.d.ts +5 -1
- package/dist/protocols/meta-messages.js +11 -4
- package/dist/protocols/meta-responses.d.ts +16 -16
- package/dist/protocols/mistral-chat.d.ts +6 -0
- package/dist/protocols/mistral-chat.js +8 -5
- package/dist/protocols/open-responses.d.ts +31 -31
- package/dist/protocols/openai-chat.d.ts +53 -10
- package/dist/protocols/openai-chat.js +21 -8
- package/dist/protocols/openai-compatible-chat.d.ts +7 -2
- package/dist/protocols/openai-compatible-responses.d.ts +2 -2
- package/dist/protocols/openai-responses.d.ts +22 -22
- package/dist/protocols/openai-speech.js +6 -1
- package/dist/protocols/openai-transcription.js +1 -1
- package/dist/protocols/runway-video.js +2 -1
- package/dist/protocols/utils/claude-model.d.ts +8 -0
- package/dist/protocols/utils/claude-model.js +15 -0
- package/dist/protocols/utils/gemini-generate-content.d.ts +6 -0
- package/dist/protocols/utils/gemini-generate-content.js +33 -0
- package/dist/protocols/utils/media-input.d.ts +4 -3
- package/dist/protocols/utils/media-input.js +5 -4
- package/dist/protocols/utils/speaker-turns.d.ts +3 -0
- package/dist/protocols/utils/speaker-turns.js +9 -0
- package/dist/protocols/utils/speech-stream.d.ts +1 -0
- package/dist/protocols/utils/speech-stream.js +1 -0
- package/dist/protocols/utils/tool-stream.d.ts +4 -3
- package/dist/protocols/utils/tool-stream.js +1 -1
- package/dist/protocols/xai-responses.d.ts +14 -14
- package/dist/protocols/xai-video.js +7 -1
- package/dist/protocols/zai-chat.d.ts +8 -2
- package/dist/provider-error.d.ts +6 -0
- package/dist/provider-error.js +65 -2
- package/dist/providers/alibaba.d.ts +9 -4
- package/dist/providers/amazon-bedrock-mantle.d.ts +9 -4
- package/dist/providers/anthropic-compatible.js +3 -2
- package/dist/providers/azure.d.ts +11 -6
- package/dist/providers/baseten.d.ts +14 -4
- package/dist/providers/cerebras.d.ts +14 -4
- package/dist/providers/cloudflare-ai-gateway.d.ts +18 -8
- package/dist/providers/cloudflare-workers-ai.d.ts +14 -4
- package/dist/providers/deepinfra.d.ts +14 -4
- package/dist/providers/deepseek.d.ts +14 -4
- package/dist/providers/elevenlabs.d.ts +5 -0
- package/dist/providers/elevenlabs.js +4 -0
- package/dist/providers/fireworks.d.ts +14 -4
- package/dist/providers/google-vertex-chat.d.ts +7 -2
- package/dist/providers/google-vertex-responses.d.ts +2 -2
- package/dist/providers/groq.d.ts +15 -4
- package/dist/providers/meta.d.ts +14 -5
- package/dist/providers/minimax.d.ts +9 -4
- package/dist/providers/moonshot.d.ts +9 -4
- package/dist/providers/openai-compatible-responses.d.ts +2 -2
- package/dist/providers/openai-compatible.d.ts +7 -2
- package/dist/providers/openai.d.ts +9 -4
- package/dist/providers/openrouter.d.ts +27 -6
- package/dist/providers/togetherai.d.ts +14 -4
- package/dist/providers/xai.d.ts +7 -2
- package/dist/providers/xai.js +3 -3
- package/dist/providers/zai-coding-plan.d.ts +9 -4
- package/dist/providers/zai.d.ts +7 -2
- package/dist/route/client.d.ts +1 -1
- package/dist/route/executor.js +12 -8
- package/dist/route/media-protocol.d.ts +13 -3
- package/dist/route/media-protocol.js +16 -6
- package/dist/route/media.js +18 -4
- package/dist/schema/events.d.ts +30 -30
- package/dist/testing.d.ts +8 -8
- package/dist/transcription.d.ts +1 -1
- package/dist/transcription.js +1 -1
- package/package.json +3 -3
|
@@ -99,8 +99,8 @@ export declare const responsesRoute: import("../route/client.js").Route<{
|
|
|
99
99
|
} | {
|
|
100
100
|
readonly type: "input_file";
|
|
101
101
|
readonly filename: string;
|
|
102
|
-
readonly file_data?: string | undefined;
|
|
103
102
|
readonly detail?: string | undefined;
|
|
103
|
+
readonly file_data?: string | undefined;
|
|
104
104
|
readonly file_url?: string | undefined;
|
|
105
105
|
} | {
|
|
106
106
|
readonly type: "input_text";
|
|
@@ -136,8 +136,8 @@ export declare const responsesRoute: import("../route/client.js").Route<{
|
|
|
136
136
|
} | {
|
|
137
137
|
readonly type: "input_file";
|
|
138
138
|
readonly filename: string;
|
|
139
|
-
readonly file_data?: string | undefined;
|
|
140
139
|
readonly detail?: string | undefined;
|
|
140
|
+
readonly file_data?: string | undefined;
|
|
141
141
|
readonly file_url?: string | undefined;
|
|
142
142
|
} | {
|
|
143
143
|
readonly type: "input_text";
|
|
@@ -587,12 +587,17 @@ export declare const route: import("../route/client.js").Route<{
|
|
|
587
587
|
readonly ttl?: string | undefined;
|
|
588
588
|
} | undefined;
|
|
589
589
|
readonly tool_calls?: readonly {
|
|
590
|
-
readonly id: string;
|
|
591
|
-
readonly type: "function";
|
|
592
590
|
readonly function: {
|
|
593
591
|
readonly name: string;
|
|
594
592
|
readonly arguments: string;
|
|
595
593
|
};
|
|
594
|
+
readonly id: string;
|
|
595
|
+
readonly type: "function";
|
|
596
|
+
readonly extra_content?: {
|
|
597
|
+
readonly google: {
|
|
598
|
+
readonly thought_signature: string;
|
|
599
|
+
};
|
|
600
|
+
} | undefined;
|
|
596
601
|
}[] | undefined;
|
|
597
602
|
readonly reasoning_details?: unknown;
|
|
598
603
|
} | {
|
|
@@ -970,12 +975,17 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
970
975
|
readonly ttl?: string | undefined;
|
|
971
976
|
} | undefined;
|
|
972
977
|
readonly tool_calls?: readonly {
|
|
973
|
-
readonly id: string;
|
|
974
|
-
readonly type: "function";
|
|
975
978
|
readonly function: {
|
|
976
979
|
readonly name: string;
|
|
977
980
|
readonly arguments: string;
|
|
978
981
|
};
|
|
982
|
+
readonly id: string;
|
|
983
|
+
readonly type: "function";
|
|
984
|
+
readonly extra_content?: {
|
|
985
|
+
readonly google: {
|
|
986
|
+
readonly thought_signature: string;
|
|
987
|
+
};
|
|
988
|
+
} | undefined;
|
|
979
989
|
}[] | undefined;
|
|
980
990
|
readonly reasoning_details?: unknown;
|
|
981
991
|
} | {
|
|
@@ -1096,8 +1106,8 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
1096
1106
|
} | {
|
|
1097
1107
|
readonly type: "input_file";
|
|
1098
1108
|
readonly filename: string;
|
|
1099
|
-
readonly file_data?: string | undefined;
|
|
1100
1109
|
readonly detail?: string | undefined;
|
|
1110
|
+
readonly file_data?: string | undefined;
|
|
1101
1111
|
readonly file_url?: string | undefined;
|
|
1102
1112
|
} | {
|
|
1103
1113
|
readonly type: "input_text";
|
|
@@ -1133,8 +1143,8 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
1133
1143
|
} | {
|
|
1134
1144
|
readonly type: "input_file";
|
|
1135
1145
|
readonly filename: string;
|
|
1136
|
-
readonly file_data?: string | undefined;
|
|
1137
1146
|
readonly detail?: string | undefined;
|
|
1147
|
+
readonly file_data?: string | undefined;
|
|
1138
1148
|
readonly file_url?: string | undefined;
|
|
1139
1149
|
} | {
|
|
1140
1150
|
readonly type: "input_text";
|
|
@@ -72,12 +72,17 @@ export declare const route: Route<{
|
|
|
72
72
|
readonly ttl?: string | undefined;
|
|
73
73
|
} | undefined;
|
|
74
74
|
readonly tool_calls?: readonly {
|
|
75
|
-
readonly id: string;
|
|
76
|
-
readonly type: "function";
|
|
77
75
|
readonly function: {
|
|
78
76
|
readonly name: string;
|
|
79
77
|
readonly arguments: string;
|
|
80
78
|
};
|
|
79
|
+
readonly id: string;
|
|
80
|
+
readonly type: "function";
|
|
81
|
+
readonly extra_content?: {
|
|
82
|
+
readonly google: {
|
|
83
|
+
readonly thought_signature: string;
|
|
84
|
+
};
|
|
85
|
+
} | undefined;
|
|
81
86
|
}[] | undefined;
|
|
82
87
|
readonly reasoning_details?: unknown;
|
|
83
88
|
} | {
|
|
@@ -183,12 +188,17 @@ export declare const routes: Route<{
|
|
|
183
188
|
readonly ttl?: string | undefined;
|
|
184
189
|
} | undefined;
|
|
185
190
|
readonly tool_calls?: readonly {
|
|
186
|
-
readonly id: string;
|
|
187
|
-
readonly type: "function";
|
|
188
191
|
readonly function: {
|
|
189
192
|
readonly name: string;
|
|
190
193
|
readonly arguments: string;
|
|
191
194
|
};
|
|
195
|
+
readonly id: string;
|
|
196
|
+
readonly type: "function";
|
|
197
|
+
readonly extra_content?: {
|
|
198
|
+
readonly google: {
|
|
199
|
+
readonly thought_signature: string;
|
|
200
|
+
};
|
|
201
|
+
} | undefined;
|
|
192
202
|
}[] | undefined;
|
|
193
203
|
readonly reasoning_details?: unknown;
|
|
194
204
|
} | {
|
|
@@ -68,12 +68,17 @@ export declare const route: Route<{
|
|
|
68
68
|
readonly ttl?: string | undefined;
|
|
69
69
|
} | undefined;
|
|
70
70
|
readonly tool_calls?: readonly {
|
|
71
|
-
readonly id: string;
|
|
72
|
-
readonly type: "function";
|
|
73
71
|
readonly function: {
|
|
74
72
|
readonly name: string;
|
|
75
73
|
readonly arguments: string;
|
|
76
74
|
};
|
|
75
|
+
readonly id: string;
|
|
76
|
+
readonly type: "function";
|
|
77
|
+
readonly extra_content?: {
|
|
78
|
+
readonly google: {
|
|
79
|
+
readonly thought_signature: string;
|
|
80
|
+
};
|
|
81
|
+
} | undefined;
|
|
77
82
|
}[] | undefined;
|
|
78
83
|
readonly reasoning_details?: unknown;
|
|
79
84
|
} | {
|
|
@@ -179,12 +184,17 @@ export declare const routes: Route<{
|
|
|
179
184
|
readonly ttl?: string | undefined;
|
|
180
185
|
} | undefined;
|
|
181
186
|
readonly tool_calls?: readonly {
|
|
182
|
-
readonly id: string;
|
|
183
|
-
readonly type: "function";
|
|
184
187
|
readonly function: {
|
|
185
188
|
readonly name: string;
|
|
186
189
|
readonly arguments: string;
|
|
187
190
|
};
|
|
191
|
+
readonly id: string;
|
|
192
|
+
readonly type: "function";
|
|
193
|
+
readonly extra_content?: {
|
|
194
|
+
readonly google: {
|
|
195
|
+
readonly thought_signature: string;
|
|
196
|
+
};
|
|
197
|
+
} | undefined;
|
|
188
198
|
}[] | undefined;
|
|
189
199
|
readonly reasoning_details?: unknown;
|
|
190
200
|
} | {
|
|
@@ -68,12 +68,17 @@ export declare const route: Route<{
|
|
|
68
68
|
readonly ttl?: string | undefined;
|
|
69
69
|
} | undefined;
|
|
70
70
|
readonly tool_calls?: readonly {
|
|
71
|
-
readonly id: string;
|
|
72
|
-
readonly type: "function";
|
|
73
71
|
readonly function: {
|
|
74
72
|
readonly name: string;
|
|
75
73
|
readonly arguments: string;
|
|
76
74
|
};
|
|
75
|
+
readonly id: string;
|
|
76
|
+
readonly type: "function";
|
|
77
|
+
readonly extra_content?: {
|
|
78
|
+
readonly google: {
|
|
79
|
+
readonly thought_signature: string;
|
|
80
|
+
};
|
|
81
|
+
} | undefined;
|
|
77
82
|
}[] | undefined;
|
|
78
83
|
readonly reasoning_details?: unknown;
|
|
79
84
|
} | {
|
|
@@ -179,12 +184,17 @@ export declare const routes: Route<{
|
|
|
179
184
|
readonly ttl?: string | undefined;
|
|
180
185
|
} | undefined;
|
|
181
186
|
readonly tool_calls?: readonly {
|
|
182
|
-
readonly id: string;
|
|
183
|
-
readonly type: "function";
|
|
184
187
|
readonly function: {
|
|
185
188
|
readonly name: string;
|
|
186
189
|
readonly arguments: string;
|
|
187
190
|
};
|
|
191
|
+
readonly id: string;
|
|
192
|
+
readonly type: "function";
|
|
193
|
+
readonly extra_content?: {
|
|
194
|
+
readonly google: {
|
|
195
|
+
readonly thought_signature: string;
|
|
196
|
+
};
|
|
197
|
+
} | undefined;
|
|
188
198
|
}[] | undefined;
|
|
189
199
|
readonly reasoning_details?: unknown;
|
|
190
200
|
} | {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ProviderAuthOption } from "../route/auth-options.js";
|
|
2
2
|
import { type HttpOptions, type ModelID } from "../schema/index.js";
|
|
3
3
|
export type { ElevenLabsOutputFormat, ElevenLabsSpeechOptions } from "../protocols/elevenlabs-speech.js";
|
|
4
|
+
export type { ElevenLabsTranscriptionOptions } from "../protocols/elevenlabs-transcription.js";
|
|
4
5
|
export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
5
6
|
export type Config = ProviderAuthOption<"optional"> & {
|
|
6
7
|
readonly baseURL?: string;
|
|
@@ -10,15 +11,19 @@ export type Config = ProviderAuthOption<"optional"> & {
|
|
|
10
11
|
export declare const configure: (input?: Config) => {
|
|
11
12
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
12
13
|
speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/elevenlabs-speech.js").ElevenLabsSpeechOptions>;
|
|
14
|
+
transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/elevenlabs-transcription.js").ElevenLabsTranscriptionOptions>;
|
|
13
15
|
configure: (input?: Config) => /*elided*/ any;
|
|
14
16
|
};
|
|
15
17
|
export declare const provider: {
|
|
16
18
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
17
19
|
speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/elevenlabs-speech.js").ElevenLabsSpeechOptions>;
|
|
20
|
+
transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/elevenlabs-transcription.js").ElevenLabsTranscriptionOptions>;
|
|
18
21
|
configure: (input?: Config) => {
|
|
19
22
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
20
23
|
speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/elevenlabs-speech.js").ElevenLabsSpeechOptions>;
|
|
24
|
+
transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/elevenlabs-transcription.js").ElevenLabsTranscriptionOptions>;
|
|
21
25
|
configure: /*elided*/ any;
|
|
22
26
|
};
|
|
23
27
|
};
|
|
24
28
|
export declare const speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/elevenlabs-speech.js").ElevenLabsSpeechOptions>;
|
|
29
|
+
export declare const transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/elevenlabs-transcription.js").ElevenLabsTranscriptionOptions>;
|
|
@@ -2,6 +2,7 @@ import { Auth } from "../route/auth.js";
|
|
|
2
2
|
import { MediaRoute } from "../route/media.js";
|
|
3
3
|
import { ProviderID } from "../schema/index.js";
|
|
4
4
|
import { ElevenLabsSpeech } from "../protocols/elevenlabs-speech.js";
|
|
5
|
+
import { ElevenLabsTranscription } from "../protocols/elevenlabs-transcription.js";
|
|
5
6
|
export const id = ProviderID.make("elevenlabs");
|
|
6
7
|
const auth = (options) => {
|
|
7
8
|
if ("auth" in options && options.auth)
|
|
@@ -13,11 +14,14 @@ const auth = (options) => {
|
|
|
13
14
|
export const configure = (input = {}) => {
|
|
14
15
|
const media = MediaRoute.deployment(input, auth(input));
|
|
15
16
|
const speech = (modelID) => ElevenLabsSpeech.model({ ...media, id: modelID });
|
|
17
|
+
const transcription = (modelID) => ElevenLabsTranscription.model({ ...media, id: modelID });
|
|
16
18
|
return {
|
|
17
19
|
id,
|
|
18
20
|
speech,
|
|
21
|
+
transcription,
|
|
19
22
|
configure,
|
|
20
23
|
};
|
|
21
24
|
};
|
|
22
25
|
export const provider = configure();
|
|
23
26
|
export const speech = provider.speech;
|
|
27
|
+
export const transcription = provider.transcription;
|
|
@@ -68,12 +68,17 @@ export declare const route: Route<{
|
|
|
68
68
|
readonly ttl?: string | undefined;
|
|
69
69
|
} | undefined;
|
|
70
70
|
readonly tool_calls?: readonly {
|
|
71
|
-
readonly id: string;
|
|
72
|
-
readonly type: "function";
|
|
73
71
|
readonly function: {
|
|
74
72
|
readonly name: string;
|
|
75
73
|
readonly arguments: string;
|
|
76
74
|
};
|
|
75
|
+
readonly id: string;
|
|
76
|
+
readonly type: "function";
|
|
77
|
+
readonly extra_content?: {
|
|
78
|
+
readonly google: {
|
|
79
|
+
readonly thought_signature: string;
|
|
80
|
+
};
|
|
81
|
+
} | undefined;
|
|
77
82
|
}[] | undefined;
|
|
78
83
|
readonly reasoning_details?: unknown;
|
|
79
84
|
} | {
|
|
@@ -179,12 +184,17 @@ export declare const routes: Route<{
|
|
|
179
184
|
readonly ttl?: string | undefined;
|
|
180
185
|
} | undefined;
|
|
181
186
|
readonly tool_calls?: readonly {
|
|
182
|
-
readonly id: string;
|
|
183
|
-
readonly type: "function";
|
|
184
187
|
readonly function: {
|
|
185
188
|
readonly name: string;
|
|
186
189
|
readonly arguments: string;
|
|
187
190
|
};
|
|
191
|
+
readonly id: string;
|
|
192
|
+
readonly type: "function";
|
|
193
|
+
readonly extra_content?: {
|
|
194
|
+
readonly google: {
|
|
195
|
+
readonly thought_signature: string;
|
|
196
|
+
};
|
|
197
|
+
} | undefined;
|
|
188
198
|
}[] | undefined;
|
|
189
199
|
readonly reasoning_details?: unknown;
|
|
190
200
|
} | {
|
|
@@ -73,12 +73,17 @@ export declare const routes: Route<{
|
|
|
73
73
|
readonly ttl?: string | undefined;
|
|
74
74
|
} | undefined;
|
|
75
75
|
readonly tool_calls?: readonly {
|
|
76
|
-
readonly id: string;
|
|
77
|
-
readonly type: "function";
|
|
78
76
|
readonly function: {
|
|
79
77
|
readonly name: string;
|
|
80
78
|
readonly arguments: string;
|
|
81
79
|
};
|
|
80
|
+
readonly id: string;
|
|
81
|
+
readonly type: "function";
|
|
82
|
+
readonly extra_content?: {
|
|
83
|
+
readonly google: {
|
|
84
|
+
readonly thought_signature: string;
|
|
85
|
+
};
|
|
86
|
+
} | undefined;
|
|
82
87
|
}[] | undefined;
|
|
83
88
|
readonly reasoning_details?: unknown;
|
|
84
89
|
} | {
|
|
@@ -84,8 +84,8 @@ export declare const routes: Route<{
|
|
|
84
84
|
} | {
|
|
85
85
|
readonly type: "input_file";
|
|
86
86
|
readonly filename: string;
|
|
87
|
-
readonly file_data?: string | undefined;
|
|
88
87
|
readonly detail?: string | undefined;
|
|
88
|
+
readonly file_data?: string | undefined;
|
|
89
89
|
readonly file_url?: string | undefined;
|
|
90
90
|
} | {
|
|
91
91
|
readonly type: "input_text";
|
|
@@ -121,8 +121,8 @@ export declare const routes: Route<{
|
|
|
121
121
|
} | {
|
|
122
122
|
readonly type: "input_file";
|
|
123
123
|
readonly filename: string;
|
|
124
|
-
readonly file_data?: string | undefined;
|
|
125
124
|
readonly detail?: string | undefined;
|
|
125
|
+
readonly file_data?: string | undefined;
|
|
126
126
|
readonly file_url?: string | undefined;
|
|
127
127
|
} | {
|
|
128
128
|
readonly type: "input_text";
|
package/dist/providers/groq.d.ts
CHANGED
|
@@ -77,12 +77,17 @@ export declare const protocol: Protocol<{
|
|
|
77
77
|
readonly ttl?: string | undefined;
|
|
78
78
|
} | undefined;
|
|
79
79
|
readonly tool_calls?: readonly {
|
|
80
|
-
readonly id: string;
|
|
81
|
-
readonly type: "function";
|
|
82
80
|
readonly function: {
|
|
83
81
|
readonly name: string;
|
|
84
82
|
readonly arguments: string;
|
|
85
83
|
};
|
|
84
|
+
readonly id: string;
|
|
85
|
+
readonly type: "function";
|
|
86
|
+
readonly extra_content?: {
|
|
87
|
+
readonly google: {
|
|
88
|
+
readonly thought_signature: string;
|
|
89
|
+
};
|
|
90
|
+
} | undefined;
|
|
86
91
|
}[] | undefined;
|
|
87
92
|
readonly reasoning_details?: unknown;
|
|
88
93
|
} | {
|
|
@@ -178,6 +183,7 @@ export declare const protocol: Protocol<{
|
|
|
178
183
|
} | null | undefined;
|
|
179
184
|
readonly id?: string | null | undefined;
|
|
180
185
|
readonly index?: number | null | undefined;
|
|
186
|
+
readonly extra_content?: unknown;
|
|
181
187
|
}[] | null | undefined;
|
|
182
188
|
readonly reasoning_details?: unknown;
|
|
183
189
|
} | null | undefined;
|
|
@@ -260,12 +266,17 @@ export declare const route: Route<{
|
|
|
260
266
|
readonly ttl?: string | undefined;
|
|
261
267
|
} | undefined;
|
|
262
268
|
readonly tool_calls?: readonly {
|
|
263
|
-
readonly id: string;
|
|
264
|
-
readonly type: "function";
|
|
265
269
|
readonly function: {
|
|
266
270
|
readonly name: string;
|
|
267
271
|
readonly arguments: string;
|
|
268
272
|
};
|
|
273
|
+
readonly id: string;
|
|
274
|
+
readonly type: "function";
|
|
275
|
+
readonly extra_content?: {
|
|
276
|
+
readonly google: {
|
|
277
|
+
readonly thought_signature: string;
|
|
278
|
+
};
|
|
279
|
+
} | undefined;
|
|
269
280
|
}[] | undefined;
|
|
270
281
|
readonly reasoning_details?: unknown;
|
|
271
282
|
} | {
|
package/dist/providers/meta.d.ts
CHANGED
|
@@ -94,12 +94,17 @@ export declare const routes: (Route<{
|
|
|
94
94
|
readonly ttl?: string | undefined;
|
|
95
95
|
} | undefined;
|
|
96
96
|
readonly tool_calls?: readonly {
|
|
97
|
-
readonly id: string;
|
|
98
|
-
readonly type: "function";
|
|
99
97
|
readonly function: {
|
|
100
98
|
readonly name: string;
|
|
101
99
|
readonly arguments: string;
|
|
102
100
|
};
|
|
101
|
+
readonly id: string;
|
|
102
|
+
readonly type: "function";
|
|
103
|
+
readonly extra_content?: {
|
|
104
|
+
readonly google: {
|
|
105
|
+
readonly thought_signature: string;
|
|
106
|
+
};
|
|
107
|
+
} | undefined;
|
|
103
108
|
}[] | undefined;
|
|
104
109
|
readonly reasoning_details?: unknown;
|
|
105
110
|
} | {
|
|
@@ -215,8 +220,8 @@ export declare const routes: (Route<{
|
|
|
215
220
|
} | {
|
|
216
221
|
readonly type: "input_file";
|
|
217
222
|
readonly filename: string;
|
|
218
|
-
readonly file_data?: string | undefined;
|
|
219
223
|
readonly detail?: string | undefined;
|
|
224
|
+
readonly file_data?: string | undefined;
|
|
220
225
|
readonly file_url?: string | undefined;
|
|
221
226
|
} | {
|
|
222
227
|
readonly type: "input_text";
|
|
@@ -252,8 +257,8 @@ export declare const routes: (Route<{
|
|
|
252
257
|
} | {
|
|
253
258
|
readonly type: "input_file";
|
|
254
259
|
readonly filename: string;
|
|
255
|
-
readonly file_data?: string | undefined;
|
|
256
260
|
readonly detail?: string | undefined;
|
|
261
|
+
readonly file_data?: string | undefined;
|
|
257
262
|
readonly file_url?: string | undefined;
|
|
258
263
|
} | {
|
|
259
264
|
readonly type: "input_text";
|
|
@@ -542,11 +547,15 @@ export declare const routes: (Route<{
|
|
|
542
547
|
readonly timezone?: string | undefined;
|
|
543
548
|
} | undefined;
|
|
544
549
|
} | {
|
|
545
|
-
readonly name: string;
|
|
546
550
|
readonly description: string;
|
|
551
|
+
readonly name: string;
|
|
547
552
|
readonly input_schema: {
|
|
548
553
|
readonly [x: string]: unknown;
|
|
549
554
|
};
|
|
555
|
+
readonly cache_control?: {
|
|
556
|
+
readonly type: "ephemeral";
|
|
557
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
558
|
+
} | undefined;
|
|
550
559
|
})[] | undefined;
|
|
551
560
|
readonly system?: readonly {
|
|
552
561
|
readonly type: "text";
|
|
@@ -372,8 +372,8 @@ export declare const routes: (Route<{
|
|
|
372
372
|
} | {
|
|
373
373
|
readonly type: "input_file";
|
|
374
374
|
readonly filename: string;
|
|
375
|
-
readonly file_data?: string | undefined;
|
|
376
375
|
readonly detail?: string | undefined;
|
|
376
|
+
readonly file_data?: string | undefined;
|
|
377
377
|
readonly file_url?: string | undefined;
|
|
378
378
|
} | {
|
|
379
379
|
readonly type: "input_text";
|
|
@@ -409,8 +409,8 @@ export declare const routes: (Route<{
|
|
|
409
409
|
} | {
|
|
410
410
|
readonly type: "input_file";
|
|
411
411
|
readonly filename: string;
|
|
412
|
-
readonly file_data?: string | undefined;
|
|
413
412
|
readonly detail?: string | undefined;
|
|
413
|
+
readonly file_data?: string | undefined;
|
|
414
414
|
readonly file_url?: string | undefined;
|
|
415
415
|
} | {
|
|
416
416
|
readonly type: "input_text";
|
|
@@ -526,12 +526,17 @@ export declare const routes: (Route<{
|
|
|
526
526
|
readonly ttl?: string | undefined;
|
|
527
527
|
} | undefined;
|
|
528
528
|
readonly tool_calls?: readonly {
|
|
529
|
-
readonly id: string;
|
|
530
|
-
readonly type: "function";
|
|
531
529
|
readonly function: {
|
|
532
530
|
readonly name: string;
|
|
533
531
|
readonly arguments: string;
|
|
534
532
|
};
|
|
533
|
+
readonly id: string;
|
|
534
|
+
readonly type: "function";
|
|
535
|
+
readonly extra_content?: {
|
|
536
|
+
readonly google: {
|
|
537
|
+
readonly thought_signature: string;
|
|
538
|
+
};
|
|
539
|
+
} | undefined;
|
|
535
540
|
}[] | undefined;
|
|
536
541
|
readonly reasoning_details?: unknown;
|
|
537
542
|
} | {
|
|
@@ -370,8 +370,8 @@ export declare const routes: (Route<{
|
|
|
370
370
|
} | {
|
|
371
371
|
readonly type: "input_file";
|
|
372
372
|
readonly filename: string;
|
|
373
|
-
readonly file_data?: string | undefined;
|
|
374
373
|
readonly detail?: string | undefined;
|
|
374
|
+
readonly file_data?: string | undefined;
|
|
375
375
|
readonly file_url?: string | undefined;
|
|
376
376
|
} | {
|
|
377
377
|
readonly type: "input_text";
|
|
@@ -407,8 +407,8 @@ export declare const routes: (Route<{
|
|
|
407
407
|
} | {
|
|
408
408
|
readonly type: "input_file";
|
|
409
409
|
readonly filename: string;
|
|
410
|
-
readonly file_data?: string | undefined;
|
|
411
410
|
readonly detail?: string | undefined;
|
|
411
|
+
readonly file_data?: string | undefined;
|
|
412
412
|
readonly file_url?: string | undefined;
|
|
413
413
|
} | {
|
|
414
414
|
readonly type: "input_text";
|
|
@@ -524,12 +524,17 @@ export declare const routes: (Route<{
|
|
|
524
524
|
readonly ttl?: string | undefined;
|
|
525
525
|
} | undefined;
|
|
526
526
|
readonly tool_calls?: readonly {
|
|
527
|
-
readonly id: string;
|
|
528
|
-
readonly type: "function";
|
|
529
527
|
readonly function: {
|
|
530
528
|
readonly name: string;
|
|
531
529
|
readonly arguments: string;
|
|
532
530
|
};
|
|
531
|
+
readonly id: string;
|
|
532
|
+
readonly type: "function";
|
|
533
|
+
readonly extra_content?: {
|
|
534
|
+
readonly google: {
|
|
535
|
+
readonly thought_signature: string;
|
|
536
|
+
};
|
|
537
|
+
} | undefined;
|
|
533
538
|
}[] | undefined;
|
|
534
539
|
readonly reasoning_details?: unknown;
|
|
535
540
|
} | {
|
|
@@ -82,8 +82,8 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
82
82
|
} | {
|
|
83
83
|
readonly type: "input_file";
|
|
84
84
|
readonly filename: string;
|
|
85
|
-
readonly file_data?: string | undefined;
|
|
86
85
|
readonly detail?: string | undefined;
|
|
86
|
+
readonly file_data?: string | undefined;
|
|
87
87
|
readonly file_url?: string | undefined;
|
|
88
88
|
} | {
|
|
89
89
|
readonly type: "input_text";
|
|
@@ -119,8 +119,8 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
119
119
|
} | {
|
|
120
120
|
readonly type: "input_file";
|
|
121
121
|
readonly filename: string;
|
|
122
|
-
readonly file_data?: string | undefined;
|
|
123
122
|
readonly detail?: string | undefined;
|
|
123
|
+
readonly file_data?: string | undefined;
|
|
124
124
|
readonly file_url?: string | undefined;
|
|
125
125
|
} | {
|
|
126
126
|
readonly type: "input_text";
|
|
@@ -70,12 +70,17 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
70
70
|
readonly ttl?: string | undefined;
|
|
71
71
|
} | undefined;
|
|
72
72
|
readonly tool_calls?: readonly {
|
|
73
|
-
readonly id: string;
|
|
74
|
-
readonly type: "function";
|
|
75
73
|
readonly function: {
|
|
76
74
|
readonly name: string;
|
|
77
75
|
readonly arguments: string;
|
|
78
76
|
};
|
|
77
|
+
readonly id: string;
|
|
78
|
+
readonly type: "function";
|
|
79
|
+
readonly extra_content?: {
|
|
80
|
+
readonly google: {
|
|
81
|
+
readonly thought_signature: string;
|
|
82
|
+
};
|
|
83
|
+
} | undefined;
|
|
79
84
|
}[] | undefined;
|
|
80
85
|
readonly reasoning_details?: unknown;
|
|
81
86
|
} | {
|
|
@@ -65,12 +65,17 @@ export declare const routes: (Route<{
|
|
|
65
65
|
readonly ttl?: string | undefined;
|
|
66
66
|
} | undefined;
|
|
67
67
|
readonly tool_calls?: readonly {
|
|
68
|
-
readonly id: string;
|
|
69
|
-
readonly type: "function";
|
|
70
68
|
readonly function: {
|
|
71
69
|
readonly name: string;
|
|
72
70
|
readonly arguments: string;
|
|
73
71
|
};
|
|
72
|
+
readonly id: string;
|
|
73
|
+
readonly type: "function";
|
|
74
|
+
readonly extra_content?: {
|
|
75
|
+
readonly google: {
|
|
76
|
+
readonly thought_signature: string;
|
|
77
|
+
};
|
|
78
|
+
} | undefined;
|
|
74
79
|
}[] | undefined;
|
|
75
80
|
readonly reasoning_details?: unknown;
|
|
76
81
|
} | {
|
|
@@ -191,8 +196,8 @@ export declare const routes: (Route<{
|
|
|
191
196
|
} | {
|
|
192
197
|
readonly type: "input_file";
|
|
193
198
|
readonly filename: string;
|
|
194
|
-
readonly file_data?: string | undefined;
|
|
195
199
|
readonly detail?: string | undefined;
|
|
200
|
+
readonly file_data?: string | undefined;
|
|
196
201
|
readonly file_url?: string | undefined;
|
|
197
202
|
} | {
|
|
198
203
|
readonly type: "input_text";
|
|
@@ -228,8 +233,8 @@ export declare const routes: (Route<{
|
|
|
228
233
|
} | {
|
|
229
234
|
readonly type: "input_file";
|
|
230
235
|
readonly filename: string;
|
|
231
|
-
readonly file_data?: string | undefined;
|
|
232
236
|
readonly detail?: string | undefined;
|
|
237
|
+
readonly file_data?: string | undefined;
|
|
233
238
|
readonly file_url?: string | undefined;
|
|
234
239
|
} | {
|
|
235
240
|
readonly type: "input_text";
|
|
@@ -141,6 +141,11 @@ declare const OpenRouterBody: Schema.StructWithRest<Schema.Struct<{
|
|
|
141
141
|
readonly name: Schema.String;
|
|
142
142
|
readonly arguments: Schema.String;
|
|
143
143
|
}>;
|
|
144
|
+
readonly extra_content: Schema.optional<Schema.Struct<{
|
|
145
|
+
readonly google: Schema.Struct<{
|
|
146
|
+
readonly thought_signature: Schema.String;
|
|
147
|
+
}>;
|
|
148
|
+
}>>;
|
|
144
149
|
}>>>;
|
|
145
150
|
readonly reasoning_content: Schema.optional<Schema.String>;
|
|
146
151
|
readonly reasoning: Schema.optional<Schema.String>;
|
|
@@ -253,12 +258,17 @@ export declare const protocol: Protocol<{
|
|
|
253
258
|
readonly ttl?: string | undefined;
|
|
254
259
|
} | undefined;
|
|
255
260
|
readonly tool_calls?: readonly {
|
|
256
|
-
readonly id: string;
|
|
257
|
-
readonly type: "function";
|
|
258
261
|
readonly function: {
|
|
259
262
|
readonly name: string;
|
|
260
263
|
readonly arguments: string;
|
|
261
264
|
};
|
|
265
|
+
readonly id: string;
|
|
266
|
+
readonly type: "function";
|
|
267
|
+
readonly extra_content?: {
|
|
268
|
+
readonly google: {
|
|
269
|
+
readonly thought_signature: string;
|
|
270
|
+
};
|
|
271
|
+
} | undefined;
|
|
262
272
|
}[] | undefined;
|
|
263
273
|
readonly reasoning_details?: unknown;
|
|
264
274
|
} | {
|
|
@@ -349,6 +359,7 @@ export declare const protocol: Protocol<{
|
|
|
349
359
|
} | null | undefined;
|
|
350
360
|
readonly id?: string | null | undefined;
|
|
351
361
|
readonly index?: number | null | undefined;
|
|
362
|
+
readonly extra_content?: unknown;
|
|
352
363
|
}[] | null | undefined;
|
|
353
364
|
readonly reasoning_details?: unknown;
|
|
354
365
|
} | null | undefined;
|
|
@@ -432,12 +443,17 @@ export declare const route: Route<{
|
|
|
432
443
|
readonly ttl?: string | undefined;
|
|
433
444
|
} | undefined;
|
|
434
445
|
readonly tool_calls?: readonly {
|
|
435
|
-
readonly id: string;
|
|
436
|
-
readonly type: "function";
|
|
437
446
|
readonly function: {
|
|
438
447
|
readonly name: string;
|
|
439
448
|
readonly arguments: string;
|
|
440
449
|
};
|
|
450
|
+
readonly id: string;
|
|
451
|
+
readonly type: "function";
|
|
452
|
+
readonly extra_content?: {
|
|
453
|
+
readonly google: {
|
|
454
|
+
readonly thought_signature: string;
|
|
455
|
+
};
|
|
456
|
+
} | undefined;
|
|
441
457
|
}[] | undefined;
|
|
442
458
|
readonly reasoning_details?: unknown;
|
|
443
459
|
} | {
|
|
@@ -544,12 +560,17 @@ export declare const routes: Route<{
|
|
|
544
560
|
readonly ttl?: string | undefined;
|
|
545
561
|
} | undefined;
|
|
546
562
|
readonly tool_calls?: readonly {
|
|
547
|
-
readonly id: string;
|
|
548
|
-
readonly type: "function";
|
|
549
563
|
readonly function: {
|
|
550
564
|
readonly name: string;
|
|
551
565
|
readonly arguments: string;
|
|
552
566
|
};
|
|
567
|
+
readonly id: string;
|
|
568
|
+
readonly type: "function";
|
|
569
|
+
readonly extra_content?: {
|
|
570
|
+
readonly google: {
|
|
571
|
+
readonly thought_signature: string;
|
|
572
|
+
};
|
|
573
|
+
} | undefined;
|
|
553
574
|
}[] | undefined;
|
|
554
575
|
readonly reasoning_details?: unknown;
|
|
555
576
|
} | {
|