@opencode/ai 2.1.3 → 2.2.0
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 +283 -114
- package/dist/ai-client.d.ts +2 -2
- package/dist/ai-client.js +2 -1
- package/dist/cache-policy.d.ts +4 -0
- package/dist/cache-policy.js +20 -6
- package/dist/decision-client.d.ts +21 -0
- package/dist/decision-client.js +55 -0
- package/dist/decision.d.ts +472 -0
- package/dist/decision.js +158 -0
- package/dist/effect.d.ts +38 -0
- package/dist/effect.js +27 -0
- package/dist/effort-updates.d.ts +2 -2
- package/dist/experimental/cloudflare-run-extraction.d.ts +13 -0
- package/dist/experimental/cloudflare-run-extraction.js +83 -0
- package/dist/experimental/extraction.d.ts +183 -0
- package/dist/experimental/extraction.js +102 -0
- package/dist/experimental/realtime.d.ts +7 -2
- package/dist/experimental/realtime.js +5 -5
- package/dist/experimental.d.ts +2 -3
- package/dist/experimental.js +1 -2
- package/dist/image-client.d.ts +13 -22
- package/dist/image-client.js +0 -1
- package/dist/image.d.ts +154 -324
- package/dist/image.js +4 -11
- package/dist/index.d.ts +1426 -34
- package/dist/index.js +127 -24
- package/dist/llm.d.ts +16 -1
- package/dist/llm.js +34 -0
- package/dist/media-client.d.ts +2 -1
- package/dist/media-model.d.ts +3 -0
- package/dist/media-model.js +4 -1
- package/dist/media.d.ts +0 -7
- package/dist/media.js +0 -6
- package/dist/protocols/alibaba-chat.d.ts +32 -12
- package/dist/protocols/alibaba-images.d.ts +22 -0
- package/dist/protocols/alibaba-images.js +77 -0
- package/dist/protocols/alibaba-messages.d.ts +62 -27
- package/dist/protocols/alibaba-responses.d.ts +41 -38
- package/dist/protocols/anthropic-messages.d.ts +196 -94
- package/dist/protocols/anthropic-messages.js +47 -16
- package/dist/protocols/bedrock-converse.d.ts +140 -47
- package/dist/protocols/bedrock-converse.js +114 -18
- package/dist/protocols/bedrock-event-stream.js +1 -0
- package/dist/protocols/bfl-images.d.ts +9 -0
- package/dist/protocols/bfl-images.js +17 -15
- package/dist/protocols/cartesia-speech.d.ts +32 -50
- package/dist/protocols/cloudflare-run-decisions.d.ts +9 -0
- package/dist/protocols/cloudflare-run-decisions.js +36 -0
- package/dist/protocols/cloudflare-workers-ai-images.d.ts +23 -0
- package/dist/protocols/cloudflare-workers-ai-images.js +80 -0
- package/dist/protocols/cohere-chat.d.ts +7 -8
- package/dist/protocols/deepgram-speech.d.ts +32 -50
- package/dist/protocols/elevenlabs-speech.d.ts +32 -50
- package/dist/protocols/fal-images.d.ts +10 -1
- package/dist/protocols/fal-images.js +16 -25
- package/dist/protocols/fal-video.js +1 -1
- package/dist/protocols/gemini.d.ts +37 -34
- package/dist/protocols/gemini.js +13 -8
- package/dist/protocols/google-images.d.ts +2 -2
- package/dist/protocols/google-images.js +8 -37
- package/dist/protocols/google-interactions.d.ts +18 -14
- package/dist/protocols/google-interactions.js +14 -7
- package/dist/protocols/google-speech.d.ts +32 -50
- package/dist/protocols/google-speech.js +0 -1
- package/dist/protocols/google-transcription.d.ts +32 -50
- package/dist/protocols/google-transcription.js +0 -1
- package/dist/protocols/google-video.d.ts +1 -1
- package/dist/protocols/google-video.js +2 -7
- package/dist/protocols/index.d.ts +3 -0
- package/dist/protocols/index.js +3 -0
- package/dist/protocols/meta-images.d.ts +7 -1
- package/dist/protocols/meta-images.js +10 -8
- package/dist/protocols/meta-messages.d.ts +73 -38
- package/dist/protocols/meta-messages.js +14 -1
- package/dist/protocols/meta-responses.d.ts +84 -78
- package/dist/protocols/meta-responses.js +29 -1
- package/dist/protocols/mistral-chat.d.ts +81 -78
- package/dist/protocols/mistral-chat.js +2 -1
- package/dist/protocols/open-responses-channel.js +47 -46
- package/dist/protocols/open-responses-continuation.d.ts +8 -2
- package/dist/protocols/open-responses-continuation.js +3 -1
- package/dist/protocols/open-responses.d.ts +426 -396
- package/dist/protocols/open-responses.js +16 -25
- package/dist/protocols/openai-chat.d.ts +764 -52
- package/dist/protocols/openai-chat.js +38 -25
- package/dist/protocols/openai-compatible-chat.d.ts +35 -15
- package/dist/protocols/openai-compatible-responses.d.ts +44 -42
- package/dist/protocols/openai-decisions.d.ts +22 -0
- package/dist/protocols/openai-decisions.js +128 -0
- package/dist/protocols/openai-images.d.ts +53 -56
- package/dist/protocols/openai-images.js +100 -34
- package/dist/protocols/openai-responses.d.ts +322 -264
- package/dist/protocols/openai-responses.js +33 -3
- package/dist/protocols/openai-speech.d.ts +32 -50
- package/dist/protocols/openai-speech.js +15 -5
- package/dist/protocols/openai-transcription.d.ts +32 -50
- package/dist/protocols/openai-transcription.js +15 -11
- package/dist/protocols/replicate-images.js +1 -1
- package/dist/protocols/runway-video.d.ts +1 -1
- package/dist/protocols/runway-video.js +1 -1
- package/dist/protocols/shared.d.ts +9 -1
- package/dist/protocols/shared.js +13 -2
- package/dist/protocols/stability-images.d.ts +5 -0
- package/dist/protocols/stability-images.js +4 -9
- package/dist/protocols/system-one.d.ts +101 -0
- package/dist/protocols/system-one.js +230 -0
- package/dist/protocols/utils/bedrock-cache.d.ts +2 -2
- package/dist/protocols/utils/bedrock-cache.js +7 -6
- package/dist/protocols/utils/cache.d.ts +14 -3
- package/dist/protocols/utils/cache.js +11 -4
- package/dist/protocols/utils/gemini-generate-content.d.ts +3 -3
- package/dist/protocols/utils/gemini-generate-content.js +10 -16
- package/dist/protocols/utils/gemini-json-schema.d.ts +5 -0
- package/dist/protocols/utils/gemini-json-schema.js +3 -3
- package/dist/protocols/utils/image-sizing.d.ts +31 -0
- package/dist/protocols/utils/image-sizing.js +73 -0
- package/dist/protocols/utils/media-input.d.ts +4 -5
- package/dist/protocols/utils/media-input.js +8 -5
- package/dist/protocols/utils/partial-json-options.d.ts +0 -1
- package/dist/protocols/utils/partial-json-options.js +0 -1
- package/dist/protocols/utils/speech-stream.d.ts +0 -1
- package/dist/protocols/utils/speech-stream.js +0 -1
- package/dist/protocols/utils/tool-schema.js +15 -5
- package/dist/protocols/utils/tool-stream.d.ts +10 -1
- package/dist/protocols/venice-chat.d.ts +71 -53
- package/dist/protocols/venice-chat.js +7 -6
- package/dist/protocols/xai-images.d.ts +1 -2
- package/dist/protocols/xai-images.js +9 -2
- package/dist/protocols/xai-responses.d.ts +88 -78
- package/dist/protocols/xai-responses.js +28 -2
- package/dist/protocols/xai-video.d.ts +1 -1
- package/dist/protocols/xai-video.js +11 -8
- package/dist/protocols/zai-chat.d.ts +54 -30
- package/dist/protocols/zai-chat.js +8 -3
- package/dist/protocols/zai-images.d.ts +3 -1
- package/dist/protocols/zai-images.js +12 -11
- package/dist/protocols/zai-messages.d.ts +72 -35
- package/dist/protocols/zai-messages.js +3 -2
- package/dist/provider-error.js +24 -7
- package/dist/providers/alibaba/images.d.ts +2 -0
- package/dist/providers/alibaba/images.js +1 -0
- package/dist/providers/alibaba.d.ts +146 -85
- package/dist/providers/alibaba.js +16 -8
- package/dist/providers/amazon-bedrock-mantle.d.ts +277 -218
- package/dist/providers/amazon-bedrock.d.ts +48 -28
- package/dist/providers/amazon-bedrock.js +11 -11
- package/dist/providers/anthropic-compatible.d.ts +64 -29
- package/dist/providers/anthropic.d.ts +64 -29
- package/dist/providers/azure/images.d.ts +2 -0
- package/dist/providers/azure/images.js +1 -0
- package/dist/providers/azure.d.ts +156 -115
- package/dist/providers/azure.js +19 -1
- package/dist/providers/baseten/decisions.d.ts +2 -0
- package/dist/providers/baseten/decisions.js +1 -0
- package/dist/providers/baseten.d.ts +75 -25
- package/dist/providers/baseten.js +41 -8
- package/dist/providers/cerebras.d.ts +66 -24
- package/dist/providers/cloudflare-ai-gateway/decisions.d.ts +2 -0
- package/dist/providers/cloudflare-ai-gateway/decisions.js +1 -0
- package/dist/providers/cloudflare-ai-gateway.d.ts +409 -272
- package/dist/providers/cloudflare-ai-gateway.js +33 -6
- package/dist/providers/cloudflare-workers-ai/decisions.d.ts +2 -0
- package/dist/providers/cloudflare-workers-ai/decisions.js +1 -0
- package/dist/providers/cloudflare-workers-ai/images.d.ts +2 -0
- package/dist/providers/cloudflare-workers-ai/images.js +1 -0
- package/dist/providers/cloudflare-workers-ai.d.ts +79 -25
- package/dist/providers/cloudflare-workers-ai.js +45 -9
- package/dist/providers/cohere.d.ts +117 -75
- package/dist/providers/deepinfra.d.ts +66 -24
- package/dist/providers/deepseek.d.ts +66 -24
- package/dist/providers/digitalocean/decisions.d.ts +2 -0
- package/dist/providers/digitalocean/decisions.js +1 -0
- package/dist/providers/digitalocean/images.d.ts +2 -0
- package/dist/providers/digitalocean/images.js +1 -0
- package/dist/providers/digitalocean.d.ts +108 -37
- package/dist/providers/digitalocean.js +39 -8
- package/dist/providers/fireworks.d.ts +66 -24
- package/dist/providers/google/images.d.ts +2 -0
- package/dist/providers/google/images.js +1 -0
- package/dist/providers/google-vertex/images.d.ts +2 -0
- package/dist/providers/google-vertex/images.js +1 -0
- package/dist/providers/google-vertex-chat.d.ts +33 -12
- package/dist/providers/google-vertex-messages.d.ts +64 -29
- package/dist/providers/google-vertex-mistral.d.ts +17 -17
- package/dist/providers/google-vertex-responses.d.ts +38 -35
- package/dist/providers/google-vertex.d.ts +20 -18
- package/dist/providers/google-vertex.js +32 -15
- package/dist/providers/google.d.ts +22 -21
- package/dist/providers/google.js +15 -8
- package/dist/providers/groq.d.ts +66 -28
- package/dist/providers/groq.js +0 -6
- package/dist/providers/meta.d.ts +144 -85
- package/dist/providers/minimax.d.ts +145 -86
- package/dist/providers/mistral.d.ts +28 -28
- package/dist/providers/moonshot.d.ts +277 -218
- package/dist/providers/open-responses-options.d.ts +0 -1
- package/dist/providers/open-responses-options.js +1 -1
- package/dist/providers/openai/images.d.ts +2 -0
- package/dist/providers/openai/images.js +1 -0
- package/dist/providers/openai-compatible/images.d.ts +2 -0
- package/dist/providers/openai-compatible/images.js +1 -0
- package/dist/providers/openai-compatible-responses.d.ts +38 -35
- package/dist/providers/openai-compatible.d.ts +36 -13
- package/dist/providers/openai-compatible.js +22 -10
- package/dist/providers/openai-options.d.ts +3 -2
- package/dist/providers/openai-options.js +0 -1
- package/dist/providers/openai.d.ts +146 -109
- package/dist/providers/openai.js +20 -4
- package/dist/providers/opencode/decisions.d.ts +2 -0
- package/dist/providers/opencode/decisions.js +1 -0
- package/dist/providers/opencode.d.ts +9 -10
- package/dist/providers/opencode.js +10 -8
- package/dist/providers/openrouter/decisions.d.ts +2 -0
- package/dist/providers/openrouter/decisions.js +1 -0
- package/dist/providers/openrouter/images.d.ts +2 -0
- package/dist/providers/openrouter/images.js +1 -0
- package/dist/providers/openrouter.d.ts +128 -47
- package/dist/providers/openrouter.js +38 -16
- package/dist/providers/togetherai.d.ts +66 -24
- package/dist/providers/typesafe-ai/decisions.d.ts +2 -0
- package/dist/providers/typesafe-ai/decisions.js +1 -0
- package/dist/providers/typesafe-ai.d.ts +9 -10
- package/dist/providers/typesafe-ai.js +10 -8
- package/dist/providers/venice.d.ts +214 -20
- package/dist/providers/vercel-ai-gateway/decisions.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/decisions.js +1 -0
- package/dist/providers/vercel-ai-gateway/images.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/images.js +1 -0
- package/dist/providers/vercel-ai-gateway.d.ts +10 -16
- package/dist/providers/vercel-ai-gateway.js +31 -85
- package/dist/providers/xai/images.d.ts +2 -0
- package/dist/providers/xai/images.js +1 -0
- package/dist/providers/xai.d.ts +40 -17
- package/dist/providers/xai.js +15 -8
- package/dist/providers/zai/images.d.ts +2 -0
- package/dist/providers/zai/images.js +1 -0
- package/dist/providers/zai-coding-plan.d.ts +224 -85
- package/dist/providers/zai.d.ts +110 -23
- package/dist/providers/zai.js +15 -8
- package/dist/route/auth-options.d.ts +0 -3
- package/dist/route/auth.d.ts +0 -2
- package/dist/route/auth.js +0 -2
- package/dist/route/client.d.ts +2 -4
- package/dist/route/client.js +29 -8
- package/dist/route/decision.d.ts +58 -0
- package/dist/route/decision.js +75 -0
- package/dist/route/executor-service.js +1 -1
- package/dist/route/executor.d.ts +1 -1
- package/dist/route/framing.d.ts +2 -0
- package/dist/route/index.d.ts +3 -0
- package/dist/route/index.js +3 -0
- package/dist/route/media-protocol.d.ts +1 -0
- package/dist/route/media-protocol.js +12 -8
- package/dist/route/media.d.ts +5 -1
- package/dist/route/media.js +6 -2
- package/dist/route/transport/http.js +1 -0
- package/dist/route/transport/index.d.ts +1 -0
- package/dist/schema/events.d.ts +148 -6
- package/dist/schema/events.js +20 -0
- package/dist/schema/messages.d.ts +6 -2
- package/dist/schema/messages.js +3 -0
- package/dist/schema/options.d.ts +5 -3
- package/dist/schema/options.js +8 -3
- package/dist/speech-client.d.ts +13 -22
- package/dist/speech-client.js +0 -1
- package/dist/speech.d.ts +148 -283
- package/dist/speech.js +2 -4
- package/dist/testing.d.ts +25 -24
- package/dist/testing.js +3 -21
- package/dist/transcription-client.d.ts +13 -22
- package/dist/transcription.d.ts +148 -283
- package/dist/transcription.js +1 -1
- package/dist/utils/media-type.js +22 -1
- package/dist/video-client.d.ts +13 -22
- package/dist/video-client.js +0 -1
- package/dist/video.d.ts +115 -250
- package/dist/video.js +3 -5
- package/package.json +516 -13
- package/dist/experimental/evaluation-client.d.ts +0 -21
- package/dist/experimental/evaluation-client.js +0 -64
- package/dist/experimental/evaluation.d.ts +0 -242
- package/dist/experimental/evaluation.js +0 -115
- package/dist/experimental/system-one.d.ts +0 -16
- package/dist/experimental/system-one.js +0 -135
- package/dist/promise.d.ts +0 -1021
- package/dist/promise.js +0 -101
- package/dist/provider.d.ts +0 -23
- package/dist/provider.js +0 -2
|
@@ -32,183 +32,6 @@ export type Settings<Options = ChatOptionsInput> = ProviderPackage.Settings & Op
|
|
|
32
32
|
readonly baseURL?: string;
|
|
33
33
|
};
|
|
34
34
|
export declare const routes: (Route<{
|
|
35
|
-
readonly model: string;
|
|
36
|
-
readonly input: readonly ({
|
|
37
|
-
readonly type: "compaction";
|
|
38
|
-
readonly id?: string | null | undefined;
|
|
39
|
-
readonly encrypted_content: string;
|
|
40
|
-
} | {
|
|
41
|
-
readonly type: "configuration_update";
|
|
42
|
-
readonly reasoning: {
|
|
43
|
-
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
44
|
-
};
|
|
45
|
-
} | {
|
|
46
|
-
readonly type: "message";
|
|
47
|
-
readonly role: "system";
|
|
48
|
-
readonly content: string;
|
|
49
|
-
} | {
|
|
50
|
-
readonly type: "message";
|
|
51
|
-
readonly role: "developer";
|
|
52
|
-
readonly content: string;
|
|
53
|
-
} | {
|
|
54
|
-
readonly type: "message";
|
|
55
|
-
readonly role: "user";
|
|
56
|
-
readonly content: readonly ({
|
|
57
|
-
readonly type: "input_image";
|
|
58
|
-
readonly image_url: string;
|
|
59
|
-
readonly detail?: string | undefined;
|
|
60
|
-
} | {
|
|
61
|
-
readonly type: "input_file";
|
|
62
|
-
readonly filename: string;
|
|
63
|
-
readonly detail?: string | undefined;
|
|
64
|
-
readonly file_data?: string | undefined;
|
|
65
|
-
readonly file_url?: string | undefined;
|
|
66
|
-
} | {
|
|
67
|
-
readonly type: "input_text";
|
|
68
|
-
readonly text: string;
|
|
69
|
-
})[];
|
|
70
|
-
readonly id?: string | undefined;
|
|
71
|
-
readonly status?: string | undefined;
|
|
72
|
-
} | {
|
|
73
|
-
readonly type: "message";
|
|
74
|
-
readonly id?: string | undefined;
|
|
75
|
-
readonly role: "assistant";
|
|
76
|
-
readonly content: readonly {
|
|
77
|
-
readonly type: "output_text";
|
|
78
|
-
readonly text: string;
|
|
79
|
-
}[];
|
|
80
|
-
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
81
|
-
readonly status?: string | undefined;
|
|
82
|
-
} | {
|
|
83
|
-
readonly type: "reasoning";
|
|
84
|
-
readonly id?: string | undefined;
|
|
85
|
-
readonly summary: readonly {
|
|
86
|
-
readonly type: "summary_text";
|
|
87
|
-
readonly text: string;
|
|
88
|
-
}[];
|
|
89
|
-
readonly encrypted_content?: string | null | undefined;
|
|
90
|
-
} | {
|
|
91
|
-
readonly type: "function_call";
|
|
92
|
-
readonly id?: string | undefined;
|
|
93
|
-
readonly call_id: string;
|
|
94
|
-
readonly name: string;
|
|
95
|
-
readonly namespace?: string | undefined;
|
|
96
|
-
readonly arguments: string;
|
|
97
|
-
} | {
|
|
98
|
-
readonly type: "function_call_output";
|
|
99
|
-
readonly call_id: string;
|
|
100
|
-
readonly output: string | readonly ({
|
|
101
|
-
readonly type: "input_image";
|
|
102
|
-
readonly image_url: string;
|
|
103
|
-
readonly detail?: string | undefined;
|
|
104
|
-
} | {
|
|
105
|
-
readonly type: "input_file";
|
|
106
|
-
readonly filename: string;
|
|
107
|
-
readonly detail?: string | undefined;
|
|
108
|
-
readonly file_data?: string | undefined;
|
|
109
|
-
readonly file_url?: string | undefined;
|
|
110
|
-
} | {
|
|
111
|
-
readonly type: "input_text";
|
|
112
|
-
readonly text: string;
|
|
113
|
-
} | {
|
|
114
|
-
readonly type: "input_video";
|
|
115
|
-
readonly video_url: string;
|
|
116
|
-
})[];
|
|
117
|
-
} | {
|
|
118
|
-
readonly [x: string]: unknown;
|
|
119
|
-
readonly type: "web_search_call";
|
|
120
|
-
readonly id: string;
|
|
121
|
-
readonly status?: string | undefined;
|
|
122
|
-
readonly action?: {
|
|
123
|
-
readonly [x: string]: unknown;
|
|
124
|
-
} | null | undefined;
|
|
125
|
-
} | {
|
|
126
|
-
readonly [x: string]: unknown;
|
|
127
|
-
readonly type: "file_search_call";
|
|
128
|
-
readonly id: string;
|
|
129
|
-
readonly status?: string | undefined;
|
|
130
|
-
readonly queries?: readonly string[] | undefined;
|
|
131
|
-
readonly results?: readonly {
|
|
132
|
-
readonly [x: string]: unknown;
|
|
133
|
-
}[] | null | undefined;
|
|
134
|
-
} | {
|
|
135
|
-
readonly [x: string]: unknown;
|
|
136
|
-
readonly type: "code_interpreter_call";
|
|
137
|
-
readonly id: string;
|
|
138
|
-
readonly status?: string | undefined;
|
|
139
|
-
readonly code?: string | null | undefined;
|
|
140
|
-
readonly container_id?: string | null | undefined;
|
|
141
|
-
readonly outputs?: readonly {
|
|
142
|
-
readonly [x: string]: unknown;
|
|
143
|
-
}[] | null | undefined;
|
|
144
|
-
} | {
|
|
145
|
-
readonly [x: string]: unknown;
|
|
146
|
-
readonly type: "mcp_call";
|
|
147
|
-
readonly id: string;
|
|
148
|
-
readonly status?: string | undefined;
|
|
149
|
-
readonly server_label?: string | undefined;
|
|
150
|
-
readonly name?: string | undefined;
|
|
151
|
-
readonly arguments?: string | undefined;
|
|
152
|
-
readonly output?: string | null | undefined;
|
|
153
|
-
readonly error?: unknown;
|
|
154
|
-
} | {
|
|
155
|
-
readonly [x: string]: unknown;
|
|
156
|
-
readonly type: string;
|
|
157
|
-
readonly id: string;
|
|
158
|
-
})[];
|
|
159
|
-
readonly instructions?: string | undefined;
|
|
160
|
-
readonly tools?: readonly ({
|
|
161
|
-
readonly type: "function";
|
|
162
|
-
readonly name: string;
|
|
163
|
-
readonly description: string;
|
|
164
|
-
readonly parameters: {
|
|
165
|
-
readonly [x: string]: unknown;
|
|
166
|
-
};
|
|
167
|
-
readonly strict?: boolean | undefined;
|
|
168
|
-
} | {
|
|
169
|
-
readonly [x: string]: unknown;
|
|
170
|
-
readonly type: string;
|
|
171
|
-
})[] | undefined;
|
|
172
|
-
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
173
|
-
readonly type: "function";
|
|
174
|
-
readonly name: string;
|
|
175
|
-
} | {
|
|
176
|
-
readonly type: "allowed_tools";
|
|
177
|
-
readonly mode: "auto" | "none" | "required";
|
|
178
|
-
readonly tools: readonly {
|
|
179
|
-
readonly type: "function";
|
|
180
|
-
readonly name: string;
|
|
181
|
-
}[];
|
|
182
|
-
} | undefined;
|
|
183
|
-
readonly store?: boolean | undefined;
|
|
184
|
-
readonly metadata?: {
|
|
185
|
-
readonly [x: string]: string;
|
|
186
|
-
} | undefined;
|
|
187
|
-
readonly safety_identifier?: string | undefined;
|
|
188
|
-
readonly stream_options?: {
|
|
189
|
-
readonly include_obfuscation?: boolean | undefined;
|
|
190
|
-
} | undefined;
|
|
191
|
-
readonly top_logprobs?: number | undefined;
|
|
192
|
-
readonly truncation?: "auto" | "disabled" | undefined;
|
|
193
|
-
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
194
|
-
readonly prompt_cache_key?: string | undefined;
|
|
195
|
-
readonly include?: readonly import("../schema/options.js").OpenString<"code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_content" | "web_search_call.action.sources" | "web_search_call.results">[] | undefined;
|
|
196
|
-
readonly reasoning?: {
|
|
197
|
-
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
198
|
-
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
199
|
-
} | undefined;
|
|
200
|
-
readonly text?: {
|
|
201
|
-
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
202
|
-
} | undefined;
|
|
203
|
-
readonly max_output_tokens?: number | undefined;
|
|
204
|
-
readonly max_tool_calls?: number | undefined;
|
|
205
|
-
readonly parallel_tool_calls?: boolean | undefined;
|
|
206
|
-
readonly temperature?: number | undefined;
|
|
207
|
-
readonly top_p?: number | undefined;
|
|
208
|
-
readonly presence_penalty?: number | undefined;
|
|
209
|
-
readonly frequency_penalty?: number | undefined;
|
|
210
|
-
readonly stream: true;
|
|
211
|
-
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
|
|
212
35
|
readonly context_management?: {
|
|
213
36
|
readonly edits: readonly {
|
|
214
37
|
readonly type: "compact_20260112";
|
|
@@ -226,7 +49,7 @@ export declare const routes: (Route<{
|
|
|
226
49
|
readonly text: string;
|
|
227
50
|
readonly cache_control?: {
|
|
228
51
|
readonly type: "ephemeral";
|
|
229
|
-
readonly ttl?:
|
|
52
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
230
53
|
} | undefined;
|
|
231
54
|
}[] | undefined;
|
|
232
55
|
readonly messages: readonly ({
|
|
@@ -236,7 +59,7 @@ export declare const routes: (Route<{
|
|
|
236
59
|
readonly text: string;
|
|
237
60
|
readonly cache_control?: {
|
|
238
61
|
readonly type: "ephemeral";
|
|
239
|
-
readonly ttl?:
|
|
62
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
240
63
|
} | undefined;
|
|
241
64
|
} | {
|
|
242
65
|
readonly type: "image";
|
|
@@ -253,11 +76,28 @@ export declare const routes: (Route<{
|
|
|
253
76
|
};
|
|
254
77
|
readonly cache_control?: {
|
|
255
78
|
readonly type: "ephemeral";
|
|
256
|
-
readonly ttl?:
|
|
79
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
257
80
|
} | undefined;
|
|
258
81
|
readonly transformations?: {
|
|
259
82
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
260
83
|
} | undefined;
|
|
84
|
+
} | {
|
|
85
|
+
readonly type: "video";
|
|
86
|
+
readonly source: {
|
|
87
|
+
readonly type: "base64";
|
|
88
|
+
readonly media_type: string;
|
|
89
|
+
readonly data: string;
|
|
90
|
+
} | {
|
|
91
|
+
readonly type: "url";
|
|
92
|
+
readonly url: string;
|
|
93
|
+
} | {
|
|
94
|
+
readonly type: "file";
|
|
95
|
+
readonly file_id: string;
|
|
96
|
+
};
|
|
97
|
+
readonly cache_control?: {
|
|
98
|
+
readonly type: "ephemeral";
|
|
99
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
100
|
+
} | undefined;
|
|
261
101
|
} | {
|
|
262
102
|
readonly type: "document";
|
|
263
103
|
readonly source: {
|
|
@@ -277,7 +117,7 @@ export declare const routes: (Route<{
|
|
|
277
117
|
};
|
|
278
118
|
readonly cache_control?: {
|
|
279
119
|
readonly type: "ephemeral";
|
|
280
|
-
readonly ttl?:
|
|
120
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
281
121
|
} | undefined;
|
|
282
122
|
readonly title?: string | undefined;
|
|
283
123
|
readonly context?: string | undefined;
|
|
@@ -292,7 +132,7 @@ export declare const routes: (Route<{
|
|
|
292
132
|
readonly text: string;
|
|
293
133
|
readonly cache_control?: {
|
|
294
134
|
readonly type: "ephemeral";
|
|
295
|
-
readonly ttl?:
|
|
135
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
296
136
|
} | undefined;
|
|
297
137
|
} | {
|
|
298
138
|
readonly type: "image";
|
|
@@ -309,11 +149,28 @@ export declare const routes: (Route<{
|
|
|
309
149
|
};
|
|
310
150
|
readonly cache_control?: {
|
|
311
151
|
readonly type: "ephemeral";
|
|
312
|
-
readonly ttl?:
|
|
152
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
313
153
|
} | undefined;
|
|
314
154
|
readonly transformations?: {
|
|
315
155
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
316
156
|
} | undefined;
|
|
157
|
+
} | {
|
|
158
|
+
readonly type: "video";
|
|
159
|
+
readonly source: {
|
|
160
|
+
readonly type: "base64";
|
|
161
|
+
readonly media_type: string;
|
|
162
|
+
readonly data: string;
|
|
163
|
+
} | {
|
|
164
|
+
readonly type: "url";
|
|
165
|
+
readonly url: string;
|
|
166
|
+
} | {
|
|
167
|
+
readonly type: "file";
|
|
168
|
+
readonly file_id: string;
|
|
169
|
+
};
|
|
170
|
+
readonly cache_control?: {
|
|
171
|
+
readonly type: "ephemeral";
|
|
172
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
173
|
+
} | undefined;
|
|
317
174
|
} | {
|
|
318
175
|
readonly type: "document";
|
|
319
176
|
readonly source: {
|
|
@@ -333,7 +190,7 @@ export declare const routes: (Route<{
|
|
|
333
190
|
};
|
|
334
191
|
readonly cache_control?: {
|
|
335
192
|
readonly type: "ephemeral";
|
|
336
|
-
readonly ttl?:
|
|
193
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
337
194
|
} | undefined;
|
|
338
195
|
readonly title?: string | undefined;
|
|
339
196
|
readonly context?: string | undefined;
|
|
@@ -344,43 +201,35 @@ export declare const routes: (Route<{
|
|
|
344
201
|
readonly is_error?: boolean | undefined;
|
|
345
202
|
readonly cache_control?: {
|
|
346
203
|
readonly type: "ephemeral";
|
|
347
|
-
readonly ttl?:
|
|
204
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
348
205
|
} | undefined;
|
|
349
206
|
})[];
|
|
350
207
|
} | {
|
|
351
208
|
readonly role: "assistant";
|
|
352
209
|
readonly content: readonly ({
|
|
210
|
+
readonly type: "compaction";
|
|
211
|
+
readonly content: string | null;
|
|
212
|
+
} | {
|
|
353
213
|
readonly type: "text";
|
|
354
214
|
readonly text: string;
|
|
355
215
|
readonly cache_control?: {
|
|
356
216
|
readonly type: "ephemeral";
|
|
357
|
-
readonly ttl?:
|
|
217
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
358
218
|
} | undefined;
|
|
359
|
-
} | {
|
|
360
|
-
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
361
|
-
readonly tool_use_id: string;
|
|
362
|
-
readonly content: unknown;
|
|
363
|
-
readonly cache_control?: {
|
|
364
|
-
readonly type: "ephemeral";
|
|
365
|
-
readonly ttl?: "1h" | "5m" | undefined;
|
|
366
|
-
} | undefined;
|
|
367
|
-
} | {
|
|
368
|
-
readonly type: "compaction";
|
|
369
|
-
readonly content: string | null;
|
|
370
219
|
} | {
|
|
371
220
|
readonly type: "thinking";
|
|
372
221
|
readonly thinking: string;
|
|
373
222
|
readonly signature: string;
|
|
374
223
|
readonly cache_control?: {
|
|
375
224
|
readonly type: "ephemeral";
|
|
376
|
-
readonly ttl?:
|
|
225
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
377
226
|
} | undefined;
|
|
378
227
|
} | {
|
|
379
228
|
readonly type: "redacted_thinking";
|
|
380
229
|
readonly data: string;
|
|
381
230
|
readonly cache_control?: {
|
|
382
231
|
readonly type: "ephemeral";
|
|
383
|
-
readonly ttl?:
|
|
232
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
384
233
|
} | undefined;
|
|
385
234
|
} | {
|
|
386
235
|
readonly type: "tool_use";
|
|
@@ -389,7 +238,7 @@ export declare const routes: (Route<{
|
|
|
389
238
|
readonly input: unknown;
|
|
390
239
|
readonly cache_control?: {
|
|
391
240
|
readonly type: "ephemeral";
|
|
392
|
-
readonly ttl?:
|
|
241
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
393
242
|
} | undefined;
|
|
394
243
|
} | {
|
|
395
244
|
readonly type: "server_tool_use";
|
|
@@ -398,7 +247,15 @@ export declare const routes: (Route<{
|
|
|
398
247
|
readonly input: unknown;
|
|
399
248
|
readonly cache_control?: {
|
|
400
249
|
readonly type: "ephemeral";
|
|
401
|
-
readonly ttl?:
|
|
250
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
251
|
+
} | undefined;
|
|
252
|
+
} | {
|
|
253
|
+
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
254
|
+
readonly tool_use_id: string;
|
|
255
|
+
readonly content: unknown;
|
|
256
|
+
readonly cache_control?: {
|
|
257
|
+
readonly type: "ephemeral";
|
|
258
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
402
259
|
} | undefined;
|
|
403
260
|
})[];
|
|
404
261
|
} | {
|
|
@@ -408,7 +265,7 @@ export declare const routes: (Route<{
|
|
|
408
265
|
readonly text: string;
|
|
409
266
|
readonly cache_control?: {
|
|
410
267
|
readonly type: "ephemeral";
|
|
411
|
-
readonly ttl?:
|
|
268
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
412
269
|
} | undefined;
|
|
413
270
|
}[];
|
|
414
271
|
readonly output_config?: {
|
|
@@ -423,7 +280,7 @@ export declare const routes: (Route<{
|
|
|
423
280
|
};
|
|
424
281
|
readonly cache_control?: {
|
|
425
282
|
readonly type: "ephemeral";
|
|
426
|
-
readonly ttl?:
|
|
283
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
427
284
|
} | undefined;
|
|
428
285
|
}[] | undefined;
|
|
429
286
|
readonly tool_choice?: {
|
|
@@ -441,6 +298,8 @@ export declare const routes: (Route<{
|
|
|
441
298
|
readonly top_k?: number | undefined;
|
|
442
299
|
readonly stop_sequences?: readonly string[] | undefined;
|
|
443
300
|
readonly thinking?: {
|
|
301
|
+
readonly type: "between_tools" | "disabled";
|
|
302
|
+
} | {
|
|
444
303
|
readonly display?: import("../schema/options.js").OpenString<"omitted" | "summarized"> | undefined;
|
|
445
304
|
readonly block_binding?: {
|
|
446
305
|
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
|
|
@@ -453,8 +312,6 @@ export declare const routes: (Route<{
|
|
|
453
312
|
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
|
|
454
313
|
} | undefined;
|
|
455
314
|
readonly type: "adaptive";
|
|
456
|
-
} | {
|
|
457
|
-
readonly type: "between_tools" | "disabled";
|
|
458
315
|
} | undefined;
|
|
459
316
|
readonly output_config?: {
|
|
460
317
|
readonly effort?: string | undefined;
|
|
@@ -467,7 +324,7 @@ export declare const routes: (Route<{
|
|
|
467
324
|
} | undefined;
|
|
468
325
|
readonly cache_control?: {
|
|
469
326
|
readonly type: "ephemeral";
|
|
470
|
-
readonly ttl?:
|
|
327
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
471
328
|
} | undefined;
|
|
472
329
|
readonly container?: string | {
|
|
473
330
|
readonly id?: string | null | undefined;
|
|
@@ -480,49 +337,240 @@ export declare const routes: (Route<{
|
|
|
480
337
|
readonly user_id?: string | null | undefined;
|
|
481
338
|
} | undefined;
|
|
482
339
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
|
|
340
|
+
readonly speed?: import("../schema/options.js").OpenString<"fast" | "standard"> | undefined;
|
|
483
341
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
|
|
484
342
|
readonly model: string;
|
|
485
|
-
readonly
|
|
343
|
+
readonly input: readonly ({
|
|
344
|
+
readonly type: "configuration_update";
|
|
345
|
+
readonly reasoning: {
|
|
346
|
+
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
347
|
+
};
|
|
348
|
+
} | {
|
|
349
|
+
readonly type: "message";
|
|
486
350
|
readonly role: "system";
|
|
487
|
-
readonly content: string
|
|
488
|
-
|
|
351
|
+
readonly content: string;
|
|
352
|
+
} | {
|
|
353
|
+
readonly type: "message";
|
|
354
|
+
readonly role: "developer";
|
|
355
|
+
readonly content: string;
|
|
356
|
+
} | {
|
|
357
|
+
readonly type: "function_call_output";
|
|
358
|
+
readonly call_id: string;
|
|
359
|
+
readonly output: string | readonly ({
|
|
360
|
+
readonly type: "input_text";
|
|
489
361
|
readonly text: string;
|
|
490
|
-
readonly cache_control?: {
|
|
491
|
-
readonly type: "ephemeral";
|
|
492
|
-
readonly ttl?: string | undefined;
|
|
493
|
-
} | undefined;
|
|
494
362
|
} | {
|
|
363
|
+
readonly type: "input_video";
|
|
364
|
+
readonly video_url: string;
|
|
365
|
+
} | {
|
|
366
|
+
readonly type: "input_image";
|
|
367
|
+
readonly image_url: string;
|
|
368
|
+
readonly detail?: string | undefined;
|
|
369
|
+
} | {
|
|
370
|
+
readonly type: "input_file";
|
|
371
|
+
readonly filename: string;
|
|
372
|
+
readonly detail?: string | undefined;
|
|
373
|
+
readonly file_data?: string | undefined;
|
|
374
|
+
readonly file_url?: string | undefined;
|
|
375
|
+
})[];
|
|
376
|
+
} | {
|
|
377
|
+
readonly type: "reasoning";
|
|
378
|
+
readonly id?: string | undefined;
|
|
379
|
+
readonly summary: readonly {
|
|
380
|
+
readonly type: "summary_text";
|
|
381
|
+
readonly text: string;
|
|
382
|
+
}[];
|
|
383
|
+
readonly encrypted_content?: string | null | undefined;
|
|
384
|
+
} | {
|
|
385
|
+
readonly type: "compaction";
|
|
386
|
+
readonly id?: string | null | undefined;
|
|
387
|
+
readonly encrypted_content: string;
|
|
388
|
+
} | {
|
|
389
|
+
readonly type: "message";
|
|
390
|
+
readonly role: "user";
|
|
391
|
+
readonly content: readonly ({
|
|
392
|
+
readonly type: "input_text";
|
|
393
|
+
readonly text: string;
|
|
394
|
+
} | {
|
|
395
|
+
readonly type: "input_video";
|
|
396
|
+
readonly video_url: string;
|
|
397
|
+
} | {
|
|
398
|
+
readonly type: "input_image";
|
|
399
|
+
readonly image_url: string;
|
|
400
|
+
readonly detail?: string | undefined;
|
|
401
|
+
} | {
|
|
402
|
+
readonly type: "input_file";
|
|
403
|
+
readonly filename: string;
|
|
404
|
+
readonly detail?: string | undefined;
|
|
405
|
+
readonly file_data?: string | undefined;
|
|
406
|
+
readonly file_url?: string | undefined;
|
|
407
|
+
})[];
|
|
408
|
+
readonly id?: string | undefined;
|
|
409
|
+
readonly status?: string | undefined;
|
|
410
|
+
} | {
|
|
411
|
+
readonly type: "message";
|
|
412
|
+
readonly id?: string | undefined;
|
|
413
|
+
readonly role: "assistant";
|
|
414
|
+
readonly content: readonly {
|
|
415
|
+
readonly type: "output_text";
|
|
416
|
+
readonly text: string;
|
|
417
|
+
}[];
|
|
418
|
+
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
419
|
+
readonly status?: string | undefined;
|
|
420
|
+
} | {
|
|
421
|
+
readonly type: "function_call";
|
|
422
|
+
readonly id?: string | undefined;
|
|
423
|
+
readonly call_id: string;
|
|
424
|
+
readonly name: string;
|
|
425
|
+
readonly namespace?: string | undefined;
|
|
426
|
+
readonly arguments: string;
|
|
427
|
+
} | {
|
|
428
|
+
readonly [x: string]: unknown;
|
|
429
|
+
readonly type: "web_search_call";
|
|
430
|
+
readonly id: string;
|
|
431
|
+
readonly status?: string | undefined;
|
|
432
|
+
readonly action?: {
|
|
433
|
+
readonly [x: string]: unknown;
|
|
434
|
+
} | null | undefined;
|
|
435
|
+
} | {
|
|
436
|
+
readonly [x: string]: unknown;
|
|
437
|
+
readonly type: "file_search_call";
|
|
438
|
+
readonly id: string;
|
|
439
|
+
readonly status?: string | undefined;
|
|
440
|
+
readonly queries?: readonly string[] | undefined;
|
|
441
|
+
readonly results?: readonly {
|
|
442
|
+
readonly [x: string]: unknown;
|
|
443
|
+
}[] | null | undefined;
|
|
444
|
+
} | {
|
|
445
|
+
readonly [x: string]: unknown;
|
|
446
|
+
readonly type: "code_interpreter_call";
|
|
447
|
+
readonly id: string;
|
|
448
|
+
readonly status?: string | undefined;
|
|
449
|
+
readonly code?: string | null | undefined;
|
|
450
|
+
readonly container_id?: string | null | undefined;
|
|
451
|
+
readonly outputs?: readonly {
|
|
452
|
+
readonly [x: string]: unknown;
|
|
453
|
+
}[] | null | undefined;
|
|
454
|
+
} | {
|
|
455
|
+
readonly [x: string]: unknown;
|
|
456
|
+
readonly type: "mcp_call";
|
|
457
|
+
readonly id: string;
|
|
458
|
+
readonly status?: string | undefined;
|
|
459
|
+
readonly server_label?: string | undefined;
|
|
460
|
+
readonly name?: string | undefined;
|
|
461
|
+
readonly arguments?: string | undefined;
|
|
462
|
+
readonly output?: string | null | undefined;
|
|
463
|
+
readonly error?: unknown;
|
|
464
|
+
} | {
|
|
465
|
+
readonly [x: string]: unknown;
|
|
466
|
+
readonly type: string;
|
|
467
|
+
readonly id: string;
|
|
468
|
+
})[];
|
|
469
|
+
readonly instructions?: string | undefined;
|
|
470
|
+
readonly tools?: readonly ({
|
|
471
|
+
readonly type: "function";
|
|
472
|
+
readonly name: string;
|
|
473
|
+
readonly description: string;
|
|
474
|
+
readonly parameters: {
|
|
475
|
+
readonly [x: string]: unknown;
|
|
476
|
+
};
|
|
477
|
+
readonly strict?: boolean | undefined;
|
|
478
|
+
} | {
|
|
479
|
+
readonly [x: string]: unknown;
|
|
480
|
+
readonly type: string;
|
|
481
|
+
})[] | undefined;
|
|
482
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
483
|
+
readonly type: "function";
|
|
484
|
+
readonly name: string;
|
|
485
|
+
} | {
|
|
486
|
+
readonly type: "allowed_tools";
|
|
487
|
+
readonly mode: "auto" | "none" | "required";
|
|
488
|
+
readonly tools: readonly {
|
|
489
|
+
readonly type: "function";
|
|
490
|
+
readonly name: string;
|
|
491
|
+
}[];
|
|
492
|
+
} | undefined;
|
|
493
|
+
readonly store?: boolean | undefined;
|
|
494
|
+
readonly metadata?: {
|
|
495
|
+
readonly [x: string]: string;
|
|
496
|
+
} | undefined;
|
|
497
|
+
readonly safety_identifier?: string | undefined;
|
|
498
|
+
readonly stream_options?: {
|
|
499
|
+
readonly include_obfuscation?: boolean | undefined;
|
|
500
|
+
} | undefined;
|
|
501
|
+
readonly top_logprobs?: number | undefined;
|
|
502
|
+
readonly truncation?: "auto" | "disabled" | undefined;
|
|
503
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
504
|
+
readonly prompt_cache_key?: string | undefined;
|
|
505
|
+
readonly include?: readonly import("../schema/options.js").OpenString<"code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_content" | "web_search_call.action.sources" | "web_search_call.results">[] | undefined;
|
|
506
|
+
readonly reasoning?: {
|
|
507
|
+
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
508
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
509
|
+
} | undefined;
|
|
510
|
+
readonly text?: {
|
|
511
|
+
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
512
|
+
} | undefined;
|
|
513
|
+
readonly max_output_tokens?: number | undefined;
|
|
514
|
+
readonly max_tool_calls?: number | undefined;
|
|
515
|
+
readonly parallel_tool_calls?: boolean | undefined;
|
|
516
|
+
readonly temperature?: number | undefined;
|
|
517
|
+
readonly top_p?: number | undefined;
|
|
518
|
+
readonly presence_penalty?: number | undefined;
|
|
519
|
+
readonly frequency_penalty?: number | undefined;
|
|
520
|
+
readonly stream: true;
|
|
521
|
+
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
|
|
522
|
+
readonly model: string;
|
|
523
|
+
readonly messages: readonly ({
|
|
524
|
+
readonly role: "system";
|
|
525
|
+
readonly content: string | readonly ({
|
|
495
526
|
readonly type: "image_url";
|
|
496
527
|
readonly image_url: {
|
|
497
528
|
readonly url: string;
|
|
498
529
|
};
|
|
530
|
+
} | {
|
|
531
|
+
readonly type: "video_url";
|
|
532
|
+
readonly video_url: {
|
|
533
|
+
readonly url: string;
|
|
534
|
+
};
|
|
499
535
|
} | {
|
|
500
536
|
readonly type: "file";
|
|
501
537
|
readonly file: {
|
|
502
538
|
readonly filename: string;
|
|
503
539
|
readonly file_data: string;
|
|
504
540
|
};
|
|
505
|
-
}
|
|
506
|
-
} | {
|
|
507
|
-
readonly role: "user";
|
|
508
|
-
readonly content: string | readonly ({
|
|
541
|
+
} | {
|
|
509
542
|
readonly type: "text";
|
|
510
543
|
readonly text: string;
|
|
511
544
|
readonly cache_control?: {
|
|
512
545
|
readonly type: "ephemeral";
|
|
513
546
|
readonly ttl?: string | undefined;
|
|
514
547
|
} | undefined;
|
|
515
|
-
}
|
|
548
|
+
})[];
|
|
549
|
+
} | {
|
|
550
|
+
readonly role: "user";
|
|
551
|
+
readonly content: string | readonly ({
|
|
516
552
|
readonly type: "image_url";
|
|
517
553
|
readonly image_url: {
|
|
518
554
|
readonly url: string;
|
|
519
555
|
};
|
|
556
|
+
} | {
|
|
557
|
+
readonly type: "video_url";
|
|
558
|
+
readonly video_url: {
|
|
559
|
+
readonly url: string;
|
|
560
|
+
};
|
|
520
561
|
} | {
|
|
521
562
|
readonly type: "file";
|
|
522
563
|
readonly file: {
|
|
523
564
|
readonly filename: string;
|
|
524
565
|
readonly file_data: string;
|
|
525
566
|
};
|
|
567
|
+
} | {
|
|
568
|
+
readonly type: "text";
|
|
569
|
+
readonly text: string;
|
|
570
|
+
readonly cache_control?: {
|
|
571
|
+
readonly type: "ephemeral";
|
|
572
|
+
readonly ttl?: string | undefined;
|
|
573
|
+
} | undefined;
|
|
526
574
|
})[];
|
|
527
575
|
} | {
|
|
528
576
|
readonly role: "tool";
|
|
@@ -591,7 +639,18 @@ export declare const routes: (Route<{
|
|
|
591
639
|
} | undefined;
|
|
592
640
|
readonly store?: boolean | undefined;
|
|
593
641
|
readonly prompt_cache_key?: string | undefined;
|
|
642
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
643
|
+
readonly prompt_cache_options?: {
|
|
644
|
+
readonly ttl?: string | undefined;
|
|
645
|
+
} | undefined;
|
|
594
646
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
647
|
+
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
648
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
649
|
+
readonly parallel_tool_calls?: boolean | undefined;
|
|
650
|
+
readonly metadata?: {
|
|
651
|
+
readonly [x: string]: string;
|
|
652
|
+
} | undefined;
|
|
653
|
+
readonly safety_identifier?: string | undefined;
|
|
595
654
|
readonly tool_stream?: boolean | undefined;
|
|
596
655
|
readonly max_completion_tokens?: number | undefined;
|
|
597
656
|
readonly max_tokens?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|