@opencode/ai 0.0.0-reserved → 2.0.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/README.md +879 -2
- package/dist/cache-policy.d.ts +2 -0
- package/dist/cache-policy.js +129 -0
- package/dist/image-client.d.ts +19 -0
- package/dist/image-client.js +28 -0
- package/dist/image.d.ts +110 -0
- package/dist/image.js +103 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +12 -0
- package/dist/llm.d.ts +252 -0
- package/dist/llm.js +74 -0
- package/dist/protocols/alibaba-chat.d.ts +225 -0
- package/dist/protocols/alibaba-chat.js +75 -0
- package/dist/protocols/alibaba-messages.d.ts +350 -0
- package/dist/protocols/alibaba-messages.js +40 -0
- package/dist/protocols/alibaba-responses.d.ts +255 -0
- package/dist/protocols/alibaba-responses.js +80 -0
- package/dist/protocols/anthropic-messages.d.ts +980 -0
- package/dist/protocols/anthropic-messages.js +1460 -0
- package/dist/protocols/bedrock-converse.d.ts +499 -0
- package/dist/protocols/bedrock-converse.js +643 -0
- package/dist/protocols/bedrock-event-stream.d.ts +9 -0
- package/dist/protocols/bedrock-event-stream.js +97 -0
- package/dist/protocols/gemini.d.ts +285 -0
- package/dist/protocols/gemini.js +671 -0
- package/dist/protocols/google-images.d.ts +30 -0
- package/dist/protocols/google-images.js +181 -0
- package/dist/protocols/index.d.ts +12 -0
- package/dist/protocols/index.js +12 -0
- package/dist/protocols/meta-images.d.ts +26 -0
- package/dist/protocols/meta-images.js +89 -0
- package/dist/protocols/meta-messages.d.ts +356 -0
- package/dist/protocols/meta-messages.js +41 -0
- package/dist/protocols/meta-responses.d.ts +473 -0
- package/dist/protocols/meta-responses.js +173 -0
- package/dist/protocols/mistral-chat.d.ts +540 -0
- package/dist/protocols/mistral-chat.js +624 -0
- package/dist/protocols/open-responses-channel.d.ts +25 -0
- package/dist/protocols/open-responses-channel.js +141 -0
- package/dist/protocols/open-responses-continuation.d.ts +16 -0
- package/dist/protocols/open-responses-continuation.js +170 -0
- package/dist/protocols/open-responses.d.ts +1715 -0
- package/dist/protocols/open-responses.js +1228 -0
- package/dist/protocols/openai-chat.d.ts +860 -0
- package/dist/protocols/openai-chat.js +966 -0
- package/dist/protocols/openai-compatible-chat.d.ts +109 -0
- package/dist/protocols/openai-compatible-chat.js +19 -0
- package/dist/protocols/openai-compatible-responses.d.ts +172 -0
- package/dist/protocols/openai-compatible-responses.js +18 -0
- package/dist/protocols/openai-images.d.ts +32 -0
- package/dist/protocols/openai-images.js +183 -0
- package/dist/protocols/openai-responses.d.ts +1389 -0
- package/dist/protocols/openai-responses.js +260 -0
- package/dist/protocols/shared.d.ts +193 -0
- package/dist/protocols/shared.js +290 -0
- package/dist/protocols/utils/bedrock-auth.d.ts +60 -0
- package/dist/protocols/utils/bedrock-auth.js +85 -0
- package/dist/protocols/utils/bedrock-cache.d.ts +19 -0
- package/dist/protocols/utils/bedrock-cache.js +49 -0
- package/dist/protocols/utils/bedrock-media.d.ts +55 -0
- package/dist/protocols/utils/bedrock-media.js +73 -0
- package/dist/protocols/utils/cache.d.ts +6 -0
- package/dist/protocols/utils/cache.js +5 -0
- package/dist/protocols/utils/gemini-tool-schema.d.ts +2 -0
- package/dist/protocols/utils/gemini-tool-schema.js +103 -0
- package/dist/protocols/utils/image-input.d.ts +21 -0
- package/dist/protocols/utils/image-input.js +20 -0
- package/dist/protocols/utils/lifecycle.d.ts +24 -0
- package/dist/protocols/utils/lifecycle.js +72 -0
- package/dist/protocols/utils/meta-image.d.ts +2 -0
- package/dist/protocols/utils/meta-image.js +13 -0
- package/dist/protocols/utils/open-responses-options.d.ts +56 -0
- package/dist/protocols/utils/open-responses-options.js +61 -0
- package/dist/protocols/utils/openai-image.d.ts +5 -0
- package/dist/protocols/utils/openai-image.js +18 -0
- package/dist/protocols/utils/openai-options.d.ts +16 -0
- package/dist/protocols/utils/openai-options.js +14 -0
- package/dist/protocols/utils/partial-json-options.d.ts +62 -0
- package/dist/protocols/utils/partial-json-options.js +52 -0
- package/dist/protocols/utils/partial-json.d.ts +8 -0
- package/dist/protocols/utils/partial-json.js +279 -0
- package/dist/protocols/utils/responses-checkpoint.d.ts +4 -0
- package/dist/protocols/utils/responses-checkpoint.js +107 -0
- package/dist/protocols/utils/responses-compaction.d.ts +4 -0
- package/dist/protocols/utils/responses-compaction.js +129 -0
- package/dist/protocols/utils/responses-hosted-tools.d.ts +26 -0
- package/dist/protocols/utils/responses-hosted-tools.js +32 -0
- package/dist/protocols/utils/tool-schema.d.ts +8 -0
- package/dist/protocols/utils/tool-schema.js +54 -0
- package/dist/protocols/utils/tool-stream.d.ts +710 -0
- package/dist/protocols/utils/tool-stream.js +155 -0
- package/dist/protocols/xai-images.d.ts +26 -0
- package/dist/protocols/xai-images.js +106 -0
- package/dist/protocols/xai-responses.d.ts +250 -0
- package/dist/protocols/xai-responses.js +81 -0
- package/dist/protocols/zai-chat.d.ts +202 -0
- package/dist/protocols/zai-chat.js +49 -0
- package/dist/protocols/zai-images.d.ts +22 -0
- package/dist/protocols/zai-images.js +79 -0
- package/dist/protocols/zai-messages.d.ts +344 -0
- package/dist/protocols/zai-messages.js +27 -0
- package/dist/protocols.d.ts +1 -0
- package/dist/protocols.js +1 -0
- package/dist/provider-error.d.ts +15 -0
- package/dist/provider-error.js +125 -0
- package/dist/provider-package.d.ts +15 -0
- package/dist/provider-package.js +1 -0
- package/dist/provider.d.ts +23 -0
- package/dist/provider.js +2 -0
- package/dist/providers/alibaba/chat.d.ts +1 -0
- package/dist/providers/alibaba/chat.js +1 -0
- package/dist/providers/alibaba/messages.d.ts +3 -0
- package/dist/providers/alibaba/messages.js +1 -0
- package/dist/providers/alibaba/responses.d.ts +3 -0
- package/dist/providers/alibaba/responses.js +1 -0
- package/dist/providers/alibaba.d.ts +711 -0
- package/dist/providers/alibaba.js +94 -0
- package/dist/providers/amazon-bedrock/mantle/chat.d.ts +2 -0
- package/dist/providers/amazon-bedrock/mantle/chat.js +1 -0
- package/dist/providers/amazon-bedrock/mantle/responses.d.ts +2 -0
- package/dist/providers/amazon-bedrock/mantle/responses.js +1 -0
- package/dist/providers/amazon-bedrock/mantle.d.ts +2 -0
- package/dist/providers/amazon-bedrock/mantle.js +1 -0
- package/dist/providers/amazon-bedrock-mantle.d.ts +313 -0
- package/dist/providers/amazon-bedrock-mantle.js +79 -0
- package/dist/providers/amazon-bedrock.d.ts +173 -0
- package/dist/providers/amazon-bedrock.js +41 -0
- package/dist/providers/anthropic-compatible.d.ts +309 -0
- package/dist/providers/anthropic-compatible.js +50 -0
- package/dist/providers/anthropic.d.ts +307 -0
- package/dist/providers/anthropic.js +42 -0
- package/dist/providers/azure/chat.d.ts +2 -0
- package/dist/providers/azure/chat.js +1 -0
- package/dist/providers/azure/responses.d.ts +2 -0
- package/dist/providers/azure/responses.js +1 -0
- package/dist/providers/azure.d.ts +598 -0
- package/dist/providers/azure.js +115 -0
- package/dist/providers/baseten.d.ts +228 -0
- package/dist/providers/baseten.js +38 -0
- package/dist/providers/cerebras.d.ts +227 -0
- package/dist/providers/cerebras.js +40 -0
- package/dist/providers/cloudflare-ai-gateway.d.ts +237 -0
- package/dist/providers/cloudflare-ai-gateway.js +65 -0
- package/dist/providers/cloudflare-workers-ai.d.ts +231 -0
- package/dist/providers/cloudflare-workers-ai.js +51 -0
- package/dist/providers/deepinfra.d.ts +227 -0
- package/dist/providers/deepinfra.js +43 -0
- package/dist/providers/deepseek.d.ts +228 -0
- package/dist/providers/deepseek.js +41 -0
- package/dist/providers/fireworks.d.ts +228 -0
- package/dist/providers/fireworks.js +38 -0
- package/dist/providers/google-vertex/chat.d.ts +2 -0
- package/dist/providers/google-vertex/chat.js +1 -0
- package/dist/providers/google-vertex/gemini.d.ts +2 -0
- package/dist/providers/google-vertex/gemini.js +1 -0
- package/dist/providers/google-vertex/messages.d.ts +2 -0
- package/dist/providers/google-vertex/messages.js +1 -0
- package/dist/providers/google-vertex/responses.d.ts +2 -0
- package/dist/providers/google-vertex/responses.js +1 -0
- package/dist/providers/google-vertex-chat.d.ts +132 -0
- package/dist/providers/google-vertex-chat.js +55 -0
- package/dist/providers/google-vertex-messages.d.ts +306 -0
- package/dist/providers/google-vertex-messages.js +75 -0
- package/dist/providers/google-vertex-responses.d.ts +197 -0
- package/dist/providers/google-vertex-responses.js +56 -0
- package/dist/providers/google-vertex-shared.d.ts +22 -0
- package/dist/providers/google-vertex-shared.js +72 -0
- package/dist/providers/google-vertex.d.ts +119 -0
- package/dist/providers/google-vertex.js +98 -0
- package/dist/providers/google.d.ts +114 -0
- package/dist/providers/google.js +42 -0
- package/dist/providers/groq.d.ts +314 -0
- package/dist/providers/groq.js +81 -0
- package/dist/providers/index.d.ts +31 -0
- package/dist/providers/index.js +31 -0
- package/dist/providers/meta/chat.d.ts +2 -0
- package/dist/providers/meta/chat.js +1 -0
- package/dist/providers/meta/messages.d.ts +2 -0
- package/dist/providers/meta/messages.js +1 -0
- package/dist/providers/meta/responses.d.ts +2 -0
- package/dist/providers/meta/responses.js +1 -0
- package/dist/providers/meta.d.ts +636 -0
- package/dist/providers/meta.js +113 -0
- package/dist/providers/minimax/chat.d.ts +4 -0
- package/dist/providers/minimax/chat.js +8 -0
- package/dist/providers/minimax/messages.d.ts +1 -0
- package/dist/providers/minimax/messages.js +1 -0
- package/dist/providers/minimax/responses.d.ts +4 -0
- package/dist/providers/minimax/responses.js +8 -0
- package/dist/providers/minimax.d.ts +598 -0
- package/dist/providers/minimax.js +89 -0
- package/dist/providers/mistral.d.ts +207 -0
- package/dist/providers/mistral.js +28 -0
- package/dist/providers/moonshot/chat.d.ts +1 -0
- package/dist/providers/moonshot/chat.js +1 -0
- package/dist/providers/moonshot/messages.d.ts +4 -0
- package/dist/providers/moonshot/messages.js +8 -0
- package/dist/providers/moonshot/responses.d.ts +4 -0
- package/dist/providers/moonshot/responses.js +8 -0
- package/dist/providers/moonshot.d.ts +596 -0
- package/dist/providers/moonshot.js +90 -0
- package/dist/providers/open-responses-options.d.ts +6 -0
- package/dist/providers/open-responses-options.js +1 -0
- package/dist/providers/openai/chat.d.ts +2 -0
- package/dist/providers/openai/chat.js +1 -0
- package/dist/providers/openai/responses.d.ts +2 -0
- package/dist/providers/openai/responses.js +1 -0
- package/dist/providers/openai-compatible/responses.d.ts +1 -0
- package/dist/providers/openai-compatible/responses.js +1 -0
- package/dist/providers/openai-compatible-responses.d.ts +195 -0
- package/dist/providers/openai-compatible-responses.js +32 -0
- package/dist/providers/openai-compatible.d.ts +130 -0
- package/dist/providers/openai-compatible.js +33 -0
- package/dist/providers/openai-options.d.ts +26 -0
- package/dist/providers/openai-options.js +41 -0
- package/dist/providers/openai.d.ts +404 -0
- package/dist/providers/openai.js +82 -0
- package/dist/providers/openrouter.d.ts +563 -0
- package/dist/providers/openrouter.js +114 -0
- package/dist/providers/togetherai.d.ts +227 -0
- package/dist/providers/togetherai.js +40 -0
- package/dist/providers/xai.d.ts +163 -0
- package/dist/providers/xai.js +88 -0
- package/dist/providers/zai/chat.d.ts +1 -0
- package/dist/providers/zai/chat.js +1 -0
- package/dist/providers/zai-coding-plan/chat.d.ts +1 -0
- package/dist/providers/zai-coding-plan/chat.js +1 -0
- package/dist/providers/zai-coding-plan/messages.d.ts +4 -0
- package/dist/providers/zai-coding-plan/messages.js +8 -0
- package/dist/providers/zai-coding-plan/responses.d.ts +4 -0
- package/dist/providers/zai-coding-plan/responses.js +8 -0
- package/dist/providers/zai-coding-plan.d.ts +577 -0
- package/dist/providers/zai-coding-plan.js +63 -0
- package/dist/providers/zai.d.ts +149 -0
- package/dist/providers/zai.js +53 -0
- package/dist/providers.d.ts +1 -0
- package/dist/providers.js +1 -0
- package/dist/route/auth-options.d.ts +34 -0
- package/dist/route/auth-options.js +14 -0
- package/dist/route/auth.d.ts +51 -0
- package/dist/route/auth.js +87 -0
- package/dist/route/client.d.ts +430 -0
- package/dist/route/client.js +307 -0
- package/dist/route/endpoint.d.ts +28 -0
- package/dist/route/endpoint.js +21 -0
- package/dist/route/executor.d.ts +27 -0
- package/dist/route/executor.js +183 -0
- package/dist/route/framing.d.ts +29 -0
- package/dist/route/framing.js +14 -0
- package/dist/route/index.d.ts +16 -0
- package/dist/route/index.js +9 -0
- package/dist/route/protocol.d.ts +76 -0
- package/dist/route/protocol.js +16 -0
- package/dist/route/transport/http.d.ts +34 -0
- package/dist/route/transport/http.js +68 -0
- package/dist/route/transport/index.d.ts +41 -0
- package/dist/route/transport/index.js +4 -0
- package/dist/route/transport/websocket-channel.d.ts +57 -0
- package/dist/route/transport/websocket-channel.js +1 -0
- package/dist/route/transport/websocket.d.ts +56 -0
- package/dist/route/transport/websocket.js +370 -0
- package/dist/route.d.ts +1 -0
- package/dist/route.js +1 -0
- package/dist/schema/errors.d.ts +170 -0
- package/dist/schema/errors.js +131 -0
- package/dist/schema/events.d.ts +8123 -0
- package/dist/schema/events.js +550 -0
- package/dist/schema/ids.d.ts +17 -0
- package/dist/schema/ids.js +10 -0
- package/dist/schema/index.d.ts +5 -0
- package/dist/schema/index.js +5 -0
- package/dist/schema/messages.d.ts +646 -0
- package/dist/schema/messages.js +301 -0
- package/dist/schema/options.d.ts +159 -0
- package/dist/schema/options.js +189 -0
- package/dist/testing.d.ts +1693 -0
- package/dist/testing.js +129 -0
- package/dist/tool-history.d.ts +2 -0
- package/dist/tool-history.js +84 -0
- package/dist/tool-runtime.d.ts +15 -0
- package/dist/tool-runtime.js +62 -0
- package/dist/tool.d.ts +136 -0
- package/dist/tool.js +66 -0
- package/dist/utils/record.d.ts +2 -0
- package/dist/utils/record.js +2 -0
- package/dist/utils/sanitize.d.ts +1 -0
- package/dist/utils/sanitize.js +12 -0
- package/package.json +43 -10
|
@@ -0,0 +1,598 @@
|
|
|
1
|
+
import { type AtLeastOne, type ProviderAuthOption } from "../route/auth-options.js";
|
|
2
|
+
import type { Route, RouteDefaultsInput, CompactionOperations } from "../route/client.js";
|
|
3
|
+
import type { ProviderPackage } from "../provider-package.js";
|
|
4
|
+
import { type ModelID } from "../schema/index.js";
|
|
5
|
+
import { type OpenAIProviderOptionsInput } from "./openai-options.js";
|
|
6
|
+
export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
7
|
+
type AzureURL = AtLeastOne<{
|
|
8
|
+
readonly resourceName: string;
|
|
9
|
+
readonly baseURL: string;
|
|
10
|
+
}>;
|
|
11
|
+
export type LanguageModelOptions = AzureURL & RouteDefaultsInput & ProviderAuthOption<"optional"> & {
|
|
12
|
+
readonly apiVersion?: string;
|
|
13
|
+
readonly queryParams?: Record<string, string>;
|
|
14
|
+
readonly useDeploymentBasedUrls?: boolean;
|
|
15
|
+
readonly providerOptions?: OpenAIProviderOptionsInput;
|
|
16
|
+
};
|
|
17
|
+
export type Config = LanguageModelOptions;
|
|
18
|
+
export type Settings = ProviderPackage.Settings & OpenAIProviderOptionsInput & AzureURL & {
|
|
19
|
+
readonly apiKey?: string;
|
|
20
|
+
readonly apiVersion?: string;
|
|
21
|
+
readonly queryParams?: Readonly<Record<string, string>>;
|
|
22
|
+
readonly useDeploymentBasedUrls?: boolean;
|
|
23
|
+
};
|
|
24
|
+
declare const responsesRoute: Route<{
|
|
25
|
+
readonly input: readonly ({
|
|
26
|
+
readonly [x: string]: unknown;
|
|
27
|
+
readonly id: string;
|
|
28
|
+
readonly type: "web_search_call";
|
|
29
|
+
readonly status?: string | undefined;
|
|
30
|
+
readonly action?: {
|
|
31
|
+
readonly [x: string]: unknown;
|
|
32
|
+
} | null | undefined;
|
|
33
|
+
} | {
|
|
34
|
+
readonly [x: string]: unknown;
|
|
35
|
+
readonly id: string;
|
|
36
|
+
readonly type: "file_search_call";
|
|
37
|
+
readonly status?: string | undefined;
|
|
38
|
+
readonly queries?: readonly string[] | undefined;
|
|
39
|
+
readonly results?: readonly {
|
|
40
|
+
readonly [x: string]: unknown;
|
|
41
|
+
}[] | null | undefined;
|
|
42
|
+
} | {
|
|
43
|
+
readonly [x: string]: unknown;
|
|
44
|
+
readonly id: string;
|
|
45
|
+
readonly type: "code_interpreter_call";
|
|
46
|
+
readonly status?: string | undefined;
|
|
47
|
+
readonly code?: string | null | undefined;
|
|
48
|
+
readonly container_id?: string | null | undefined;
|
|
49
|
+
readonly outputs?: readonly {
|
|
50
|
+
readonly [x: string]: unknown;
|
|
51
|
+
}[] | null | undefined;
|
|
52
|
+
} | {
|
|
53
|
+
readonly [x: string]: unknown;
|
|
54
|
+
readonly id: string;
|
|
55
|
+
readonly type: "mcp_call";
|
|
56
|
+
readonly status?: string | undefined;
|
|
57
|
+
readonly name?: string | undefined;
|
|
58
|
+
readonly output?: string | null | undefined;
|
|
59
|
+
readonly error?: unknown;
|
|
60
|
+
readonly arguments?: string | undefined;
|
|
61
|
+
readonly server_label?: string | undefined;
|
|
62
|
+
} | {
|
|
63
|
+
readonly type: "reasoning";
|
|
64
|
+
readonly summary: readonly {
|
|
65
|
+
readonly type: "summary_text";
|
|
66
|
+
readonly text: string;
|
|
67
|
+
}[];
|
|
68
|
+
readonly id?: string | undefined;
|
|
69
|
+
readonly encrypted_content?: string | null | undefined;
|
|
70
|
+
} | {
|
|
71
|
+
readonly type: "compaction";
|
|
72
|
+
readonly encrypted_content: string;
|
|
73
|
+
readonly id?: string | null | undefined;
|
|
74
|
+
} | {
|
|
75
|
+
readonly role: "system";
|
|
76
|
+
readonly content: string;
|
|
77
|
+
} | {
|
|
78
|
+
readonly role: "developer";
|
|
79
|
+
readonly content: string;
|
|
80
|
+
} | {
|
|
81
|
+
readonly content: readonly ({
|
|
82
|
+
readonly type: "input_image";
|
|
83
|
+
readonly image_url: string;
|
|
84
|
+
readonly detail?: string | undefined;
|
|
85
|
+
} | {
|
|
86
|
+
readonly type: "input_file";
|
|
87
|
+
readonly filename: string;
|
|
88
|
+
readonly detail?: string | undefined;
|
|
89
|
+
readonly file_data?: string | undefined;
|
|
90
|
+
readonly file_url?: string | undefined;
|
|
91
|
+
} | {
|
|
92
|
+
readonly type: "input_text";
|
|
93
|
+
readonly text: string;
|
|
94
|
+
})[];
|
|
95
|
+
readonly role: "user";
|
|
96
|
+
readonly id?: string | undefined;
|
|
97
|
+
readonly type?: "message" | undefined;
|
|
98
|
+
readonly status?: string | undefined;
|
|
99
|
+
} | {
|
|
100
|
+
readonly type: "message";
|
|
101
|
+
readonly content: readonly {
|
|
102
|
+
readonly type: "output_text";
|
|
103
|
+
readonly text: string;
|
|
104
|
+
}[];
|
|
105
|
+
readonly role: "assistant";
|
|
106
|
+
readonly id?: string | undefined;
|
|
107
|
+
readonly status?: string | undefined;
|
|
108
|
+
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
109
|
+
} | {
|
|
110
|
+
readonly type: "function_call";
|
|
111
|
+
readonly name: string;
|
|
112
|
+
readonly arguments: string;
|
|
113
|
+
readonly call_id: string;
|
|
114
|
+
readonly id?: string | undefined;
|
|
115
|
+
readonly namespace?: string | undefined;
|
|
116
|
+
} | {
|
|
117
|
+
readonly type: "function_call_output";
|
|
118
|
+
readonly call_id: string;
|
|
119
|
+
readonly output: string | readonly ({
|
|
120
|
+
readonly type: "input_image";
|
|
121
|
+
readonly image_url: string;
|
|
122
|
+
readonly detail?: string | undefined;
|
|
123
|
+
} | {
|
|
124
|
+
readonly type: "input_file";
|
|
125
|
+
readonly filename: string;
|
|
126
|
+
readonly detail?: string | undefined;
|
|
127
|
+
readonly file_data?: string | undefined;
|
|
128
|
+
readonly file_url?: string | undefined;
|
|
129
|
+
} | {
|
|
130
|
+
readonly type: "input_text";
|
|
131
|
+
readonly text: string;
|
|
132
|
+
} | {
|
|
133
|
+
readonly type: "input_video";
|
|
134
|
+
readonly video_url: string;
|
|
135
|
+
})[];
|
|
136
|
+
} | {
|
|
137
|
+
readonly [x: string]: unknown;
|
|
138
|
+
readonly id: string;
|
|
139
|
+
readonly type: "computer_call";
|
|
140
|
+
readonly status?: string | undefined;
|
|
141
|
+
readonly action?: {
|
|
142
|
+
readonly [x: string]: unknown;
|
|
143
|
+
} | null | undefined;
|
|
144
|
+
readonly call_id?: string | undefined;
|
|
145
|
+
readonly pending_safety_checks?: readonly {
|
|
146
|
+
readonly [x: string]: unknown;
|
|
147
|
+
}[] | undefined;
|
|
148
|
+
} | {
|
|
149
|
+
readonly [x: string]: unknown;
|
|
150
|
+
readonly id: string;
|
|
151
|
+
readonly type: "web_search_preview_call";
|
|
152
|
+
readonly status?: string | undefined;
|
|
153
|
+
readonly action?: {
|
|
154
|
+
readonly [x: string]: unknown;
|
|
155
|
+
} | null | undefined;
|
|
156
|
+
} | {
|
|
157
|
+
readonly [x: string]: unknown;
|
|
158
|
+
readonly id: string;
|
|
159
|
+
readonly type: "image_generation_call";
|
|
160
|
+
readonly status?: string | undefined;
|
|
161
|
+
readonly result?: string | null | undefined;
|
|
162
|
+
readonly revised_prompt?: string | null | undefined;
|
|
163
|
+
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
164
|
+
})[];
|
|
165
|
+
readonly model: string;
|
|
166
|
+
readonly stream: true;
|
|
167
|
+
readonly metadata?: {
|
|
168
|
+
readonly [x: string]: string;
|
|
169
|
+
} | undefined;
|
|
170
|
+
readonly instructions?: string | undefined;
|
|
171
|
+
readonly reasoning?: {
|
|
172
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
173
|
+
readonly effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
174
|
+
} | undefined;
|
|
175
|
+
readonly tools?: readonly ({
|
|
176
|
+
readonly type: "function";
|
|
177
|
+
readonly description: string;
|
|
178
|
+
readonly name: string;
|
|
179
|
+
readonly parameters: {
|
|
180
|
+
readonly [x: string]: unknown;
|
|
181
|
+
};
|
|
182
|
+
readonly strict?: boolean | undefined;
|
|
183
|
+
} | {
|
|
184
|
+
readonly type: "image_generation";
|
|
185
|
+
readonly size?: string | undefined;
|
|
186
|
+
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
187
|
+
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
188
|
+
readonly quality?: "auto" | "low" | "medium" | "high" | undefined;
|
|
189
|
+
readonly background?: "auto" | "opaque" | "transparent" | undefined;
|
|
190
|
+
readonly output_compression?: number | undefined;
|
|
191
|
+
readonly input_fidelity?: "low" | "high" | undefined;
|
|
192
|
+
readonly partial_images?: number | undefined;
|
|
193
|
+
} | {
|
|
194
|
+
readonly type: "namespace";
|
|
195
|
+
readonly name: string;
|
|
196
|
+
readonly description: string;
|
|
197
|
+
readonly tools: readonly {
|
|
198
|
+
readonly type: "function";
|
|
199
|
+
readonly description: string;
|
|
200
|
+
readonly name: string;
|
|
201
|
+
readonly parameters: {
|
|
202
|
+
readonly [x: string]: unknown;
|
|
203
|
+
};
|
|
204
|
+
readonly strict?: boolean | undefined;
|
|
205
|
+
}[];
|
|
206
|
+
})[] | undefined;
|
|
207
|
+
readonly text?: {
|
|
208
|
+
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
209
|
+
} | undefined;
|
|
210
|
+
readonly temperature?: number | undefined;
|
|
211
|
+
readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
|
|
212
|
+
readonly context_management?: readonly {
|
|
213
|
+
readonly type: "compaction";
|
|
214
|
+
readonly compact_threshold?: number | undefined;
|
|
215
|
+
}[] | undefined;
|
|
216
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
217
|
+
readonly type: "function";
|
|
218
|
+
readonly name: string;
|
|
219
|
+
} | {
|
|
220
|
+
readonly type: "allowed_tools";
|
|
221
|
+
readonly mode: "required" | "auto" | "none";
|
|
222
|
+
readonly tools: readonly {
|
|
223
|
+
readonly type: "function";
|
|
224
|
+
readonly name: string;
|
|
225
|
+
}[];
|
|
226
|
+
} | {
|
|
227
|
+
readonly type: "image_generation";
|
|
228
|
+
} | undefined;
|
|
229
|
+
readonly top_p?: number | undefined;
|
|
230
|
+
readonly frequency_penalty?: number | undefined;
|
|
231
|
+
readonly presence_penalty?: number | undefined;
|
|
232
|
+
readonly prompt_cache_key?: string | undefined;
|
|
233
|
+
readonly parallel_tool_calls?: boolean | undefined;
|
|
234
|
+
readonly store?: boolean | undefined;
|
|
235
|
+
readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
|
|
236
|
+
readonly truncation?: "auto" | "disabled" | undefined;
|
|
237
|
+
readonly stream_options?: {
|
|
238
|
+
readonly include_obfuscation?: boolean | undefined;
|
|
239
|
+
} | undefined;
|
|
240
|
+
readonly safety_identifier?: string | undefined;
|
|
241
|
+
readonly top_logprobs?: number | undefined;
|
|
242
|
+
readonly max_output_tokens?: number | undefined;
|
|
243
|
+
readonly max_tool_calls?: number | undefined;
|
|
244
|
+
}, import("../protocols/open-responses-channel.js").Prepared, {
|
|
245
|
+
endpoint: import("../route/client.js").CompactOperation;
|
|
246
|
+
}>;
|
|
247
|
+
export declare const routes: (Route<{
|
|
248
|
+
readonly model: string;
|
|
249
|
+
readonly messages: readonly ({
|
|
250
|
+
readonly role: "system";
|
|
251
|
+
readonly content: string | readonly ({
|
|
252
|
+
readonly type: "text";
|
|
253
|
+
readonly text: string;
|
|
254
|
+
readonly cache_control?: {
|
|
255
|
+
readonly type: "ephemeral";
|
|
256
|
+
readonly ttl?: string | undefined;
|
|
257
|
+
} | undefined;
|
|
258
|
+
} | {
|
|
259
|
+
readonly type: "image_url";
|
|
260
|
+
readonly image_url: {
|
|
261
|
+
readonly url: string;
|
|
262
|
+
};
|
|
263
|
+
})[];
|
|
264
|
+
} | {
|
|
265
|
+
readonly role: "user";
|
|
266
|
+
readonly content: string | readonly ({
|
|
267
|
+
readonly type: "text";
|
|
268
|
+
readonly text: string;
|
|
269
|
+
readonly cache_control?: {
|
|
270
|
+
readonly type: "ephemeral";
|
|
271
|
+
readonly ttl?: string | undefined;
|
|
272
|
+
} | undefined;
|
|
273
|
+
} | {
|
|
274
|
+
readonly type: "image_url";
|
|
275
|
+
readonly image_url: {
|
|
276
|
+
readonly url: string;
|
|
277
|
+
};
|
|
278
|
+
})[];
|
|
279
|
+
} | {
|
|
280
|
+
readonly [x: string]: unknown;
|
|
281
|
+
readonly content: string | null;
|
|
282
|
+
readonly role: "assistant";
|
|
283
|
+
readonly reasoning?: string | undefined;
|
|
284
|
+
readonly reasoning_content?: string | undefined;
|
|
285
|
+
readonly reasoning_text?: string | undefined;
|
|
286
|
+
readonly cache_control?: {
|
|
287
|
+
readonly type: "ephemeral";
|
|
288
|
+
readonly ttl?: string | undefined;
|
|
289
|
+
} | undefined;
|
|
290
|
+
readonly tool_calls?: readonly {
|
|
291
|
+
readonly id: string;
|
|
292
|
+
readonly type: "function";
|
|
293
|
+
readonly function: {
|
|
294
|
+
readonly name: string;
|
|
295
|
+
readonly arguments: string;
|
|
296
|
+
};
|
|
297
|
+
}[] | undefined;
|
|
298
|
+
readonly reasoning_details?: unknown;
|
|
299
|
+
} | {
|
|
300
|
+
readonly content: string;
|
|
301
|
+
readonly role: "tool";
|
|
302
|
+
readonly tool_call_id: string;
|
|
303
|
+
readonly cache_control?: {
|
|
304
|
+
readonly type: "ephemeral";
|
|
305
|
+
readonly ttl?: string | undefined;
|
|
306
|
+
} | undefined;
|
|
307
|
+
})[];
|
|
308
|
+
readonly stream: true;
|
|
309
|
+
readonly max_completion_tokens?: number | undefined;
|
|
310
|
+
readonly max_tokens?: number | undefined;
|
|
311
|
+
readonly tools?: readonly {
|
|
312
|
+
readonly function: {
|
|
313
|
+
readonly description: string;
|
|
314
|
+
readonly name: string;
|
|
315
|
+
readonly parameters: {
|
|
316
|
+
readonly [x: string]: unknown;
|
|
317
|
+
};
|
|
318
|
+
readonly strict?: boolean | undefined;
|
|
319
|
+
};
|
|
320
|
+
readonly type: "function";
|
|
321
|
+
readonly cache_control?: {
|
|
322
|
+
readonly type: "ephemeral";
|
|
323
|
+
readonly ttl?: string | undefined;
|
|
324
|
+
} | undefined;
|
|
325
|
+
}[] | undefined;
|
|
326
|
+
readonly stop?: readonly string[] | undefined;
|
|
327
|
+
readonly temperature?: number | undefined;
|
|
328
|
+
readonly seed?: number | undefined;
|
|
329
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
330
|
+
readonly type: "function";
|
|
331
|
+
readonly function: {
|
|
332
|
+
readonly name: string;
|
|
333
|
+
};
|
|
334
|
+
} | undefined;
|
|
335
|
+
readonly top_p?: number | undefined;
|
|
336
|
+
readonly frequency_penalty?: number | undefined;
|
|
337
|
+
readonly presence_penalty?: number | undefined;
|
|
338
|
+
readonly prompt_cache_key?: string | undefined;
|
|
339
|
+
readonly reasoning_effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
340
|
+
readonly store?: boolean | undefined;
|
|
341
|
+
readonly stream_options?: {
|
|
342
|
+
readonly include_usage: boolean;
|
|
343
|
+
} | undefined;
|
|
344
|
+
readonly tool_stream?: boolean | undefined;
|
|
345
|
+
}, import("../route/transport/http.js").HttpPrepared<string>, CompactionOperations | undefined> | Route<{
|
|
346
|
+
readonly input: readonly ({
|
|
347
|
+
readonly [x: string]: unknown;
|
|
348
|
+
readonly id: string;
|
|
349
|
+
readonly type: "web_search_call";
|
|
350
|
+
readonly status?: string | undefined;
|
|
351
|
+
readonly action?: {
|
|
352
|
+
readonly [x: string]: unknown;
|
|
353
|
+
} | null | undefined;
|
|
354
|
+
} | {
|
|
355
|
+
readonly [x: string]: unknown;
|
|
356
|
+
readonly id: string;
|
|
357
|
+
readonly type: "file_search_call";
|
|
358
|
+
readonly status?: string | undefined;
|
|
359
|
+
readonly queries?: readonly string[] | undefined;
|
|
360
|
+
readonly results?: readonly {
|
|
361
|
+
readonly [x: string]: unknown;
|
|
362
|
+
}[] | null | undefined;
|
|
363
|
+
} | {
|
|
364
|
+
readonly [x: string]: unknown;
|
|
365
|
+
readonly id: string;
|
|
366
|
+
readonly type: "code_interpreter_call";
|
|
367
|
+
readonly status?: string | undefined;
|
|
368
|
+
readonly code?: string | null | undefined;
|
|
369
|
+
readonly container_id?: string | null | undefined;
|
|
370
|
+
readonly outputs?: readonly {
|
|
371
|
+
readonly [x: string]: unknown;
|
|
372
|
+
}[] | null | undefined;
|
|
373
|
+
} | {
|
|
374
|
+
readonly [x: string]: unknown;
|
|
375
|
+
readonly id: string;
|
|
376
|
+
readonly type: "mcp_call";
|
|
377
|
+
readonly status?: string | undefined;
|
|
378
|
+
readonly name?: string | undefined;
|
|
379
|
+
readonly output?: string | null | undefined;
|
|
380
|
+
readonly error?: unknown;
|
|
381
|
+
readonly arguments?: string | undefined;
|
|
382
|
+
readonly server_label?: string | undefined;
|
|
383
|
+
} | {
|
|
384
|
+
readonly type: "reasoning";
|
|
385
|
+
readonly summary: readonly {
|
|
386
|
+
readonly type: "summary_text";
|
|
387
|
+
readonly text: string;
|
|
388
|
+
}[];
|
|
389
|
+
readonly id?: string | undefined;
|
|
390
|
+
readonly encrypted_content?: string | null | undefined;
|
|
391
|
+
} | {
|
|
392
|
+
readonly type: "compaction";
|
|
393
|
+
readonly encrypted_content: string;
|
|
394
|
+
readonly id?: string | null | undefined;
|
|
395
|
+
} | {
|
|
396
|
+
readonly role: "system";
|
|
397
|
+
readonly content: string;
|
|
398
|
+
} | {
|
|
399
|
+
readonly role: "developer";
|
|
400
|
+
readonly content: string;
|
|
401
|
+
} | {
|
|
402
|
+
readonly content: readonly ({
|
|
403
|
+
readonly type: "input_image";
|
|
404
|
+
readonly image_url: string;
|
|
405
|
+
readonly detail?: string | undefined;
|
|
406
|
+
} | {
|
|
407
|
+
readonly type: "input_file";
|
|
408
|
+
readonly filename: string;
|
|
409
|
+
readonly detail?: string | undefined;
|
|
410
|
+
readonly file_data?: string | undefined;
|
|
411
|
+
readonly file_url?: string | undefined;
|
|
412
|
+
} | {
|
|
413
|
+
readonly type: "input_text";
|
|
414
|
+
readonly text: string;
|
|
415
|
+
})[];
|
|
416
|
+
readonly role: "user";
|
|
417
|
+
readonly id?: string | undefined;
|
|
418
|
+
readonly type?: "message" | undefined;
|
|
419
|
+
readonly status?: string | undefined;
|
|
420
|
+
} | {
|
|
421
|
+
readonly type: "message";
|
|
422
|
+
readonly content: readonly {
|
|
423
|
+
readonly type: "output_text";
|
|
424
|
+
readonly text: string;
|
|
425
|
+
}[];
|
|
426
|
+
readonly role: "assistant";
|
|
427
|
+
readonly id?: string | undefined;
|
|
428
|
+
readonly status?: string | undefined;
|
|
429
|
+
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
430
|
+
} | {
|
|
431
|
+
readonly type: "function_call";
|
|
432
|
+
readonly name: string;
|
|
433
|
+
readonly arguments: string;
|
|
434
|
+
readonly call_id: string;
|
|
435
|
+
readonly id?: string | undefined;
|
|
436
|
+
readonly namespace?: string | undefined;
|
|
437
|
+
} | {
|
|
438
|
+
readonly type: "function_call_output";
|
|
439
|
+
readonly call_id: string;
|
|
440
|
+
readonly output: string | readonly ({
|
|
441
|
+
readonly type: "input_image";
|
|
442
|
+
readonly image_url: string;
|
|
443
|
+
readonly detail?: string | undefined;
|
|
444
|
+
} | {
|
|
445
|
+
readonly type: "input_file";
|
|
446
|
+
readonly filename: string;
|
|
447
|
+
readonly detail?: string | undefined;
|
|
448
|
+
readonly file_data?: string | undefined;
|
|
449
|
+
readonly file_url?: string | undefined;
|
|
450
|
+
} | {
|
|
451
|
+
readonly type: "input_text";
|
|
452
|
+
readonly text: string;
|
|
453
|
+
} | {
|
|
454
|
+
readonly type: "input_video";
|
|
455
|
+
readonly video_url: string;
|
|
456
|
+
})[];
|
|
457
|
+
} | {
|
|
458
|
+
readonly [x: string]: unknown;
|
|
459
|
+
readonly id: string;
|
|
460
|
+
readonly type: "computer_call";
|
|
461
|
+
readonly status?: string | undefined;
|
|
462
|
+
readonly action?: {
|
|
463
|
+
readonly [x: string]: unknown;
|
|
464
|
+
} | null | undefined;
|
|
465
|
+
readonly call_id?: string | undefined;
|
|
466
|
+
readonly pending_safety_checks?: readonly {
|
|
467
|
+
readonly [x: string]: unknown;
|
|
468
|
+
}[] | undefined;
|
|
469
|
+
} | {
|
|
470
|
+
readonly [x: string]: unknown;
|
|
471
|
+
readonly id: string;
|
|
472
|
+
readonly type: "web_search_preview_call";
|
|
473
|
+
readonly status?: string | undefined;
|
|
474
|
+
readonly action?: {
|
|
475
|
+
readonly [x: string]: unknown;
|
|
476
|
+
} | null | undefined;
|
|
477
|
+
} | {
|
|
478
|
+
readonly [x: string]: unknown;
|
|
479
|
+
readonly id: string;
|
|
480
|
+
readonly type: "image_generation_call";
|
|
481
|
+
readonly status?: string | undefined;
|
|
482
|
+
readonly result?: string | null | undefined;
|
|
483
|
+
readonly revised_prompt?: string | null | undefined;
|
|
484
|
+
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
485
|
+
})[];
|
|
486
|
+
readonly model: string;
|
|
487
|
+
readonly stream: true;
|
|
488
|
+
readonly metadata?: {
|
|
489
|
+
readonly [x: string]: string;
|
|
490
|
+
} | undefined;
|
|
491
|
+
readonly instructions?: string | undefined;
|
|
492
|
+
readonly reasoning?: {
|
|
493
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
494
|
+
readonly effort?: import("../protocols/utils/open-responses-options.js").ReasoningEffort | undefined;
|
|
495
|
+
} | undefined;
|
|
496
|
+
readonly tools?: readonly ({
|
|
497
|
+
readonly type: "function";
|
|
498
|
+
readonly description: string;
|
|
499
|
+
readonly name: string;
|
|
500
|
+
readonly parameters: {
|
|
501
|
+
readonly [x: string]: unknown;
|
|
502
|
+
};
|
|
503
|
+
readonly strict?: boolean | undefined;
|
|
504
|
+
} | {
|
|
505
|
+
readonly type: "image_generation";
|
|
506
|
+
readonly size?: string | undefined;
|
|
507
|
+
readonly action?: "generate" | "auto" | "edit" | undefined;
|
|
508
|
+
readonly output_format?: "png" | "jpeg" | "webp" | undefined;
|
|
509
|
+
readonly quality?: "auto" | "low" | "medium" | "high" | undefined;
|
|
510
|
+
readonly background?: "auto" | "opaque" | "transparent" | undefined;
|
|
511
|
+
readonly output_compression?: number | undefined;
|
|
512
|
+
readonly input_fidelity?: "low" | "high" | undefined;
|
|
513
|
+
readonly partial_images?: number | undefined;
|
|
514
|
+
} | {
|
|
515
|
+
readonly type: "namespace";
|
|
516
|
+
readonly name: string;
|
|
517
|
+
readonly description: string;
|
|
518
|
+
readonly tools: readonly {
|
|
519
|
+
readonly type: "function";
|
|
520
|
+
readonly description: string;
|
|
521
|
+
readonly name: string;
|
|
522
|
+
readonly parameters: {
|
|
523
|
+
readonly [x: string]: unknown;
|
|
524
|
+
};
|
|
525
|
+
readonly strict?: boolean | undefined;
|
|
526
|
+
}[];
|
|
527
|
+
})[] | undefined;
|
|
528
|
+
readonly text?: {
|
|
529
|
+
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
530
|
+
} | undefined;
|
|
531
|
+
readonly temperature?: number | undefined;
|
|
532
|
+
readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
|
|
533
|
+
readonly context_management?: readonly {
|
|
534
|
+
readonly type: "compaction";
|
|
535
|
+
readonly compact_threshold?: number | undefined;
|
|
536
|
+
}[] | undefined;
|
|
537
|
+
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
538
|
+
readonly type: "function";
|
|
539
|
+
readonly name: string;
|
|
540
|
+
} | {
|
|
541
|
+
readonly type: "allowed_tools";
|
|
542
|
+
readonly mode: "required" | "auto" | "none";
|
|
543
|
+
readonly tools: readonly {
|
|
544
|
+
readonly type: "function";
|
|
545
|
+
readonly name: string;
|
|
546
|
+
}[];
|
|
547
|
+
} | {
|
|
548
|
+
readonly type: "image_generation";
|
|
549
|
+
} | undefined;
|
|
550
|
+
readonly top_p?: number | undefined;
|
|
551
|
+
readonly frequency_penalty?: number | undefined;
|
|
552
|
+
readonly presence_penalty?: number | undefined;
|
|
553
|
+
readonly prompt_cache_key?: string | undefined;
|
|
554
|
+
readonly parallel_tool_calls?: boolean | undefined;
|
|
555
|
+
readonly store?: boolean | undefined;
|
|
556
|
+
readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
|
|
557
|
+
readonly truncation?: "auto" | "disabled" | undefined;
|
|
558
|
+
readonly stream_options?: {
|
|
559
|
+
readonly include_obfuscation?: boolean | undefined;
|
|
560
|
+
} | undefined;
|
|
561
|
+
readonly safety_identifier?: string | undefined;
|
|
562
|
+
readonly top_logprobs?: number | undefined;
|
|
563
|
+
readonly max_output_tokens?: number | undefined;
|
|
564
|
+
readonly max_tool_calls?: number | undefined;
|
|
565
|
+
}, import("../protocols/open-responses-channel.js").Prepared, {
|
|
566
|
+
endpoint: import("../route/client.js").CompactOperation;
|
|
567
|
+
}>)[];
|
|
568
|
+
export declare const configure: (input: Config) => {
|
|
569
|
+
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
570
|
+
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, {
|
|
571
|
+
endpoint: import("../route/client.js").CompactOperation;
|
|
572
|
+
}>;
|
|
573
|
+
responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, {
|
|
574
|
+
endpoint: import("../route/client.js").CompactOperation;
|
|
575
|
+
}>;
|
|
576
|
+
chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, CompactionOperations | undefined>;
|
|
577
|
+
configure: (input: Config) => /*elided*/ any;
|
|
578
|
+
};
|
|
579
|
+
export declare const provider: {
|
|
580
|
+
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
581
|
+
configure: (input: Config) => {
|
|
582
|
+
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
583
|
+
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, {
|
|
584
|
+
endpoint: import("../route/client.js").CompactOperation;
|
|
585
|
+
}>;
|
|
586
|
+
responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, {
|
|
587
|
+
endpoint: import("../route/client.js").CompactOperation;
|
|
588
|
+
}>;
|
|
589
|
+
chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, CompactionOperations | undefined>;
|
|
590
|
+
configure: /*elided*/ any;
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
export declare const responsesModel: ProviderPackage.Definition<Settings, OpenAIProviderOptionsInput, typeof responsesRoute.compact>["model"];
|
|
594
|
+
export declare const chatModel: ProviderPackage.Definition<Settings, OpenAIProviderOptionsInput>["model"];
|
|
595
|
+
export declare const model: (modelID: string, settings: Settings) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, {
|
|
596
|
+
endpoint: import("../route/client.js").CompactOperation;
|
|
597
|
+
}>;
|
|
598
|
+
export {};
|