@opencode/ai 2.0.22 → 2.0.24
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 +61 -1
- package/dist/cache-policy.js +13 -9
- package/dist/protocols/alibaba-chat.d.ts +3 -3
- package/dist/protocols/alibaba-messages.d.ts +3 -0
- package/dist/protocols/alibaba-responses.d.ts +19 -12
- package/dist/protocols/alibaba-responses.js +3 -5
- package/dist/protocols/anthropic-messages.d.ts +3 -0
- package/dist/protocols/anthropic-messages.js +53 -48
- package/dist/protocols/bedrock-converse.js +3 -3
- package/dist/protocols/cartesia-speech.js +3 -3
- package/dist/protocols/cohere-chat.d.ts +178 -0
- package/dist/protocols/cohere-chat.js +299 -0
- package/dist/protocols/elevenlabs-speech.js +3 -3
- package/dist/protocols/gemini.d.ts +2 -2
- package/dist/protocols/gemini.js +3 -3
- package/dist/protocols/google-interactions.d.ts +236 -0
- package/dist/protocols/google-interactions.js +478 -0
- package/dist/protocols/google-speech.js +1 -1
- package/dist/protocols/google-transcription.js +1 -1
- package/dist/protocols/index.d.ts +2 -0
- package/dist/protocols/index.js +2 -0
- package/dist/protocols/meta-messages.d.ts +3 -0
- package/dist/protocols/meta-responses.d.ts +34 -58
- package/dist/protocols/meta-responses.js +8 -27
- package/dist/protocols/mistral-chat.d.ts +24 -9
- package/dist/protocols/mistral-chat.js +22 -10
- package/dist/protocols/open-responses.d.ts +424 -103
- package/dist/protocols/open-responses.js +30 -20
- package/dist/protocols/openai-chat.d.ts +401 -5
- package/dist/protocols/openai-chat.js +18 -21
- package/dist/protocols/openai-compatible-chat.d.ts +1 -1
- package/dist/protocols/openai-compatible-responses.d.ts +16 -4
- package/dist/protocols/openai-images.js +2 -2
- package/dist/protocols/openai-responses.d.ts +90 -223
- package/dist/protocols/openai-responses.js +6 -13
- package/dist/protocols/openai-speech.js +1 -1
- package/dist/protocols/openai-transcription.js +1 -1
- package/dist/protocols/shared.js +2 -2
- package/dist/protocols/stability-images.js +1 -1
- package/dist/protocols/utils/bedrock-media.js +2 -2
- package/dist/protocols/utils/gateway-protocol.d.ts +17 -0
- package/dist/protocols/utils/gateway-protocol.js +57 -0
- package/dist/protocols/utils/responses-checkpoint.js +2 -2
- package/dist/protocols/utils/responses-hosted-tools.js +1 -1
- package/dist/protocols/utils/tool-stream.js +15 -7
- package/dist/protocols/venice-chat.d.ts +280 -0
- package/dist/protocols/venice-chat.js +283 -0
- package/dist/protocols/xai-responses.d.ts +21 -21
- package/dist/protocols/xai-responses.js +2 -8
- package/dist/protocols/zai-chat.d.ts +3 -3
- package/dist/protocols/zai-messages.d.ts +3 -0
- package/dist/provider-error.js +7 -1
- package/dist/providers/alibaba.d.ts +17 -13
- package/dist/providers/amazon-bedrock/mantle/messages.d.ts +2 -0
- package/dist/providers/amazon-bedrock/mantle/messages.js +1 -0
- package/dist/providers/amazon-bedrock-mantle.d.ts +301 -9
- package/dist/providers/amazon-bedrock-mantle.js +28 -3
- package/dist/providers/azure.d.ts +13 -61
- package/dist/providers/baseten.d.ts +2 -2
- package/dist/providers/cerebras.d.ts +2 -2
- package/dist/providers/cloudflare-ai-gateway.d.ts +14 -62
- package/dist/providers/cloudflare-workers-ai.d.ts +2 -2
- package/dist/providers/cohere/chat.d.ts +4 -0
- package/dist/providers/cohere/chat.js +8 -0
- package/dist/providers/cohere.d.ts +395 -0
- package/dist/providers/cohere.js +48 -0
- package/dist/providers/deepinfra.d.ts +2 -2
- package/dist/providers/deepseek.d.ts +2 -2
- package/dist/providers/digitalocean.d.ts +5 -5
- package/dist/providers/fireworks.d.ts +2 -2
- package/dist/providers/google/interactions.d.ts +7 -0
- package/dist/providers/google/interactions.js +8 -0
- package/dist/providers/google-vertex-chat.d.ts +1 -1
- package/dist/providers/google-vertex-messages.js +1 -0
- package/dist/providers/google-vertex-responses.d.ts +16 -4
- package/dist/providers/google-vertex.d.ts +1 -1
- package/dist/providers/google.d.ts +95 -4
- package/dist/providers/google.js +8 -1
- package/dist/providers/groq.d.ts +4 -4
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/index.js +2 -0
- package/dist/providers/meta.d.ts +15 -28
- package/dist/providers/minimax.d.ts +17 -5
- package/dist/providers/mistral.d.ts +10 -4
- package/dist/providers/moonshot.d.ts +17 -5
- package/dist/providers/openai-compatible-responses.d.ts +16 -4
- package/dist/providers/openai-compatible.d.ts +1 -1
- package/dist/providers/openai-options.d.ts +1 -1
- package/dist/providers/openai.d.ts +7 -31
- package/dist/providers/openrouter.d.ts +5 -5
- package/dist/providers/togetherai.d.ts +2 -2
- package/dist/providers/venice.d.ts +183 -0
- package/dist/providers/venice.js +38 -0
- package/dist/providers/vercel-ai-gateway/chat.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/chat.js +1 -0
- package/dist/providers/vercel-ai-gateway/messages.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/messages.js +1 -0
- package/dist/providers/vercel-ai-gateway/responses.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/responses.js +1 -0
- package/dist/providers/vercel-ai-gateway.d.ts +91 -9
- package/dist/providers/vercel-ai-gateway.js +161 -21
- package/dist/providers/xai.d.ts +1 -1
- package/dist/providers/zai-coding-plan.d.ts +17 -5
- package/dist/providers/zai.d.ts +1 -1
- package/dist/route/client.js +2 -5
- package/dist/route/framing.js +23 -23
- package/package.json +3 -3
|
@@ -127,9 +127,9 @@ export declare const protocol: Protocol<{
|
|
|
127
127
|
readonly top_p?: number | undefined;
|
|
128
128
|
readonly frequency_penalty?: number | undefined;
|
|
129
129
|
readonly presence_penalty?: number | undefined;
|
|
130
|
+
readonly store?: boolean | undefined;
|
|
130
131
|
readonly prompt_cache_key?: string | undefined;
|
|
131
132
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
132
|
-
readonly store?: boolean | undefined;
|
|
133
133
|
readonly stream_options?: {
|
|
134
134
|
readonly include_usage: boolean;
|
|
135
135
|
} | undefined;
|
|
@@ -145,9 +145,9 @@ export declare const protocol: Protocol<{
|
|
|
145
145
|
readonly [x: string]: unknown;
|
|
146
146
|
readonly cache_read_input_tokens?: number | null | undefined;
|
|
147
147
|
readonly cached_tokens?: number | null | undefined;
|
|
148
|
+
readonly total_tokens?: number | null | undefined;
|
|
148
149
|
readonly prompt_tokens?: number | null | undefined;
|
|
149
150
|
readonly completion_tokens?: number | null | undefined;
|
|
150
|
-
readonly total_tokens?: number | null | undefined;
|
|
151
151
|
readonly prompt_tokens_details?: {
|
|
152
152
|
readonly [x: string]: unknown;
|
|
153
153
|
readonly cached_tokens?: number | null | undefined;
|
|
@@ -186,9 +186,9 @@ export declare const protocol: Protocol<{
|
|
|
186
186
|
readonly [x: string]: unknown;
|
|
187
187
|
readonly cache_read_input_tokens?: number | null | undefined;
|
|
188
188
|
readonly cached_tokens?: number | null | undefined;
|
|
189
|
+
readonly total_tokens?: number | null | undefined;
|
|
189
190
|
readonly prompt_tokens?: number | null | undefined;
|
|
190
191
|
readonly completion_tokens?: number | null | undefined;
|
|
191
|
-
readonly total_tokens?: number | null | undefined;
|
|
192
192
|
readonly prompt_tokens_details?: {
|
|
193
193
|
readonly [x: string]: unknown;
|
|
194
194
|
readonly cached_tokens?: number | null | undefined;
|
|
@@ -321,9 +321,9 @@ export declare const route: Route<{
|
|
|
321
321
|
readonly top_p?: number | undefined;
|
|
322
322
|
readonly frequency_penalty?: number | undefined;
|
|
323
323
|
readonly presence_penalty?: number | undefined;
|
|
324
|
+
readonly store?: boolean | undefined;
|
|
324
325
|
readonly prompt_cache_key?: string | undefined;
|
|
325
326
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
326
|
-
readonly store?: boolean | undefined;
|
|
327
327
|
readonly stream_options?: {
|
|
328
328
|
readonly include_usage: boolean;
|
|
329
329
|
} | undefined;
|
|
@@ -443,9 +443,9 @@ export declare const routes: Route<{
|
|
|
443
443
|
readonly top_p?: number | undefined;
|
|
444
444
|
readonly frequency_penalty?: number | undefined;
|
|
445
445
|
readonly presence_penalty?: number | undefined;
|
|
446
|
+
readonly store?: boolean | undefined;
|
|
446
447
|
readonly prompt_cache_key?: string | undefined;
|
|
447
448
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
448
|
-
readonly store?: boolean | undefined;
|
|
449
449
|
readonly stream_options?: {
|
|
450
450
|
readonly include_usage: boolean;
|
|
451
451
|
} | undefined;
|
|
@@ -126,9 +126,9 @@ export declare const route: Route<{
|
|
|
126
126
|
readonly top_p?: number | undefined;
|
|
127
127
|
readonly frequency_penalty?: number | undefined;
|
|
128
128
|
readonly presence_penalty?: number | undefined;
|
|
129
|
+
readonly store?: boolean | undefined;
|
|
129
130
|
readonly prompt_cache_key?: string | undefined;
|
|
130
131
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
131
|
-
readonly store?: boolean | undefined;
|
|
132
132
|
readonly stream_options?: {
|
|
133
133
|
readonly include_usage: boolean;
|
|
134
134
|
} | undefined;
|
|
@@ -248,9 +248,9 @@ export declare const routes: Route<{
|
|
|
248
248
|
readonly top_p?: number | undefined;
|
|
249
249
|
readonly frequency_penalty?: number | undefined;
|
|
250
250
|
readonly presence_penalty?: number | undefined;
|
|
251
|
+
readonly store?: boolean | undefined;
|
|
251
252
|
readonly prompt_cache_key?: string | undefined;
|
|
252
253
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
253
|
-
readonly store?: boolean | undefined;
|
|
254
254
|
readonly stream_options?: {
|
|
255
255
|
readonly include_usage: boolean;
|
|
256
256
|
} | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ProviderPackage } from "../../provider-package.js";
|
|
2
|
+
import type { GoogleInteractions } from "../../protocols/google-interactions.js";
|
|
3
|
+
export type Settings = ProviderPackage.Settings & GoogleInteractions.ProviderOptionsInput & {
|
|
4
|
+
readonly apiKey?: string;
|
|
5
|
+
readonly baseURL?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const model: ProviderPackage.Definition<Settings, GoogleInteractions.ProviderOptionsInput>["model"];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { configure } from "../google.js";
|
|
2
|
+
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions }) => configure({
|
|
3
|
+
apiKey,
|
|
4
|
+
baseURL,
|
|
5
|
+
headers: headers === undefined ? undefined : { ...headers },
|
|
6
|
+
http: body === undefined ? undefined : { body: { ...body } },
|
|
7
|
+
providerOptions,
|
|
8
|
+
}).interactions(modelID);
|
|
@@ -131,9 +131,9 @@ export declare const routes: Route<{
|
|
|
131
131
|
readonly top_p?: number | undefined;
|
|
132
132
|
readonly frequency_penalty?: number | undefined;
|
|
133
133
|
readonly presence_penalty?: number | undefined;
|
|
134
|
+
readonly store?: boolean | undefined;
|
|
134
135
|
readonly prompt_cache_key?: string | undefined;
|
|
135
136
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
136
|
-
readonly store?: boolean | undefined;
|
|
137
137
|
readonly stream_options?: {
|
|
138
138
|
readonly include_usage: boolean;
|
|
139
139
|
} | undefined;
|
|
@@ -26,6 +26,7 @@ const route = Route.make({
|
|
|
26
26
|
}))),
|
|
27
27
|
},
|
|
28
28
|
stream: AnthropicMessages.protocol.stream,
|
|
29
|
+
supportsEffortUpdates: AnthropicMessages.protocol.supportsEffortUpdates,
|
|
29
30
|
}),
|
|
30
31
|
endpoint: Endpoint.path(({ request }) => `/${request.model.id}:streamRawPredict`),
|
|
31
32
|
auth: Auth.none,
|
|
@@ -55,6 +55,15 @@ export declare const routes: Route<{
|
|
|
55
55
|
readonly error?: unknown;
|
|
56
56
|
readonly arguments?: string | undefined;
|
|
57
57
|
readonly server_label?: string | undefined;
|
|
58
|
+
} | {
|
|
59
|
+
readonly type: "configuration_update";
|
|
60
|
+
readonly reasoning: {
|
|
61
|
+
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
62
|
+
};
|
|
63
|
+
} | {
|
|
64
|
+
readonly [x: string]: unknown;
|
|
65
|
+
readonly type: string;
|
|
66
|
+
readonly id: string;
|
|
58
67
|
} | {
|
|
59
68
|
readonly type: "reasoning";
|
|
60
69
|
readonly summary: readonly {
|
|
@@ -142,7 +151,10 @@ export declare const routes: Route<{
|
|
|
142
151
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
143
152
|
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
144
153
|
} | undefined;
|
|
145
|
-
readonly tools?: readonly {
|
|
154
|
+
readonly tools?: readonly ({
|
|
155
|
+
readonly [x: string]: unknown;
|
|
156
|
+
readonly type: string;
|
|
157
|
+
} | {
|
|
146
158
|
readonly type: "function";
|
|
147
159
|
readonly description: string;
|
|
148
160
|
readonly name: string;
|
|
@@ -150,7 +162,7 @@ export declare const routes: Route<{
|
|
|
150
162
|
readonly [x: string]: unknown;
|
|
151
163
|
};
|
|
152
164
|
readonly strict?: boolean | undefined;
|
|
153
|
-
}[] | undefined;
|
|
165
|
+
})[] | undefined;
|
|
154
166
|
readonly text?: {
|
|
155
167
|
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
156
168
|
} | undefined;
|
|
@@ -170,9 +182,10 @@ export declare const routes: Route<{
|
|
|
170
182
|
readonly top_p?: number | undefined;
|
|
171
183
|
readonly frequency_penalty?: number | undefined;
|
|
172
184
|
readonly presence_penalty?: number | undefined;
|
|
185
|
+
readonly store?: boolean | undefined;
|
|
186
|
+
readonly max_output_tokens?: number | undefined;
|
|
173
187
|
readonly prompt_cache_key?: string | undefined;
|
|
174
188
|
readonly parallel_tool_calls?: boolean | undefined;
|
|
175
|
-
readonly store?: boolean | undefined;
|
|
176
189
|
readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
|
|
177
190
|
readonly truncation?: "auto" | "disabled" | undefined;
|
|
178
191
|
readonly stream_options?: {
|
|
@@ -180,7 +193,6 @@ export declare const routes: Route<{
|
|
|
180
193
|
} | undefined;
|
|
181
194
|
readonly safety_identifier?: string | undefined;
|
|
182
195
|
readonly top_logprobs?: number | undefined;
|
|
183
|
-
readonly max_output_tokens?: number | undefined;
|
|
184
196
|
readonly max_tool_calls?: number | undefined;
|
|
185
197
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
|
|
186
198
|
export declare const configure: (input?: Config) => {
|
|
@@ -77,7 +77,7 @@ export declare const routes: Route<{
|
|
|
77
77
|
readonly serviceTier?: string | undefined;
|
|
78
78
|
readonly toolConfig?: {
|
|
79
79
|
readonly functionCallingConfig: {
|
|
80
|
-
readonly mode: "
|
|
80
|
+
readonly mode: "NONE" | "AUTO" | "ANY";
|
|
81
81
|
readonly allowedFunctionNames?: readonly string[] | undefined;
|
|
82
82
|
};
|
|
83
83
|
} | undefined;
|
|
@@ -3,14 +3,16 @@ import type { ProviderAuthOption } from "../route/auth-options.js";
|
|
|
3
3
|
import type { ProviderPackage } from "../provider-package.js";
|
|
4
4
|
import { type ModelID } from "../schema/index.js";
|
|
5
5
|
import { Gemini } from "../protocols/gemini.js";
|
|
6
|
+
import { GoogleInteractions } from "../protocols/google-interactions.js";
|
|
6
7
|
export type { GoogleImageOptions } from "../protocols/google-images.js";
|
|
7
8
|
export type { GoogleSpeechOptions } from "../protocols/google-speech.js";
|
|
8
9
|
export type { GoogleTranscriptionOptions } from "../protocols/google-transcription.js";
|
|
9
10
|
export type { GoogleVideoOptions } from "../protocols/google-video.js";
|
|
10
11
|
export type GeminiOptionsInput = Gemini.OptionsInput;
|
|
11
12
|
export type GeminiProviderOptionsInput = Gemini.ProviderOptionsInput;
|
|
13
|
+
export type GoogleInteractionsOptionsInput = GoogleInteractions.OptionsInput;
|
|
12
14
|
export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
13
|
-
export declare const routes: import("../route/client.js").Route<{
|
|
15
|
+
export declare const routes: (import("../route/client.js").Route<{
|
|
14
16
|
readonly contents: readonly {
|
|
15
17
|
readonly parts?: readonly ({
|
|
16
18
|
readonly inlineData: {
|
|
@@ -62,7 +64,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
62
64
|
readonly serviceTier?: string | undefined;
|
|
63
65
|
readonly toolConfig?: {
|
|
64
66
|
readonly functionCallingConfig: {
|
|
65
|
-
readonly mode: "
|
|
67
|
+
readonly mode: "NONE" | "AUTO" | "ANY";
|
|
66
68
|
readonly allowedFunctionNames?: readonly string[] | undefined;
|
|
67
69
|
};
|
|
68
70
|
} | undefined;
|
|
@@ -94,10 +96,71 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
94
96
|
} | undefined;
|
|
95
97
|
readonly maxOutputTokens?: number | undefined;
|
|
96
98
|
} | undefined;
|
|
97
|
-
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>
|
|
99
|
+
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | import("../route/client.js").Route<{
|
|
100
|
+
readonly input: readonly ({
|
|
101
|
+
readonly type: "user_input" | "model_output";
|
|
102
|
+
readonly content: readonly ({
|
|
103
|
+
readonly type: "text";
|
|
104
|
+
readonly text: string;
|
|
105
|
+
} | {
|
|
106
|
+
readonly type: "image" | "document" | "video" | "audio";
|
|
107
|
+
readonly mime_type: string;
|
|
108
|
+
readonly data?: string | undefined;
|
|
109
|
+
readonly uri?: string | undefined;
|
|
110
|
+
})[];
|
|
111
|
+
} | {
|
|
112
|
+
readonly type: "thought";
|
|
113
|
+
readonly summary?: readonly {
|
|
114
|
+
readonly type: "text";
|
|
115
|
+
readonly text: string;
|
|
116
|
+
}[] | undefined;
|
|
117
|
+
readonly signature?: string | undefined;
|
|
118
|
+
} | {
|
|
119
|
+
readonly id: string;
|
|
120
|
+
readonly type: "function_call";
|
|
121
|
+
readonly name: string;
|
|
122
|
+
readonly arguments: unknown;
|
|
123
|
+
readonly signature?: string | undefined;
|
|
124
|
+
} | {
|
|
125
|
+
readonly type: "function_result";
|
|
126
|
+
readonly name: string;
|
|
127
|
+
readonly result: unknown;
|
|
128
|
+
readonly call_id: string;
|
|
129
|
+
readonly is_error?: boolean | undefined;
|
|
130
|
+
})[];
|
|
131
|
+
readonly model: string;
|
|
132
|
+
readonly stream: true;
|
|
133
|
+
readonly store: boolean;
|
|
134
|
+
readonly generation_config: {
|
|
135
|
+
readonly temperature?: number | undefined;
|
|
136
|
+
readonly seed?: number | undefined;
|
|
137
|
+
readonly tool_choice?: "auto" | "none" | "any" | {
|
|
138
|
+
readonly allowed_tools: {
|
|
139
|
+
readonly mode: "any";
|
|
140
|
+
readonly tools: readonly string[];
|
|
141
|
+
};
|
|
142
|
+
} | undefined;
|
|
143
|
+
readonly top_p?: number | undefined;
|
|
144
|
+
readonly stop_sequences?: readonly string[] | undefined;
|
|
145
|
+
readonly max_output_tokens?: number | undefined;
|
|
146
|
+
readonly thinking_level?: import("../schema/options.js").OpenString<"minimal" | "low" | "medium" | "high"> | undefined;
|
|
147
|
+
readonly thinking_summaries?: string | undefined;
|
|
148
|
+
};
|
|
149
|
+
readonly tools?: readonly {
|
|
150
|
+
readonly type: "function";
|
|
151
|
+
readonly name: string;
|
|
152
|
+
readonly description: string;
|
|
153
|
+
readonly parameters: {
|
|
154
|
+
readonly [x: string]: unknown;
|
|
155
|
+
};
|
|
156
|
+
}[] | undefined;
|
|
157
|
+
readonly service_tier?: string | undefined;
|
|
158
|
+
readonly previous_interaction_id?: string | undefined;
|
|
159
|
+
readonly system_instruction?: string | undefined;
|
|
160
|
+
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>)[];
|
|
98
161
|
export type Config = RouteDefaultsInput & ProviderAuthOption<"optional"> & {
|
|
99
162
|
readonly baseURL?: string;
|
|
100
|
-
readonly providerOptions?: Gemini.ProviderOptionsInput;
|
|
163
|
+
readonly providerOptions?: Gemini.ProviderOptionsInput & GoogleInteractions.ProviderOptionsInput;
|
|
101
164
|
};
|
|
102
165
|
export type Settings = ProviderPackage.Settings & Gemini.ProviderOptionsInput & {
|
|
103
166
|
readonly apiKey?: string;
|
|
@@ -106,6 +169,13 @@ export type Settings = ProviderPackage.Settings & Gemini.ProviderOptionsInput &
|
|
|
106
169
|
export declare const configure: (input?: Config) => {
|
|
107
170
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
108
171
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<Gemini.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
172
|
+
interactions: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
173
|
+
readonly serviceTier?: import("../schema/options.js").OpenString<"standard" | "flex" | "priority"> | undefined;
|
|
174
|
+
readonly thinkingLevel?: import("../schema/options.js").OpenString<"minimal" | "low" | "medium" | "high"> | undefined;
|
|
175
|
+
readonly previousInteractionId?: string | undefined;
|
|
176
|
+
readonly store?: boolean | undefined;
|
|
177
|
+
readonly thinkingSummaries?: import("../schema/options.js").OpenString<"auto" | "none"> | undefined;
|
|
178
|
+
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
109
179
|
image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("../protocols/google-images.js").GoogleImageOptions>;
|
|
110
180
|
video: (modelID: string | ModelID) => import("../video.js").VideoModel<import("../protocols/google-video.js").GoogleVideoOptions>;
|
|
111
181
|
speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/google-speech.js").GoogleSpeechOptions>;
|
|
@@ -115,6 +185,13 @@ export declare const configure: (input?: Config) => {
|
|
|
115
185
|
export declare const provider: {
|
|
116
186
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
117
187
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<Gemini.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
188
|
+
interactions: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
189
|
+
readonly serviceTier?: import("../schema/options.js").OpenString<"standard" | "flex" | "priority"> | undefined;
|
|
190
|
+
readonly thinkingLevel?: import("../schema/options.js").OpenString<"minimal" | "low" | "medium" | "high"> | undefined;
|
|
191
|
+
readonly previousInteractionId?: string | undefined;
|
|
192
|
+
readonly store?: boolean | undefined;
|
|
193
|
+
readonly thinkingSummaries?: import("../schema/options.js").OpenString<"auto" | "none"> | undefined;
|
|
194
|
+
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
118
195
|
image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("../protocols/google-images.js").GoogleImageOptions>;
|
|
119
196
|
video: (modelID: string | ModelID) => import("../video.js").VideoModel<import("../protocols/google-video.js").GoogleVideoOptions>;
|
|
120
197
|
speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/google-speech.js").GoogleSpeechOptions>;
|
|
@@ -122,6 +199,13 @@ export declare const provider: {
|
|
|
122
199
|
configure: (input?: Config) => {
|
|
123
200
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
124
201
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<Gemini.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
202
|
+
interactions: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
203
|
+
readonly serviceTier?: import("../schema/options.js").OpenString<"standard" | "flex" | "priority"> | undefined;
|
|
204
|
+
readonly thinkingLevel?: import("../schema/options.js").OpenString<"minimal" | "low" | "medium" | "high"> | undefined;
|
|
205
|
+
readonly previousInteractionId?: string | undefined;
|
|
206
|
+
readonly store?: boolean | undefined;
|
|
207
|
+
readonly thinkingSummaries?: import("../schema/options.js").OpenString<"auto" | "none"> | undefined;
|
|
208
|
+
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
125
209
|
image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("../protocols/google-images.js").GoogleImageOptions>;
|
|
126
210
|
video: (modelID: string | ModelID) => import("../video.js").VideoModel<import("../protocols/google-video.js").GoogleVideoOptions>;
|
|
127
211
|
speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/google-speech.js").GoogleSpeechOptions>;
|
|
@@ -131,6 +215,13 @@ export declare const provider: {
|
|
|
131
215
|
};
|
|
132
216
|
export declare const model: ProviderPackage.Definition<Settings, Gemini.ProviderOptionsInput>["model"];
|
|
133
217
|
export declare const image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("../protocols/google-images.js").GoogleImageOptions>;
|
|
218
|
+
export declare const interactions: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
219
|
+
readonly serviceTier?: import("../schema/options.js").OpenString<"standard" | "flex" | "priority"> | undefined;
|
|
220
|
+
readonly thinkingLevel?: import("../schema/options.js").OpenString<"minimal" | "low" | "medium" | "high"> | undefined;
|
|
221
|
+
readonly previousInteractionId?: string | undefined;
|
|
222
|
+
readonly store?: boolean | undefined;
|
|
223
|
+
readonly thinkingSummaries?: import("../schema/options.js").OpenString<"auto" | "none"> | undefined;
|
|
224
|
+
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
134
225
|
export declare const video: (modelID: string | ModelID) => import("../video.js").VideoModel<import("../protocols/google-video.js").GoogleVideoOptions>;
|
|
135
226
|
export declare const speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/google-speech.js").GoogleSpeechOptions>;
|
|
136
227
|
export declare const transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/google-transcription.js").GoogleTranscriptionOptions>;
|
package/dist/providers/google.js
CHANGED
|
@@ -2,12 +2,13 @@ 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 { Gemini } from "../protocols/gemini.js";
|
|
5
|
+
import { GoogleInteractions } from "../protocols/google-interactions.js";
|
|
5
6
|
import { GoogleImages } from "../protocols/google-images.js";
|
|
6
7
|
import { GoogleSpeech } from "../protocols/google-speech.js";
|
|
7
8
|
import { GoogleTranscription } from "../protocols/google-transcription.js";
|
|
8
9
|
import { GoogleVideo } from "../protocols/google-video.js";
|
|
9
10
|
export const id = ProviderID.make("google");
|
|
10
|
-
export const routes = [Gemini.route];
|
|
11
|
+
export const routes = [Gemini.route, GoogleInteractions.route];
|
|
11
12
|
const auth = (options) => {
|
|
12
13
|
if ("auth" in options && options.auth)
|
|
13
14
|
return options.auth;
|
|
@@ -19,12 +20,17 @@ const configuredRoute = (input) => {
|
|
|
19
20
|
const { apiKey: _, auth: _auth, baseURL, ...rest } = input;
|
|
20
21
|
return Gemini.route.with({ ...rest, endpoint: { baseURL }, auth: auth(input) });
|
|
21
22
|
};
|
|
23
|
+
const interactionsRoute = (input) => {
|
|
24
|
+
const { apiKey: _, auth: _auth, baseURL, ...rest } = input;
|
|
25
|
+
return GoogleInteractions.route.with({ ...rest, endpoint: { baseURL }, auth: auth(input) });
|
|
26
|
+
};
|
|
22
27
|
export const configure = (input = {}) => {
|
|
23
28
|
const route = configuredRoute(input);
|
|
24
29
|
const media = MediaRoute.deployment(input, auth(input));
|
|
25
30
|
return {
|
|
26
31
|
id,
|
|
27
32
|
model: (modelID) => route.model({ id: modelID }),
|
|
33
|
+
interactions: (modelID) => interactionsRoute(input).model({ id: modelID }),
|
|
28
34
|
image: (modelID) => GoogleImages.model({ ...media, id: modelID }),
|
|
29
35
|
video: (modelID) => GoogleVideo.model({ ...media, id: modelID }),
|
|
30
36
|
speech: (modelID) => GoogleSpeech.model({ ...media, id: modelID }),
|
|
@@ -41,6 +47,7 @@ export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOpti
|
|
|
41
47
|
providerOptions,
|
|
42
48
|
}).model(modelID);
|
|
43
49
|
export const image = provider.image;
|
|
50
|
+
export const interactions = provider.interactions;
|
|
44
51
|
export const video = provider.video;
|
|
45
52
|
export const speech = provider.speech;
|
|
46
53
|
export const transcription = provider.transcription;
|
package/dist/providers/groq.d.ts
CHANGED
|
@@ -137,10 +137,10 @@ export declare const protocol: Protocol<{
|
|
|
137
137
|
readonly top_p?: number | undefined;
|
|
138
138
|
readonly frequency_penalty?: number | undefined;
|
|
139
139
|
readonly presence_penalty?: number | undefined;
|
|
140
|
+
readonly store?: boolean | undefined;
|
|
140
141
|
readonly prompt_cache_key?: string | undefined;
|
|
141
142
|
readonly parallel_tool_calls?: boolean | undefined;
|
|
142
143
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
143
|
-
readonly store?: boolean | undefined;
|
|
144
144
|
readonly stream_options?: {
|
|
145
145
|
readonly include_usage: boolean;
|
|
146
146
|
} | undefined;
|
|
@@ -158,9 +158,9 @@ export declare const protocol: Protocol<{
|
|
|
158
158
|
readonly [x: string]: unknown;
|
|
159
159
|
readonly cache_read_input_tokens?: number | null | undefined;
|
|
160
160
|
readonly cached_tokens?: number | null | undefined;
|
|
161
|
+
readonly total_tokens?: number | null | undefined;
|
|
161
162
|
readonly prompt_tokens?: number | null | undefined;
|
|
162
163
|
readonly completion_tokens?: number | null | undefined;
|
|
163
|
-
readonly total_tokens?: number | null | undefined;
|
|
164
164
|
readonly prompt_tokens_details?: {
|
|
165
165
|
readonly [x: string]: unknown;
|
|
166
166
|
readonly cached_tokens?: number | null | undefined;
|
|
@@ -199,9 +199,9 @@ export declare const protocol: Protocol<{
|
|
|
199
199
|
readonly [x: string]: unknown;
|
|
200
200
|
readonly cache_read_input_tokens?: number | null | undefined;
|
|
201
201
|
readonly cached_tokens?: number | null | undefined;
|
|
202
|
+
readonly total_tokens?: number | null | undefined;
|
|
202
203
|
readonly prompt_tokens?: number | null | undefined;
|
|
203
204
|
readonly completion_tokens?: number | null | undefined;
|
|
204
|
-
readonly total_tokens?: number | null | undefined;
|
|
205
205
|
readonly prompt_tokens_details?: {
|
|
206
206
|
readonly [x: string]: unknown;
|
|
207
207
|
readonly cached_tokens?: number | null | undefined;
|
|
@@ -336,10 +336,10 @@ export declare const route: Route<{
|
|
|
336
336
|
readonly top_p?: number | undefined;
|
|
337
337
|
readonly frequency_penalty?: number | undefined;
|
|
338
338
|
readonly presence_penalty?: number | undefined;
|
|
339
|
+
readonly store?: boolean | undefined;
|
|
339
340
|
readonly prompt_cache_key?: string | undefined;
|
|
340
341
|
readonly parallel_tool_calls?: boolean | undefined;
|
|
341
342
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
342
|
-
readonly store?: boolean | undefined;
|
|
343
343
|
readonly stream_options?: {
|
|
344
344
|
readonly include_usage: boolean;
|
|
345
345
|
} | undefined;
|
|
@@ -9,6 +9,7 @@ export * as Baseten from "./baseten.js";
|
|
|
9
9
|
export * as BlackForestLabs from "./black-forest-labs.js";
|
|
10
10
|
export * as Cartesia from "./cartesia.js";
|
|
11
11
|
export * as Cerebras from "./cerebras.js";
|
|
12
|
+
export * as Cohere from "./cohere.js";
|
|
12
13
|
export * as CloudflareAIGateway from "./cloudflare-ai-gateway.js";
|
|
13
14
|
export * as CloudflareWorkersAI from "./cloudflare-workers-ai.js";
|
|
14
15
|
export * as DeepInfra from "./deepinfra.js";
|
|
@@ -39,6 +40,7 @@ export * as Stability from "./stability.js";
|
|
|
39
40
|
export * as TogetherAI from "./togetherai.js";
|
|
40
41
|
export * as TypeSafeAI from "./typesafe-ai.js";
|
|
41
42
|
export * as VercelAIGateway from "./vercel-ai-gateway.js";
|
|
43
|
+
export * as Venice from "./venice.js";
|
|
42
44
|
export * as XAI from "./xai.js";
|
|
43
45
|
export * as ZAI from "./zai.js";
|
|
44
46
|
export * as ZAICodingPlan from "./zai-coding-plan.js";
|
package/dist/providers/index.js
CHANGED
|
@@ -9,6 +9,7 @@ export * as Baseten from "./baseten.js";
|
|
|
9
9
|
export * as BlackForestLabs from "./black-forest-labs.js";
|
|
10
10
|
export * as Cartesia from "./cartesia.js";
|
|
11
11
|
export * as Cerebras from "./cerebras.js";
|
|
12
|
+
export * as Cohere from "./cohere.js";
|
|
12
13
|
export * as CloudflareAIGateway from "./cloudflare-ai-gateway.js";
|
|
13
14
|
export * as CloudflareWorkersAI from "./cloudflare-workers-ai.js";
|
|
14
15
|
export * as DeepInfra from "./deepinfra.js";
|
|
@@ -39,6 +40,7 @@ export * as Stability from "./stability.js";
|
|
|
39
40
|
export * as TogetherAI from "./togetherai.js";
|
|
40
41
|
export * as TypeSafeAI from "./typesafe-ai.js";
|
|
41
42
|
export * as VercelAIGateway from "./vercel-ai-gateway.js";
|
|
43
|
+
export * as Venice from "./venice.js";
|
|
42
44
|
export * as XAI from "./xai.js";
|
|
43
45
|
export * as ZAI from "./zai.js";
|
|
44
46
|
export * as ZAICodingPlan from "./zai-coding-plan.js";
|
package/dist/providers/meta.d.ts
CHANGED
|
@@ -152,9 +152,9 @@ export declare const routes: (Route<{
|
|
|
152
152
|
readonly top_p?: number | undefined;
|
|
153
153
|
readonly frequency_penalty?: number | undefined;
|
|
154
154
|
readonly presence_penalty?: number | undefined;
|
|
155
|
+
readonly store?: boolean | undefined;
|
|
155
156
|
readonly prompt_cache_key?: string | undefined;
|
|
156
157
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
157
|
-
readonly store?: boolean | undefined;
|
|
158
158
|
readonly stream_options?: {
|
|
159
159
|
readonly include_usage: boolean;
|
|
160
160
|
} | undefined;
|
|
@@ -197,6 +197,15 @@ export declare const routes: (Route<{
|
|
|
197
197
|
readonly error?: unknown;
|
|
198
198
|
readonly arguments?: string | undefined;
|
|
199
199
|
readonly server_label?: string | undefined;
|
|
200
|
+
} | {
|
|
201
|
+
readonly type: "configuration_update";
|
|
202
|
+
readonly reasoning: {
|
|
203
|
+
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
204
|
+
};
|
|
205
|
+
} | {
|
|
206
|
+
readonly [x: string]: unknown;
|
|
207
|
+
readonly type: string;
|
|
208
|
+
readonly id: string;
|
|
200
209
|
} | {
|
|
201
210
|
readonly type: "reasoning";
|
|
202
211
|
readonly summary: readonly {
|
|
@@ -273,13 +282,6 @@ export declare const routes: (Route<{
|
|
|
273
282
|
readonly type: "input_video";
|
|
274
283
|
readonly video_url: string;
|
|
275
284
|
})[];
|
|
276
|
-
} | {
|
|
277
|
-
readonly id: string;
|
|
278
|
-
readonly type: "image_generation_call";
|
|
279
|
-
readonly status?: string | undefined;
|
|
280
|
-
readonly error?: unknown;
|
|
281
|
-
readonly result?: string | null | undefined;
|
|
282
|
-
readonly output_format?: string | undefined;
|
|
283
285
|
})[];
|
|
284
286
|
readonly model: string;
|
|
285
287
|
readonly stream: true;
|
|
@@ -292,6 +294,9 @@ export declare const routes: (Route<{
|
|
|
292
294
|
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
293
295
|
} | undefined;
|
|
294
296
|
readonly tools?: readonly ({
|
|
297
|
+
readonly [x: string]: unknown;
|
|
298
|
+
readonly type: string;
|
|
299
|
+
} | {
|
|
295
300
|
readonly type: "function";
|
|
296
301
|
readonly description: string;
|
|
297
302
|
readonly name: string;
|
|
@@ -299,24 +304,6 @@ export declare const routes: (Route<{
|
|
|
299
304
|
readonly [x: string]: unknown;
|
|
300
305
|
};
|
|
301
306
|
readonly strict?: boolean | undefined;
|
|
302
|
-
} | {
|
|
303
|
-
readonly type: "web_search";
|
|
304
|
-
readonly search_context_size?: string | undefined;
|
|
305
|
-
readonly user_location?: {
|
|
306
|
-
readonly type: "approximate";
|
|
307
|
-
readonly region?: string | undefined;
|
|
308
|
-
readonly city?: string | undefined;
|
|
309
|
-
readonly country?: string | undefined;
|
|
310
|
-
readonly timezone?: string | undefined;
|
|
311
|
-
} | undefined;
|
|
312
|
-
} | {
|
|
313
|
-
readonly type: "image_generation";
|
|
314
|
-
readonly size?: string | undefined;
|
|
315
|
-
readonly output_format?: string | undefined;
|
|
316
|
-
readonly reasoning_strength?: string | undefined;
|
|
317
|
-
readonly enable_image_search?: boolean | undefined;
|
|
318
|
-
readonly enable_web_search?: boolean | undefined;
|
|
319
|
-
readonly enable_shell?: boolean | undefined;
|
|
320
307
|
})[] | undefined;
|
|
321
308
|
readonly text?: {
|
|
322
309
|
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
@@ -337,9 +324,10 @@ export declare const routes: (Route<{
|
|
|
337
324
|
readonly top_p?: number | undefined;
|
|
338
325
|
readonly frequency_penalty?: number | undefined;
|
|
339
326
|
readonly presence_penalty?: number | undefined;
|
|
327
|
+
readonly store?: boolean | undefined;
|
|
328
|
+
readonly max_output_tokens?: number | undefined;
|
|
340
329
|
readonly prompt_cache_key?: string | undefined;
|
|
341
330
|
readonly parallel_tool_calls?: boolean | undefined;
|
|
342
|
-
readonly store?: boolean | undefined;
|
|
343
331
|
readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
|
|
344
332
|
readonly truncation?: "auto" | "disabled" | undefined;
|
|
345
333
|
readonly stream_options?: {
|
|
@@ -347,7 +335,6 @@ export declare const routes: (Route<{
|
|
|
347
335
|
} | undefined;
|
|
348
336
|
readonly safety_identifier?: string | undefined;
|
|
349
337
|
readonly top_logprobs?: number | undefined;
|
|
350
|
-
readonly max_output_tokens?: number | undefined;
|
|
351
338
|
readonly max_tool_calls?: number | undefined;
|
|
352
339
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
|
|
353
340
|
readonly max_tokens: number;
|
|
@@ -343,6 +343,15 @@ export declare const routes: (Route<{
|
|
|
343
343
|
readonly error?: unknown;
|
|
344
344
|
readonly arguments?: string | undefined;
|
|
345
345
|
readonly server_label?: string | undefined;
|
|
346
|
+
} | {
|
|
347
|
+
readonly type: "configuration_update";
|
|
348
|
+
readonly reasoning: {
|
|
349
|
+
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
350
|
+
};
|
|
351
|
+
} | {
|
|
352
|
+
readonly [x: string]: unknown;
|
|
353
|
+
readonly type: string;
|
|
354
|
+
readonly id: string;
|
|
346
355
|
} | {
|
|
347
356
|
readonly type: "reasoning";
|
|
348
357
|
readonly summary: readonly {
|
|
@@ -430,7 +439,10 @@ export declare const routes: (Route<{
|
|
|
430
439
|
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
431
440
|
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
432
441
|
} | undefined;
|
|
433
|
-
readonly tools?: readonly {
|
|
442
|
+
readonly tools?: readonly ({
|
|
443
|
+
readonly [x: string]: unknown;
|
|
444
|
+
readonly type: string;
|
|
445
|
+
} | {
|
|
434
446
|
readonly type: "function";
|
|
435
447
|
readonly description: string;
|
|
436
448
|
readonly name: string;
|
|
@@ -438,7 +450,7 @@ export declare const routes: (Route<{
|
|
|
438
450
|
readonly [x: string]: unknown;
|
|
439
451
|
};
|
|
440
452
|
readonly strict?: boolean | undefined;
|
|
441
|
-
}[] | undefined;
|
|
453
|
+
})[] | undefined;
|
|
442
454
|
readonly text?: {
|
|
443
455
|
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
444
456
|
} | undefined;
|
|
@@ -458,9 +470,10 @@ export declare const routes: (Route<{
|
|
|
458
470
|
readonly top_p?: number | undefined;
|
|
459
471
|
readonly frequency_penalty?: number | undefined;
|
|
460
472
|
readonly presence_penalty?: number | undefined;
|
|
473
|
+
readonly store?: boolean | undefined;
|
|
474
|
+
readonly max_output_tokens?: number | undefined;
|
|
461
475
|
readonly prompt_cache_key?: string | undefined;
|
|
462
476
|
readonly parallel_tool_calls?: boolean | undefined;
|
|
463
|
-
readonly store?: boolean | undefined;
|
|
464
477
|
readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
|
|
465
478
|
readonly truncation?: "auto" | "disabled" | undefined;
|
|
466
479
|
readonly stream_options?: {
|
|
@@ -468,7 +481,6 @@ export declare const routes: (Route<{
|
|
|
468
481
|
} | undefined;
|
|
469
482
|
readonly safety_identifier?: string | undefined;
|
|
470
483
|
readonly top_logprobs?: number | undefined;
|
|
471
|
-
readonly max_output_tokens?: number | undefined;
|
|
472
484
|
readonly max_tool_calls?: number | undefined;
|
|
473
485
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
|
|
474
486
|
readonly model: string;
|
|
@@ -588,9 +600,9 @@ export declare const routes: (Route<{
|
|
|
588
600
|
readonly top_p?: number | undefined;
|
|
589
601
|
readonly frequency_penalty?: number | undefined;
|
|
590
602
|
readonly presence_penalty?: number | undefined;
|
|
603
|
+
readonly store?: boolean | undefined;
|
|
591
604
|
readonly prompt_cache_key?: string | undefined;
|
|
592
605
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
593
|
-
readonly store?: boolean | undefined;
|
|
594
606
|
readonly stream_options?: {
|
|
595
607
|
readonly include_usage: boolean;
|
|
596
608
|
} | undefined;
|