@opencode/ai 2.0.32 → 2.1.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/ai-client.d.ts +2 -2
- package/dist/experimental/evaluation-client.d.ts +1 -1
- package/dist/experimental/evaluation.d.ts +20 -20
- package/dist/experimental/realtime.d.ts +6 -14
- package/dist/experimental/realtime.js +28 -3
- package/dist/experimental/system-one.d.ts +1 -1
- package/dist/image-client.d.ts +8 -8
- package/dist/image.d.ts +593 -437
- package/dist/llm.d.ts +51 -51
- package/dist/media-client.d.ts +1 -1
- package/dist/media.d.ts +4 -4
- package/dist/promise.d.ts +199 -198
- package/dist/protocols/alibaba-chat.d.ts +81 -82
- package/dist/protocols/alibaba-chat.js +0 -1
- package/dist/protocols/alibaba-messages.d.ts +99 -99
- package/dist/protocols/alibaba-responses.d.ts +120 -120
- package/dist/protocols/anthropic-messages.d.ts +187 -187
- package/dist/protocols/anthropic-messages.js +3 -2
- package/dist/protocols/assemblyai-transcription.d.ts +1 -1
- package/dist/protocols/bedrock-converse.d.ts +75 -79
- package/dist/protocols/bfl-images.d.ts +1 -1
- package/dist/protocols/cartesia-speech.d.ts +17 -17
- package/dist/protocols/cohere-chat.d.ts +26 -23
- package/dist/protocols/cohere-chat.js +22 -1
- package/dist/protocols/deepgram-speech.d.ts +17 -17
- package/dist/protocols/deepgram-transcription.d.ts +1 -1
- package/dist/protocols/elevenlabs-speech.d.ts +17 -17
- package/dist/protocols/elevenlabs-transcription.d.ts +1 -1
- package/dist/protocols/fal-images.d.ts +1 -1
- package/dist/protocols/fal-video.d.ts +1 -1
- package/dist/protocols/gemini.d.ts +55 -55
- package/dist/protocols/google-images.d.ts +1 -1
- package/dist/protocols/google-interactions.d.ts +64 -62
- package/dist/protocols/google-interactions.js +19 -1
- package/dist/protocols/google-speech.d.ts +17 -17
- package/dist/protocols/google-transcription.d.ts +47 -47
- package/dist/protocols/google-video.d.ts +1 -1
- package/dist/protocols/meta-messages.d.ts +121 -121
- package/dist/protocols/meta-responses.d.ts +201 -201
- package/dist/protocols/mistral-chat.d.ts +45 -45
- package/dist/protocols/open-responses-channel.d.ts +1 -1
- package/dist/protocols/open-responses.d.ts +584 -450
- package/dist/protocols/open-responses.js +27 -35
- package/dist/protocols/openai-chat.d.ts +248 -248
- package/dist/protocols/openai-chat.js +11 -42
- package/dist/protocols/openai-compatible-chat.d.ts +32 -32
- package/dist/protocols/openai-compatible-responses.d.ts +88 -88
- package/dist/protocols/openai-images.d.ts +17 -17
- package/dist/protocols/openai-responses.d.ts +567 -567
- package/dist/protocols/openai-responses.js +1 -1
- package/dist/protocols/openai-speech.d.ts +17 -17
- package/dist/protocols/openai-transcription.d.ts +47 -47
- package/dist/protocols/replicate-images.d.ts +1 -1
- package/dist/protocols/runway-video.d.ts +1 -1
- package/dist/protocols/shared.d.ts +12 -1
- package/dist/protocols/shared.js +17 -1
- package/dist/protocols/stability-images.d.ts +2 -2
- package/dist/protocols/utils/bedrock-cache.d.ts +2 -2
- package/dist/protocols/utils/bedrock-media.d.ts +4 -4
- package/dist/protocols/utils/openai-options.d.ts +1 -1
- package/dist/protocols/utils/speech-stream.d.ts +1 -1
- package/dist/protocols/utils/tool-schema.d.ts +10 -5
- package/dist/protocols/utils/tool-stream.d.ts +152 -152
- package/dist/protocols/venice-chat.d.ts +109 -110
- package/dist/protocols/venice-chat.js +0 -1
- package/dist/protocols/xai-images.d.ts +1 -1
- package/dist/protocols/xai-responses.d.ts +79 -79
- package/dist/protocols/xai-video.d.ts +1 -1
- package/dist/protocols/zai-chat.d.ts +77 -78
- package/dist/protocols/zai-chat.js +0 -1
- package/dist/protocols/zai-images.d.ts +1 -1
- package/dist/protocols/zai-messages.d.ts +97 -97
- package/dist/providers/alibaba.d.ts +222 -283
- package/dist/providers/amazon-bedrock-mantle.d.ts +291 -298
- package/dist/providers/amazon-bedrock.d.ts +22 -28
- package/dist/providers/anthropic-compatible.d.ts +86 -90
- package/dist/providers/anthropic.d.ts +86 -90
- package/dist/providers/assemblyai.d.ts +2 -6
- package/dist/providers/azure.d.ts +228 -238
- package/dist/providers/baseten.d.ts +66 -70
- package/dist/providers/black-forest-labs.d.ts +2 -6
- package/dist/providers/cartesia.d.ts +2 -6
- package/dist/providers/cerebras.d.ts +66 -70
- package/dist/providers/cerebras.js +0 -1
- package/dist/providers/cloudflare-ai-gateway.d.ts +352 -356
- package/dist/providers/cloudflare-workers-ai.d.ts +66 -70
- package/dist/providers/cohere.d.ts +122 -132
- package/dist/providers/cohere.js +0 -2
- package/dist/providers/deepgram.d.ts +2 -7
- package/dist/providers/deepinfra.d.ts +66 -70
- package/dist/providers/deepinfra.js +0 -1
- package/dist/providers/deepseek.d.ts +66 -70
- package/dist/providers/deepseek.js +1 -1
- package/dist/providers/digitalocean.d.ts +137 -141
- package/dist/providers/elevenlabs.d.ts +2 -7
- package/dist/providers/fal.d.ts +2 -7
- package/dist/providers/fireworks.d.ts +66 -70
- package/dist/providers/google-vertex-chat.d.ts +34 -38
- package/dist/providers/google-vertex-interactions.d.ts +31 -41
- package/dist/providers/google-vertex-messages.d.ts +81 -85
- package/dist/providers/google-vertex-mistral.d.ts +23 -27
- package/dist/providers/google-vertex-responses.d.ts +90 -94
- package/dist/providers/google-vertex.d.ts +26 -30
- package/dist/providers/google.d.ts +94 -109
- package/dist/providers/groq.d.ts +111 -115
- package/dist/providers/groq.js +0 -1
- package/dist/providers/meta.d.ts +309 -317
- package/dist/providers/meta.js +1 -1
- package/dist/providers/minimax.d.ts +296 -303
- package/dist/providers/minimax.js +1 -1
- package/dist/providers/mistral.d.ts +22 -26
- package/dist/providers/moonshot.d.ts +296 -303
- package/dist/providers/moonshot.js +0 -1
- package/dist/providers/openai-compatible-responses.d.ts +90 -94
- package/dist/providers/openai-compatible.d.ts +34 -38
- package/dist/providers/openai.d.ts +93 -108
- package/dist/providers/opencode.d.ts +2 -8
- package/dist/providers/openrouter.d.ts +137 -144
- package/dist/providers/replicate.d.ts +2 -6
- package/dist/providers/runway.d.ts +2 -6
- package/dist/providers/stability.d.ts +2 -7
- package/dist/providers/togetherai.d.ts +66 -70
- package/dist/providers/togetherai.js +1 -1
- package/dist/providers/typesafe-ai.d.ts +2 -8
- package/dist/providers/venice.d.ts +58 -63
- package/dist/providers/vercel-ai-gateway.d.ts +2 -12
- package/dist/providers/xai.d.ts +38 -50
- package/dist/providers/zai-coding-plan.d.ts +206 -213
- package/dist/providers/zai.d.ts +40 -46
- package/dist/route/client.d.ts +51 -51
- package/dist/route/media-protocol.d.ts +1 -1
- package/dist/route/transport/http.d.ts +1 -1
- package/dist/route/transport/websocket.d.ts +8 -8
- package/dist/schema/errors.d.ts +19 -19
- package/dist/schema/events.d.ts +3090 -3288
- package/dist/schema/messages.d.ts +8 -7
- package/dist/schema/options.d.ts +2 -1
- package/dist/schema/options.js +2 -1
- package/dist/speech-client.d.ts +8 -8
- package/dist/speech.d.ts +434 -398
- package/dist/testing.d.ts +338 -338
- package/dist/tool-runtime.d.ts +1 -1
- package/dist/transcription-client.d.ts +23 -23
- package/dist/transcription.d.ts +562 -646
- package/dist/utils/sanitize.d.ts +4 -0
- package/dist/utils/sanitize.js +23 -6
- package/dist/video-client.d.ts +8 -8
- package/dist/video.d.ts +416 -372
- package/package.json +6 -6
|
@@ -16,64 +16,16 @@ export type Settings = ProviderPackage.Settings & OpenResponsesProviderOptionsIn
|
|
|
16
16
|
readonly provider?: string;
|
|
17
17
|
};
|
|
18
18
|
export declare const routes: import("../route/client.js").Route<{
|
|
19
|
+
readonly model: string;
|
|
19
20
|
readonly input: readonly ({
|
|
20
|
-
readonly
|
|
21
|
-
readonly id
|
|
22
|
-
readonly
|
|
23
|
-
readonly status?: string | undefined;
|
|
24
|
-
readonly action?: {
|
|
25
|
-
readonly [x: string]: unknown;
|
|
26
|
-
} | null | undefined;
|
|
27
|
-
} | {
|
|
28
|
-
readonly [x: string]: unknown;
|
|
29
|
-
readonly id: string;
|
|
30
|
-
readonly type: "file_search_call";
|
|
31
|
-
readonly status?: string | undefined;
|
|
32
|
-
readonly queries?: readonly string[] | undefined;
|
|
33
|
-
readonly results?: readonly {
|
|
34
|
-
readonly [x: string]: unknown;
|
|
35
|
-
}[] | null | undefined;
|
|
36
|
-
} | {
|
|
37
|
-
readonly [x: string]: unknown;
|
|
38
|
-
readonly id: string;
|
|
39
|
-
readonly type: "code_interpreter_call";
|
|
40
|
-
readonly status?: string | undefined;
|
|
41
|
-
readonly code?: string | null | undefined;
|
|
42
|
-
readonly container_id?: string | null | undefined;
|
|
43
|
-
readonly outputs?: readonly {
|
|
44
|
-
readonly [x: string]: unknown;
|
|
45
|
-
}[] | null | undefined;
|
|
46
|
-
} | {
|
|
47
|
-
readonly [x: string]: unknown;
|
|
48
|
-
readonly id: string;
|
|
49
|
-
readonly type: "mcp_call";
|
|
50
|
-
readonly status?: string | undefined;
|
|
51
|
-
readonly name?: string | undefined;
|
|
52
|
-
readonly output?: string | null | undefined;
|
|
53
|
-
readonly error?: unknown;
|
|
54
|
-
readonly arguments?: string | undefined;
|
|
55
|
-
readonly server_label?: string | undefined;
|
|
21
|
+
readonly type: "compaction";
|
|
22
|
+
readonly id?: string | null | undefined;
|
|
23
|
+
readonly encrypted_content: string;
|
|
56
24
|
} | {
|
|
57
25
|
readonly type: "configuration_update";
|
|
58
26
|
readonly reasoning: {
|
|
59
27
|
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
60
28
|
};
|
|
61
|
-
} | {
|
|
62
|
-
readonly [x: string]: unknown;
|
|
63
|
-
readonly type: string;
|
|
64
|
-
readonly id: string;
|
|
65
|
-
} | {
|
|
66
|
-
readonly type: "reasoning";
|
|
67
|
-
readonly summary: readonly {
|
|
68
|
-
readonly type: "summary_text";
|
|
69
|
-
readonly text: string;
|
|
70
|
-
}[];
|
|
71
|
-
readonly id?: string | undefined;
|
|
72
|
-
readonly encrypted_content?: string | null | undefined;
|
|
73
|
-
} | {
|
|
74
|
-
readonly type: "compaction";
|
|
75
|
-
readonly encrypted_content: string;
|
|
76
|
-
readonly id?: string | null | undefined;
|
|
77
29
|
} | {
|
|
78
30
|
readonly type: "message";
|
|
79
31
|
readonly role: "system";
|
|
@@ -84,6 +36,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
84
36
|
readonly content: string;
|
|
85
37
|
} | {
|
|
86
38
|
readonly type: "message";
|
|
39
|
+
readonly role: "user";
|
|
87
40
|
readonly content: readonly ({
|
|
88
41
|
readonly type: "input_image";
|
|
89
42
|
readonly image_url: string;
|
|
@@ -98,26 +51,33 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
98
51
|
readonly type: "input_text";
|
|
99
52
|
readonly text: string;
|
|
100
53
|
})[];
|
|
101
|
-
readonly role: "user";
|
|
102
54
|
readonly id?: string | undefined;
|
|
103
55
|
readonly status?: string | undefined;
|
|
104
56
|
} | {
|
|
105
57
|
readonly type: "message";
|
|
58
|
+
readonly id?: string | undefined;
|
|
59
|
+
readonly role: "assistant";
|
|
106
60
|
readonly content: readonly {
|
|
107
61
|
readonly type: "output_text";
|
|
108
62
|
readonly text: string;
|
|
109
63
|
}[];
|
|
110
|
-
readonly role: "assistant";
|
|
111
|
-
readonly id?: string | undefined;
|
|
112
|
-
readonly status?: string | undefined;
|
|
113
64
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
65
|
+
readonly status?: string | undefined;
|
|
66
|
+
} | {
|
|
67
|
+
readonly type: "reasoning";
|
|
68
|
+
readonly id?: string | undefined;
|
|
69
|
+
readonly summary: readonly {
|
|
70
|
+
readonly type: "summary_text";
|
|
71
|
+
readonly text: string;
|
|
72
|
+
}[];
|
|
73
|
+
readonly encrypted_content?: string | null | undefined;
|
|
114
74
|
} | {
|
|
115
75
|
readonly type: "function_call";
|
|
116
|
-
readonly name: string;
|
|
117
|
-
readonly arguments: string;
|
|
118
|
-
readonly call_id: string;
|
|
119
76
|
readonly id?: string | undefined;
|
|
77
|
+
readonly call_id: string;
|
|
78
|
+
readonly name: string;
|
|
120
79
|
readonly namespace?: string | undefined;
|
|
80
|
+
readonly arguments: string;
|
|
121
81
|
} | {
|
|
122
82
|
readonly type: "function_call_output";
|
|
123
83
|
readonly call_id: string;
|
|
@@ -138,72 +98,108 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
138
98
|
readonly type: "input_video";
|
|
139
99
|
readonly video_url: string;
|
|
140
100
|
})[];
|
|
101
|
+
} | {
|
|
102
|
+
readonly [x: string]: unknown;
|
|
103
|
+
readonly type: "web_search_call";
|
|
104
|
+
readonly id: string;
|
|
105
|
+
readonly status?: string | undefined;
|
|
106
|
+
readonly action?: {
|
|
107
|
+
readonly [x: string]: unknown;
|
|
108
|
+
} | null | undefined;
|
|
109
|
+
} | {
|
|
110
|
+
readonly [x: string]: unknown;
|
|
111
|
+
readonly type: "file_search_call";
|
|
112
|
+
readonly id: string;
|
|
113
|
+
readonly status?: string | undefined;
|
|
114
|
+
readonly queries?: readonly string[] | undefined;
|
|
115
|
+
readonly results?: readonly {
|
|
116
|
+
readonly [x: string]: unknown;
|
|
117
|
+
}[] | null | undefined;
|
|
118
|
+
} | {
|
|
119
|
+
readonly [x: string]: unknown;
|
|
120
|
+
readonly type: "code_interpreter_call";
|
|
121
|
+
readonly id: string;
|
|
122
|
+
readonly status?: string | undefined;
|
|
123
|
+
readonly code?: string | null | undefined;
|
|
124
|
+
readonly container_id?: string | null | undefined;
|
|
125
|
+
readonly outputs?: readonly {
|
|
126
|
+
readonly [x: string]: unknown;
|
|
127
|
+
}[] | null | undefined;
|
|
128
|
+
} | {
|
|
129
|
+
readonly [x: string]: unknown;
|
|
130
|
+
readonly type: "mcp_call";
|
|
131
|
+
readonly id: string;
|
|
132
|
+
readonly status?: string | undefined;
|
|
133
|
+
readonly server_label?: string | undefined;
|
|
134
|
+
readonly name?: string | undefined;
|
|
135
|
+
readonly arguments?: string | undefined;
|
|
136
|
+
readonly output?: string | null | undefined;
|
|
137
|
+
readonly error?: unknown;
|
|
138
|
+
} | {
|
|
139
|
+
readonly [x: string]: unknown;
|
|
140
|
+
readonly type: string;
|
|
141
|
+
readonly id: string;
|
|
141
142
|
})[];
|
|
142
|
-
readonly model: string;
|
|
143
|
-
readonly stream: true;
|
|
144
|
-
readonly metadata?: {
|
|
145
|
-
readonly [x: string]: string;
|
|
146
|
-
} | undefined;
|
|
147
143
|
readonly instructions?: string | undefined;
|
|
148
|
-
readonly reasoning?: {
|
|
149
|
-
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
150
|
-
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
151
|
-
} | undefined;
|
|
152
|
-
readonly temperature?: number | undefined;
|
|
153
144
|
readonly tools?: readonly ({
|
|
154
|
-
readonly [x: string]: unknown;
|
|
155
|
-
readonly type: string;
|
|
156
|
-
} | {
|
|
157
145
|
readonly type: "function";
|
|
158
|
-
readonly description: string;
|
|
159
146
|
readonly name: string;
|
|
147
|
+
readonly description: string;
|
|
160
148
|
readonly parameters: {
|
|
161
149
|
readonly [x: string]: unknown;
|
|
162
150
|
};
|
|
163
151
|
readonly strict?: boolean | undefined;
|
|
152
|
+
} | {
|
|
153
|
+
readonly [x: string]: unknown;
|
|
154
|
+
readonly type: string;
|
|
164
155
|
})[] | undefined;
|
|
165
|
-
readonly
|
|
166
|
-
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
167
|
-
} | undefined;
|
|
168
|
-
readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
|
|
169
|
-
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
156
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
170
157
|
readonly type: "function";
|
|
171
158
|
readonly name: string;
|
|
172
159
|
} | {
|
|
173
160
|
readonly type: "allowed_tools";
|
|
174
|
-
readonly mode: "
|
|
161
|
+
readonly mode: "auto" | "none" | "required";
|
|
175
162
|
readonly tools: readonly {
|
|
176
163
|
readonly type: "function";
|
|
177
164
|
readonly name: string;
|
|
178
165
|
}[];
|
|
179
166
|
} | undefined;
|
|
180
|
-
readonly top_p?: number | undefined;
|
|
181
|
-
readonly frequency_penalty?: number | undefined;
|
|
182
|
-
readonly presence_penalty?: number | undefined;
|
|
183
167
|
readonly store?: boolean | undefined;
|
|
184
|
-
readonly
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
readonly
|
|
188
|
-
readonly truncation?: "auto" | "disabled" | undefined;
|
|
168
|
+
readonly metadata?: {
|
|
169
|
+
readonly [x: string]: string;
|
|
170
|
+
} | undefined;
|
|
171
|
+
readonly safety_identifier?: string | undefined;
|
|
189
172
|
readonly stream_options?: {
|
|
190
173
|
readonly include_obfuscation?: boolean | undefined;
|
|
191
174
|
} | undefined;
|
|
192
|
-
readonly safety_identifier?: string | undefined;
|
|
193
175
|
readonly top_logprobs?: number | undefined;
|
|
176
|
+
readonly truncation?: "auto" | "disabled" | undefined;
|
|
177
|
+
readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
|
|
178
|
+
readonly prompt_cache_key?: string | undefined;
|
|
179
|
+
readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
|
|
180
|
+
readonly reasoning?: {
|
|
181
|
+
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
182
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
readonly text?: {
|
|
185
|
+
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
186
|
+
} | undefined;
|
|
187
|
+
readonly max_output_tokens?: number | undefined;
|
|
194
188
|
readonly max_tool_calls?: number | undefined;
|
|
189
|
+
readonly parallel_tool_calls?: boolean | undefined;
|
|
190
|
+
readonly temperature?: number | undefined;
|
|
191
|
+
readonly top_p?: number | undefined;
|
|
192
|
+
readonly presence_penalty?: number | undefined;
|
|
193
|
+
readonly frequency_penalty?: number | undefined;
|
|
194
|
+
readonly stream: true;
|
|
195
195
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
|
|
196
196
|
export declare const configure: (input: Config) => {
|
|
197
197
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
198
198
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./open-responses-options.js").OpenResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
199
|
-
configure:
|
|
199
|
+
configure: typeof configure;
|
|
200
200
|
};
|
|
201
201
|
export declare const provider: {
|
|
202
202
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
203
|
-
configure:
|
|
204
|
-
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
205
|
-
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./open-responses-options.js").OpenResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
206
|
-
configure: /*elided*/ any;
|
|
207
|
-
};
|
|
203
|
+
configure: typeof configure;
|
|
208
204
|
};
|
|
209
205
|
export declare const model: ProviderPackage.Definition<Settings, OpenResponsesProviderOptionsInput>["model"];
|
|
@@ -58,8 +58,20 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
58
58
|
readonly file_data: string;
|
|
59
59
|
};
|
|
60
60
|
})[];
|
|
61
|
+
} | {
|
|
62
|
+
readonly role: "tool";
|
|
63
|
+
readonly tool_call_id: string;
|
|
64
|
+
readonly content: string | readonly {
|
|
65
|
+
readonly type: "text";
|
|
66
|
+
readonly text: string;
|
|
67
|
+
readonly cache_control?: {
|
|
68
|
+
readonly type: "ephemeral";
|
|
69
|
+
readonly ttl?: string | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
}[];
|
|
61
72
|
} | {
|
|
62
73
|
readonly [x: string]: unknown;
|
|
74
|
+
readonly role: "assistant";
|
|
63
75
|
readonly content: string | readonly {
|
|
64
76
|
readonly type: "text";
|
|
65
77
|
readonly text: string;
|
|
@@ -68,86 +80,70 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
68
80
|
readonly ttl?: string | undefined;
|
|
69
81
|
} | undefined;
|
|
70
82
|
}[] | null;
|
|
71
|
-
readonly role: "assistant";
|
|
72
|
-
readonly reasoning?: string | undefined;
|
|
73
|
-
readonly reasoning_content?: string | undefined;
|
|
74
|
-
readonly reasoning_text?: string | undefined;
|
|
75
83
|
readonly tool_calls?: readonly {
|
|
84
|
+
readonly id: string;
|
|
85
|
+
readonly type: "function";
|
|
76
86
|
readonly function: {
|
|
77
87
|
readonly name: string;
|
|
78
88
|
readonly arguments: string;
|
|
79
89
|
};
|
|
80
|
-
readonly id: string;
|
|
81
|
-
readonly type: "function";
|
|
82
90
|
readonly extra_content?: {
|
|
83
91
|
readonly google: {
|
|
84
92
|
readonly thought_signature: string;
|
|
85
93
|
};
|
|
86
94
|
} | undefined;
|
|
87
95
|
}[] | undefined;
|
|
96
|
+
readonly reasoning_content?: string | undefined;
|
|
97
|
+
readonly reasoning?: string | undefined;
|
|
98
|
+
readonly reasoning_text?: string | undefined;
|
|
88
99
|
readonly reasoning_details?: unknown;
|
|
89
|
-
} | {
|
|
90
|
-
readonly role: "tool";
|
|
91
|
-
readonly tool_call_id: string;
|
|
92
|
-
readonly content: string | readonly {
|
|
93
|
-
readonly type: "text";
|
|
94
|
-
readonly text: string;
|
|
95
|
-
readonly cache_control?: {
|
|
96
|
-
readonly type: "ephemeral";
|
|
97
|
-
readonly ttl?: string | undefined;
|
|
98
|
-
} | undefined;
|
|
99
|
-
}[];
|
|
100
100
|
})[];
|
|
101
|
-
readonly stream: true;
|
|
102
|
-
readonly max_completion_tokens?: number | undefined;
|
|
103
|
-
readonly max_tokens?: number | undefined;
|
|
104
|
-
readonly temperature?: number | undefined;
|
|
105
101
|
readonly tools?: readonly {
|
|
102
|
+
readonly type: "function";
|
|
106
103
|
readonly function: {
|
|
107
|
-
readonly description: string;
|
|
108
104
|
readonly name: string;
|
|
105
|
+
readonly description: string;
|
|
109
106
|
readonly parameters: {
|
|
110
107
|
readonly [x: string]: unknown;
|
|
111
108
|
};
|
|
112
109
|
readonly strict?: boolean | undefined;
|
|
113
110
|
};
|
|
114
|
-
readonly type: "function";
|
|
115
111
|
readonly cache_control?: {
|
|
116
112
|
readonly type: "ephemeral";
|
|
117
113
|
readonly ttl?: string | undefined;
|
|
118
114
|
} | undefined;
|
|
119
115
|
}[] | undefined;
|
|
120
|
-
readonly
|
|
121
|
-
readonly seed?: number | undefined;
|
|
122
|
-
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
116
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
123
117
|
readonly type: "function";
|
|
124
118
|
readonly function: {
|
|
125
119
|
readonly name: string;
|
|
126
120
|
};
|
|
127
121
|
} | undefined;
|
|
128
|
-
readonly
|
|
129
|
-
readonly frequency_penalty?: number | undefined;
|
|
130
|
-
readonly presence_penalty?: number | undefined;
|
|
131
|
-
readonly store?: boolean | undefined;
|
|
132
|
-
readonly prompt_cache_key?: string | undefined;
|
|
133
|
-
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
122
|
+
readonly stream: true;
|
|
134
123
|
readonly stream_options?: {
|
|
135
124
|
readonly include_usage: boolean;
|
|
136
125
|
} | undefined;
|
|
126
|
+
readonly store?: boolean | undefined;
|
|
127
|
+
readonly prompt_cache_key?: string | undefined;
|
|
128
|
+
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
137
129
|
readonly tool_stream?: boolean | undefined;
|
|
130
|
+
readonly max_completion_tokens?: number | undefined;
|
|
131
|
+
readonly max_tokens?: number | undefined;
|
|
132
|
+
readonly temperature?: number | undefined;
|
|
133
|
+
readonly top_p?: number | undefined;
|
|
134
|
+
readonly frequency_penalty?: number | undefined;
|
|
135
|
+
readonly presence_penalty?: number | undefined;
|
|
136
|
+
readonly seed?: number | undefined;
|
|
137
|
+
readonly stop?: readonly string[] | undefined;
|
|
138
138
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
|
|
139
139
|
export declare const configure: (input: GenericModelOptions) => {
|
|
140
140
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
141
141
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
142
|
-
configure:
|
|
142
|
+
configure: typeof configure;
|
|
143
143
|
};
|
|
144
144
|
export declare const provider: {
|
|
145
145
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
146
|
-
configure:
|
|
147
|
-
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
148
|
-
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
149
|
-
configure: /*elided*/ any;
|
|
150
|
-
};
|
|
146
|
+
configure: typeof configure;
|
|
151
147
|
};
|
|
152
148
|
export declare const model: ProviderPackage.Definition<Settings, OpenAIProviderOptionsInput>["model"];
|
|
153
149
|
export * as OpenAICompatible from "./openai-compatible.js";
|