@opencode/ai 0.0.0-dev-149 → 0.0.0-dev-150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/provider-package.d.ts +2 -0
- package/dist/providers/alibaba.d.ts +3 -3
- package/dist/providers/amazon-bedrock-mantle.d.ts +4 -4
- package/dist/providers/amazon-bedrock-mantle.js +1 -1
- package/dist/providers/amazon-bedrock.d.ts +1 -1
- package/dist/providers/amazon-bedrock.js +1 -1
- package/dist/providers/anthropic-compatible.d.ts +1 -1
- package/dist/providers/anthropic.d.ts +1 -1
- package/dist/providers/anthropic.js +1 -1
- package/dist/providers/azure.d.ts +4 -5
- package/dist/providers/baseten.d.ts +4 -4
- package/dist/providers/baseten.js +1 -1
- package/dist/providers/cerebras.d.ts +3 -3
- package/dist/providers/cerebras.js +1 -1
- package/dist/providers/cloudflare-ai-gateway.d.ts +3 -3
- package/dist/providers/cloudflare-workers-ai.d.ts +3 -3
- package/dist/providers/cohere/chat.d.ts +1 -1
- package/dist/providers/cohere/chat.js +1 -1
- package/dist/providers/cohere.d.ts +3 -3
- package/dist/providers/cohere.js +1 -1
- package/dist/providers/deepinfra.d.ts +3 -3
- package/dist/providers/deepinfra.js +1 -1
- package/dist/providers/deepseek.d.ts +3 -3
- package/dist/providers/deepseek.js +1 -1
- package/dist/providers/digitalocean.d.ts +5 -5
- package/dist/providers/digitalocean.js +1 -1
- package/dist/providers/fireworks.d.ts +3 -3
- package/dist/providers/fireworks.js +1 -1
- package/dist/providers/google/interactions.d.ts +1 -1
- package/dist/providers/google/interactions.js +1 -1
- package/dist/providers/google-vertex-chat.d.ts +1 -1
- package/dist/providers/google-vertex-chat.js +1 -1
- package/dist/providers/google-vertex-interactions.d.ts +1 -1
- package/dist/providers/google-vertex-interactions.js +1 -1
- package/dist/providers/google-vertex-messages.d.ts +1 -1
- package/dist/providers/google-vertex-messages.js +1 -1
- package/dist/providers/google-vertex-mistral.d.ts +1 -1
- package/dist/providers/google-vertex-mistral.js +1 -1
- package/dist/providers/google-vertex-responses.d.ts +1 -1
- package/dist/providers/google-vertex-responses.js +1 -1
- package/dist/providers/google-vertex.d.ts +2 -2
- package/dist/providers/google-vertex.js +1 -1
- package/dist/providers/google.d.ts +2 -2
- package/dist/providers/google.js +1 -1
- package/dist/providers/groq.d.ts +3 -3
- package/dist/providers/groq.js +1 -1
- package/dist/providers/meta.d.ts +5 -5
- package/dist/providers/meta.js +1 -1
- package/dist/providers/minimax/chat.d.ts +1 -1
- package/dist/providers/minimax/chat.js +1 -1
- package/dist/providers/minimax/responses.d.ts +1 -1
- package/dist/providers/minimax/responses.js +1 -1
- package/dist/providers/minimax.d.ts +1 -1
- package/dist/providers/minimax.js +1 -1
- package/dist/providers/mistral.d.ts +3 -3
- package/dist/providers/mistral.js +1 -1
- package/dist/providers/moonshot/messages.d.ts +1 -1
- package/dist/providers/moonshot/messages.js +1 -1
- package/dist/providers/moonshot/responses.d.ts +1 -1
- package/dist/providers/moonshot/responses.js +1 -1
- package/dist/providers/moonshot.d.ts +1 -1
- package/dist/providers/moonshot.js +1 -1
- package/dist/providers/openai-compatible-responses.d.ts +1 -1
- package/dist/providers/openai-compatible.d.ts +3 -3
- package/dist/providers/openai.d.ts +4 -4
- package/dist/providers/openai.js +1 -1
- package/dist/providers/opencode.d.ts +3 -3
- package/dist/providers/opencode.js +1 -1
- package/dist/providers/openrouter.d.ts +5 -5
- package/dist/providers/openrouter.js +1 -1
- package/dist/providers/togetherai.d.ts +3 -3
- package/dist/providers/togetherai.js +1 -1
- package/dist/providers/typesafe-ai.d.ts +3 -3
- package/dist/providers/typesafe-ai.js +1 -1
- package/dist/providers/venice.d.ts +1 -1
- package/dist/providers/venice.js +1 -1
- package/dist/providers/vercel-ai-gateway.d.ts +8 -8
- package/dist/providers/vercel-ai-gateway.js +1 -1
- package/dist/providers/xai.d.ts +4 -4
- package/dist/providers/xai.js +1 -1
- package/dist/providers/zai-coding-plan/messages.d.ts +1 -1
- package/dist/providers/zai-coding-plan/messages.js +1 -1
- package/dist/providers/zai-coding-plan/responses.d.ts +1 -1
- package/dist/providers/zai-coding-plan/responses.js +1 -1
- package/dist/providers/zai-coding-plan.d.ts +1 -1
- package/dist/providers/zai-coding-plan.js +1 -1
- package/dist/providers/zai.d.ts +2 -2
- package/dist/providers/zai.js +1 -1
- package/package.json +3 -3
package/dist/providers/groq.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export type ProviderOptions = Pick<OpenAIProviderOptionsInput, "reasoningEffort"
|
|
|
13
13
|
readonly serviceTier?: "on_demand" | "flex" | "auto" | "performance" | (string & {});
|
|
14
14
|
readonly user?: string;
|
|
15
15
|
};
|
|
16
|
-
export type
|
|
16
|
+
export type Config = Omit<RouteDefaultsInput, "providerOptions"> & ProviderAuthOption<"optional"> & {
|
|
17
17
|
readonly baseURL?: string;
|
|
18
18
|
readonly providerOptions?: ProviderOptions;
|
|
19
19
|
};
|
|
@@ -385,7 +385,7 @@ export declare const route: Route<{
|
|
|
385
385
|
readonly include_reasoning?: boolean | undefined;
|
|
386
386
|
readonly user?: string | undefined;
|
|
387
387
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>;
|
|
388
|
-
export declare const configure: (input?:
|
|
388
|
+
export declare const configure: (input?: Config) => {
|
|
389
389
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
390
390
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<ProviderOptions, import("../route/client.js").CompactionOperations | undefined>;
|
|
391
391
|
configure: typeof configure;
|
|
@@ -395,5 +395,5 @@ export declare const provider: {
|
|
|
395
395
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<ProviderOptions, import("../route/client.js").CompactionOperations | undefined>;
|
|
396
396
|
configure: typeof configure;
|
|
397
397
|
};
|
|
398
|
-
export declare const model: ProviderPackage.
|
|
398
|
+
export declare const model: ProviderPackage.Model<Settings, ProviderOptions>;
|
|
399
399
|
export * as Groq from "./groq.js";
|
package/dist/providers/groq.js
CHANGED
|
@@ -64,7 +64,7 @@ export const configure = (input = {}) => {
|
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
export const provider = configure();
|
|
67
|
-
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions }) => configure({
|
|
67
|
+
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions } = {}) => configure({
|
|
68
68
|
apiKey,
|
|
69
69
|
baseURL,
|
|
70
70
|
headers,
|
package/dist/providers/meta.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export interface ImageGenerationOptions {
|
|
|
30
30
|
readonly enableShell?: boolean;
|
|
31
31
|
}
|
|
32
32
|
export declare const imageGeneration: (options?: ImageGenerationOptions) => ToolDefinition;
|
|
33
|
-
export type
|
|
33
|
+
export type Config = Omit<RouteDefaultsInput, "providerOptions"> & ProviderAuthOption<"optional"> & {
|
|
34
34
|
readonly baseURL?: string;
|
|
35
35
|
readonly providerOptions?: ProviderOptionsInput;
|
|
36
36
|
};
|
|
@@ -678,7 +678,7 @@ export declare const routes: (Route<{
|
|
|
678
678
|
} | undefined;
|
|
679
679
|
})[] | undefined;
|
|
680
680
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>)[];
|
|
681
|
-
export declare const configure: (input?:
|
|
681
|
+
export declare const configure: (input?: Config) => {
|
|
682
682
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
683
683
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./open-responses-options.js").OpenResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
684
684
|
responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./open-responses-options.js").OpenResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
@@ -700,7 +700,7 @@ export declare const responses: (modelID: string | ModelID) => import("../schema
|
|
|
700
700
|
export declare const chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./open-responses-options.js").OpenResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
701
701
|
export declare const messages: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<MessagesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
702
702
|
export declare const image: (modelID: string | ModelID) => import("../image.js").ImageModel<MetaImages.ImageOptions>;
|
|
703
|
-
export declare const model: ProviderPackage.
|
|
704
|
-
export declare const chatModel: ProviderPackage.
|
|
705
|
-
export declare const messagesModel: ProviderPackage.
|
|
703
|
+
export declare const model: ProviderPackage.Model<Settings, OpenResponsesProviderOptionsInput>;
|
|
704
|
+
export declare const chatModel: ProviderPackage.Model<Settings, OpenResponsesProviderOptionsInput>;
|
|
705
|
+
export declare const messagesModel: ProviderPackage.Model<Settings, MessagesOptionsInput>;
|
|
706
706
|
export * as Meta from "./meta.js";
|
package/dist/providers/meta.js
CHANGED
|
@@ -97,7 +97,7 @@ export const image = provider.image;
|
|
|
97
97
|
export const model = (modelID, settings) => fromSettings(settings).responses(modelID);
|
|
98
98
|
export const chatModel = (modelID, settings) => fromSettings(settings).chat(modelID);
|
|
99
99
|
export const messagesModel = (modelID, settings) => fromSettings(settings).messages(modelID);
|
|
100
|
-
function fromSettings({ apiKey, baseURL, body, headers, ...providerOptions }) {
|
|
100
|
+
function fromSettings({ apiKey, baseURL, body, headers, ...providerOptions } = {}) {
|
|
101
101
|
return configure({
|
|
102
102
|
apiKey,
|
|
103
103
|
baseURL,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ProviderPackage } from "../../provider-package.js";
|
|
2
2
|
import { MiniMax } from "../minimax.js";
|
|
3
3
|
export type Settings = MiniMax.Settings<MiniMax.ChatOptionsInput>;
|
|
4
|
-
export declare const model: ProviderPackage.
|
|
4
|
+
export declare const model: ProviderPackage.Model<Settings, MiniMax.ChatOptionsInput>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MiniMax } from "../minimax.js";
|
|
2
|
-
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions }) => MiniMax.configure({
|
|
2
|
+
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions } = {}) => MiniMax.configure({
|
|
3
3
|
apiKey,
|
|
4
4
|
baseURL,
|
|
5
5
|
headers,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ProviderPackage } from "../../provider-package.js";
|
|
2
2
|
import { MiniMax } from "../minimax.js";
|
|
3
3
|
export type Settings = MiniMax.Settings<MiniMax.ResponsesOptionsInput>;
|
|
4
|
-
export declare const model: ProviderPackage.
|
|
4
|
+
export declare const model: ProviderPackage.Model<Settings, MiniMax.ResponsesOptionsInput>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MiniMax } from "../minimax.js";
|
|
2
|
-
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions }) => MiniMax.configure({
|
|
2
|
+
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions } = {}) => MiniMax.configure({
|
|
3
3
|
apiKey,
|
|
4
4
|
baseURL,
|
|
5
5
|
headers,
|
|
@@ -683,7 +683,7 @@ export declare const provider: {
|
|
|
683
683
|
responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<ResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
684
684
|
configure: typeof configure;
|
|
685
685
|
};
|
|
686
|
-
export declare const model: ProviderPackage.
|
|
686
|
+
export declare const model: ProviderPackage.Model<Settings<MessagesOptionsInput>, MessagesOptionsInput>;
|
|
687
687
|
export declare const messages: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<MessagesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
688
688
|
export declare const chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<ChatOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
689
689
|
export declare const responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<ResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
@@ -76,7 +76,7 @@ export const configure = (input = {}) => {
|
|
|
76
76
|
return { id, model: messages, messages, chat, responses, configure };
|
|
77
77
|
};
|
|
78
78
|
export const provider = configure();
|
|
79
|
-
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions }) => configure({
|
|
79
|
+
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions } = {}) => configure({
|
|
80
80
|
apiKey,
|
|
81
81
|
baseURL,
|
|
82
82
|
headers,
|
|
@@ -5,7 +5,7 @@ import type { RouteDefaultsInput } from "../route/client.js";
|
|
|
5
5
|
import { type ModelID } from "../schema/index.js";
|
|
6
6
|
export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
7
7
|
export type ProviderOptions = MistralChat.ProviderOptionsInput;
|
|
8
|
-
export type
|
|
8
|
+
export type Config = Omit<RouteDefaultsInput, "providerOptions"> & ProviderAuthOption<"optional"> & {
|
|
9
9
|
readonly baseURL?: string;
|
|
10
10
|
readonly providerOptions?: ProviderOptions;
|
|
11
11
|
};
|
|
@@ -195,7 +195,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
195
195
|
readonly reasoning_effort?: string | undefined;
|
|
196
196
|
readonly prompt_mode?: "reasoning" | undefined;
|
|
197
197
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
|
|
198
|
-
export declare const configure: (input?:
|
|
198
|
+
export declare const configure: (input?: Config) => {
|
|
199
199
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
200
200
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<MistralChat.ProviderOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
201
201
|
configure: typeof configure;
|
|
@@ -205,5 +205,5 @@ export declare const provider: {
|
|
|
205
205
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<MistralChat.ProviderOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
206
206
|
configure: typeof configure;
|
|
207
207
|
};
|
|
208
|
-
export declare const model: ProviderPackage.
|
|
208
|
+
export declare const model: ProviderPackage.Model<Settings, ProviderOptions>;
|
|
209
209
|
export * as Mistral from "./mistral.js";
|
|
@@ -18,7 +18,7 @@ export const configure = (input = {}) => {
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
export const provider = configure();
|
|
21
|
-
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions }) => configure({
|
|
21
|
+
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions } = {}) => configure({
|
|
22
22
|
apiKey,
|
|
23
23
|
baseURL,
|
|
24
24
|
headers,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ProviderPackage } from "../../provider-package.js";
|
|
2
2
|
import { Moonshot } from "../moonshot.js";
|
|
3
3
|
export type Settings = Moonshot.Settings<Moonshot.MessagesOptionsInput>;
|
|
4
|
-
export declare const model: ProviderPackage.
|
|
4
|
+
export declare const model: ProviderPackage.Model<Settings, Moonshot.MessagesOptionsInput>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Moonshot } from "../moonshot.js";
|
|
2
|
-
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions }) => Moonshot.configure({
|
|
2
|
+
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions } = {}) => Moonshot.configure({
|
|
3
3
|
apiKey,
|
|
4
4
|
baseURL,
|
|
5
5
|
headers,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ProviderPackage } from "../../provider-package.js";
|
|
2
2
|
import { Moonshot } from "../moonshot.js";
|
|
3
3
|
export type Settings = Moonshot.Settings<Moonshot.ResponsesOptionsInput>;
|
|
4
|
-
export declare const model: ProviderPackage.
|
|
4
|
+
export declare const model: ProviderPackage.Model<Settings, Moonshot.ResponsesOptionsInput>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Moonshot } from "../moonshot.js";
|
|
2
|
-
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions }) => Moonshot.configure({
|
|
2
|
+
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions } = {}) => Moonshot.configure({
|
|
3
3
|
apiKey,
|
|
4
4
|
baseURL,
|
|
5
5
|
headers,
|
|
@@ -684,5 +684,5 @@ export declare const provider: {
|
|
|
684
684
|
export declare const chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<ChatOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
685
685
|
export declare const messages: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<MessagesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
686
686
|
export declare const responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<ResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
687
|
-
export declare const model: ProviderPackage.
|
|
687
|
+
export declare const model: ProviderPackage.Model<Settings, ChatOptionsInput>;
|
|
688
688
|
export * as Moonshot from "./moonshot.js";
|
|
@@ -80,7 +80,7 @@ export const provider = configure();
|
|
|
80
80
|
export const chat = provider.chat;
|
|
81
81
|
export const messages = provider.messages;
|
|
82
82
|
export const responses = provider.responses;
|
|
83
|
-
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions }) => configure({
|
|
83
|
+
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions } = {}) => configure({
|
|
84
84
|
apiKey,
|
|
85
85
|
baseURL,
|
|
86
86
|
headers,
|
|
@@ -205,4 +205,4 @@ export declare const provider: {
|
|
|
205
205
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
206
206
|
configure: typeof configure;
|
|
207
207
|
};
|
|
208
|
-
export declare const model: ProviderPackage.
|
|
208
|
+
export declare const model: ProviderPackage.Model<Settings, OpenResponsesProviderOptionsInput>;
|
|
@@ -4,7 +4,7 @@ import { type ProviderAuthOption } from "../route/auth-options.js";
|
|
|
4
4
|
import type { ProviderPackage } from "../provider-package.js";
|
|
5
5
|
import type { OpenAIProviderOptionsInput } from "./openai-options.js";
|
|
6
6
|
export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
7
|
-
type
|
|
7
|
+
export type Config = Omit<RouteDefaultsInput, "providerOptions"> & ProviderAuthOption<"optional"> & {
|
|
8
8
|
readonly provider?: string;
|
|
9
9
|
readonly baseURL: string;
|
|
10
10
|
readonly providerOptions?: OpenAIProviderOptionsInput;
|
|
@@ -157,7 +157,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
157
157
|
readonly seed?: number | undefined;
|
|
158
158
|
readonly stop?: readonly string[] | undefined;
|
|
159
159
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
|
|
160
|
-
export declare const configure: (input:
|
|
160
|
+
export declare const configure: (input: Config) => {
|
|
161
161
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
162
162
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
163
163
|
image: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../image.js").ImageModel<import("../protocols/openai-images.js").OpenAIImageOptions>;
|
|
@@ -167,6 +167,6 @@ export declare const provider: {
|
|
|
167
167
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
168
168
|
configure: typeof configure;
|
|
169
169
|
};
|
|
170
|
-
export declare const model: ProviderPackage.
|
|
170
|
+
export declare const model: ProviderPackage.Model<Settings, OpenAIProviderOptionsInput>;
|
|
171
171
|
export declare const imageModel: (modelID: string, settings: Settings) => import("../image.js").ImageModel<import("../protocols/openai-images.js").OpenAIImageOptions>;
|
|
172
172
|
export * as OpenAICompatible from "./openai-compatible.js";
|
|
@@ -426,10 +426,10 @@ export declare const provider: {
|
|
|
426
426
|
decision: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../decision.js").DecisionModel<OpenAIDecisionOptionsInput>;
|
|
427
427
|
configure: typeof configure;
|
|
428
428
|
};
|
|
429
|
-
export declare const model: ProviderPackage.
|
|
430
|
-
export declare const chatModel: ProviderPackage.
|
|
431
|
-
export declare const imageModel: (modelID: string, settings
|
|
432
|
-
export declare const decisionModel: (modelID: string, settings
|
|
429
|
+
export declare const model: ProviderPackage.Model<Settings, OpenAIProviderOptionsInput, typeof OpenAIResponses.route.compact>;
|
|
430
|
+
export declare const chatModel: ProviderPackage.Model<Settings, OpenAIProviderOptionsInput>;
|
|
431
|
+
export declare const imageModel: (modelID: string, settings?: Settings) => import("../image.js").ImageModel<import("../protocols/openai-images.js").OpenAIImageOptions>;
|
|
432
|
+
export declare const decisionModel: (modelID: string, settings?: Settings) => import("../decision.js").DecisionModel<OpenAIDecisionOptionsInput>;
|
|
433
433
|
export declare const responses: (id: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, {
|
|
434
434
|
endpoint: import("../route/client.js").CompactOperation;
|
|
435
435
|
trigger: import("../route/client.js").TriggerCompactOperation;
|
package/dist/providers/openai.js
CHANGED
|
@@ -74,7 +74,7 @@ export const configure = (input = {}) => {
|
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
export const provider = configure();
|
|
77
|
-
const config = ({ apiKey, baseURL, body, headers: given, organization, project, queryParams, ...providerOptions }) => {
|
|
77
|
+
const config = ({ apiKey, baseURL, body, headers: given, organization, project, queryParams, ...providerOptions } = {}) => {
|
|
78
78
|
const headers = {
|
|
79
79
|
...(organization === undefined ? {} : { "OpenAI-Organization": organization }),
|
|
80
80
|
...(project === undefined ? {} : { "OpenAI-Project": project }),
|
|
@@ -2,7 +2,7 @@ import { HttpOptions, type ModelID, type ProviderOptions } from "../schema/index
|
|
|
2
2
|
import type { ProviderPackage } from "../provider-package.js";
|
|
3
3
|
import { type ProviderAuthOption } from "../route/auth-options.js";
|
|
4
4
|
export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
5
|
-
export type
|
|
5
|
+
export type Config = ProviderAuthOption<"optional"> & {
|
|
6
6
|
readonly baseURL?: string;
|
|
7
7
|
readonly headers?: Record<string, string>;
|
|
8
8
|
readonly http?: HttpOptions.Input;
|
|
@@ -10,7 +10,7 @@ export type Options = ProviderAuthOption<"optional"> & {
|
|
|
10
10
|
export type Settings = ProviderPackage.Settings & {
|
|
11
11
|
readonly apiKey?: string;
|
|
12
12
|
};
|
|
13
|
-
export declare const configure: (input?:
|
|
13
|
+
export declare const configure: (input?: Config) => {
|
|
14
14
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
15
15
|
decision: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../decision.js").DecisionModel<import("../decision.js").DecisionOptions>;
|
|
16
16
|
configure: typeof configure;
|
|
@@ -21,5 +21,5 @@ export declare const provider: {
|
|
|
21
21
|
configure: typeof configure;
|
|
22
22
|
};
|
|
23
23
|
export declare const decision: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../decision.js").DecisionModel<import("../decision.js").DecisionOptions>;
|
|
24
|
-
export declare const decisionModel: (modelID: string, { apiKey, baseURL, body, headers, ...providerOptions }
|
|
24
|
+
export declare const decisionModel: (modelID: string, { apiKey, baseURL, body, headers, ...providerOptions }?: Settings) => import("../decision.js").DecisionModel<import("../decision.js").DecisionOptions>;
|
|
25
25
|
export * as OpenCode from "./opencode.js";
|
|
@@ -18,5 +18,5 @@ export const configure = (input = {}) => {
|
|
|
18
18
|
};
|
|
19
19
|
export const provider = configure();
|
|
20
20
|
export const decision = provider.decision;
|
|
21
|
-
export const decisionModel = (modelID, { apiKey, baseURL, body, headers, ...providerOptions }) => configure({ apiKey, baseURL, headers, http: body === undefined ? undefined : { body } }).decision(modelID, providerOptions);
|
|
21
|
+
export const decisionModel = (modelID, { apiKey, baseURL, body, headers, ...providerOptions } = {}) => configure({ apiKey, baseURL, headers, http: body === undefined ? undefined : { body } }).decision(modelID, providerOptions);
|
|
22
22
|
export * as OpenCode from "./opencode.js";
|
|
@@ -79,7 +79,7 @@ export interface OpenRouterDecisionOptions {
|
|
|
79
79
|
readonly trace?: Readonly<Record<string, unknown>>;
|
|
80
80
|
readonly user?: string;
|
|
81
81
|
}
|
|
82
|
-
export type
|
|
82
|
+
export type Config = Omit<RouteDefaultsInput, "providerOptions"> & ProviderAuthOption<"optional"> & {
|
|
83
83
|
readonly baseURL?: string;
|
|
84
84
|
readonly providerOptions?: OpenRouterProviderOptionsInput;
|
|
85
85
|
};
|
|
@@ -789,7 +789,7 @@ export declare const routes: Route<{
|
|
|
789
789
|
user?: string | undefined;
|
|
790
790
|
reasoning?: Record<string, unknown> | undefined;
|
|
791
791
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
|
|
792
|
-
export declare const configure: (input?:
|
|
792
|
+
export declare const configure: (input?: Config) => {
|
|
793
793
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
794
794
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<OpenRouterOptions, import("../route/client.js").CompactionOperations | undefined>;
|
|
795
795
|
image: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../image.js").ImageModel<import("../protocols/openai-images.js").OpenAIImageOptions>;
|
|
@@ -805,7 +805,7 @@ export declare const provider: {
|
|
|
805
805
|
};
|
|
806
806
|
export declare const decision: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../decision.js").DecisionModel<OpenRouterDecisionOptions>;
|
|
807
807
|
export declare const image: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../image.js").ImageModel<import("../protocols/openai-images.js").OpenAIImageOptions>;
|
|
808
|
-
export declare const model: ProviderPackage.
|
|
809
|
-
export declare const imageModel: (modelID: string, settings
|
|
810
|
-
export declare const decisionModel: (modelID: string, settings
|
|
808
|
+
export declare const model: ProviderPackage.Model<Settings, OpenRouterProviderOptionsInput>;
|
|
809
|
+
export declare const imageModel: (modelID: string, settings?: Settings) => import("../image.js").ImageModel<import("../protocols/openai-images.js").OpenAIImageOptions>;
|
|
810
|
+
export declare const decisionModel: (modelID: string, settings?: Settings) => import("../decision.js").DecisionModel<OpenRouterDecisionOptions>;
|
|
811
811
|
export {};
|
|
@@ -137,7 +137,7 @@ export const decisionModel = (modelID, settings) => {
|
|
|
137
137
|
const input = config(settings);
|
|
138
138
|
return configure(input).decision(modelID, input.providerOptions);
|
|
139
139
|
};
|
|
140
|
-
function config({ apiKey, baseURL, body, headers, ...providerOptions }) {
|
|
140
|
+
function config({ apiKey, baseURL, body, headers, ...providerOptions } = {}) {
|
|
141
141
|
return {
|
|
142
142
|
apiKey,
|
|
143
143
|
baseURL,
|
|
@@ -4,7 +4,7 @@ import { Route, type RouteDefaultsInput } from "../route/client.js";
|
|
|
4
4
|
import { type ModelID } from "../schema/index.js";
|
|
5
5
|
import type { OpenAIProviderOptionsInput } from "./openai-options.js";
|
|
6
6
|
export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
7
|
-
export type
|
|
7
|
+
export type Config = Omit<RouteDefaultsInput, "providerOptions"> & ProviderAuthOption<"optional"> & {
|
|
8
8
|
readonly baseURL?: string;
|
|
9
9
|
readonly providerOptions?: OpenAIProviderOptionsInput;
|
|
10
10
|
};
|
|
@@ -298,7 +298,7 @@ export declare const routes: Route<{
|
|
|
298
298
|
readonly seed?: number | undefined;
|
|
299
299
|
readonly stop?: readonly string[] | undefined;
|
|
300
300
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
|
|
301
|
-
export declare const configure: (input?:
|
|
301
|
+
export declare const configure: (input?: Config) => {
|
|
302
302
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
303
303
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
304
304
|
configure: typeof configure;
|
|
@@ -308,4 +308,4 @@ export declare const provider: {
|
|
|
308
308
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
309
309
|
configure: typeof configure;
|
|
310
310
|
};
|
|
311
|
-
export declare const model: ProviderPackage.
|
|
311
|
+
export declare const model: ProviderPackage.Model<Settings, OpenAIProviderOptionsInput>;
|
|
@@ -31,7 +31,7 @@ export const configure = (input = {}) => {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
export const provider = configure();
|
|
34
|
-
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions }) => configure({
|
|
34
|
+
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions } = {}) => configure({
|
|
35
35
|
apiKey,
|
|
36
36
|
baseURL,
|
|
37
37
|
headers,
|
|
@@ -2,7 +2,7 @@ import { HttpOptions, type ModelID, type ProviderOptions } from "../schema/index
|
|
|
2
2
|
import type { ProviderPackage } from "../provider-package.js";
|
|
3
3
|
import { type ProviderAuthOption } from "../route/auth-options.js";
|
|
4
4
|
export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
5
|
-
export type
|
|
5
|
+
export type Config = ProviderAuthOption<"optional"> & {
|
|
6
6
|
readonly baseURL?: string;
|
|
7
7
|
readonly headers?: Record<string, string>;
|
|
8
8
|
readonly http?: HttpOptions.Input;
|
|
@@ -10,7 +10,7 @@ export type Options = ProviderAuthOption<"optional"> & {
|
|
|
10
10
|
export type Settings = ProviderPackage.Settings & {
|
|
11
11
|
readonly apiKey?: string;
|
|
12
12
|
};
|
|
13
|
-
export declare const configure: (input?:
|
|
13
|
+
export declare const configure: (input?: Config) => {
|
|
14
14
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
15
15
|
decision: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../decision.js").DecisionModel<import("../decision.js").DecisionOptions>;
|
|
16
16
|
configure: typeof configure;
|
|
@@ -21,5 +21,5 @@ export declare const provider: {
|
|
|
21
21
|
configure: typeof configure;
|
|
22
22
|
};
|
|
23
23
|
export declare const decision: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../decision.js").DecisionModel<import("../decision.js").DecisionOptions>;
|
|
24
|
-
export declare const decisionModel: (modelID: string, { apiKey, baseURL, body, headers, ...providerOptions }
|
|
24
|
+
export declare const decisionModel: (modelID: string, { apiKey, baseURL, body, headers, ...providerOptions }?: Settings) => import("../decision.js").DecisionModel<import("../decision.js").DecisionOptions>;
|
|
25
25
|
export * as TypeSafeAI from "./typesafe-ai.js";
|
|
@@ -18,5 +18,5 @@ export const configure = (input = {}) => {
|
|
|
18
18
|
};
|
|
19
19
|
export const provider = configure();
|
|
20
20
|
export const decision = provider.decision;
|
|
21
|
-
export const decisionModel = (modelID, { apiKey, baseURL, body, headers, ...providerOptions }) => configure({ apiKey, baseURL, headers, http: body === undefined ? undefined : { body } }).decision(modelID, providerOptions);
|
|
21
|
+
export const decisionModel = (modelID, { apiKey, baseURL, body, headers, ...providerOptions } = {}) => configure({ apiKey, baseURL, headers, http: body === undefined ? undefined : { body } }).decision(modelID, providerOptions);
|
|
22
22
|
export * as TypeSafeAI from "./typesafe-ai.js";
|
|
@@ -368,5 +368,5 @@ export declare const chat: (modelID: string | ModelID) => import("../schema/opti
|
|
|
368
368
|
} | undefined;
|
|
369
369
|
readonly user?: string | undefined;
|
|
370
370
|
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
371
|
-
export declare const model: ProviderPackage.
|
|
371
|
+
export declare const model: ProviderPackage.Model<Settings, ChatOptionsInput>;
|
|
372
372
|
export * as Venice from "./venice.js";
|
package/dist/providers/venice.js
CHANGED
|
@@ -27,7 +27,7 @@ export const configure = (input = {}) => {
|
|
|
27
27
|
};
|
|
28
28
|
export const provider = configure();
|
|
29
29
|
export const chat = provider.chat;
|
|
30
|
-
export const model = (modelID, { apiKey, baseURL, queryParams, body, headers, ...providerOptions }) => configure({
|
|
30
|
+
export const model = (modelID, { apiKey, baseURL, queryParams, body, headers, ...providerOptions } = {}) => configure({
|
|
31
31
|
apiKey,
|
|
32
32
|
baseURL,
|
|
33
33
|
queryParams,
|
|
@@ -63,7 +63,7 @@ export type ProviderOptionsInput = OpenResponsesProviderOptionsInput & Omit<Anth
|
|
|
63
63
|
/** Responses API count of stable input items to anchor for caching, sent as top-level `cache_anchor_items`. */
|
|
64
64
|
readonly cacheAnchorItems?: number;
|
|
65
65
|
};
|
|
66
|
-
export type
|
|
66
|
+
export type Config = Omit<RouteDefaultsInput, "providerOptions"> & ProviderAuthOption<"optional"> & {
|
|
67
67
|
readonly baseURL?: string;
|
|
68
68
|
readonly providerOptions?: ProviderOptionsInput;
|
|
69
69
|
};
|
|
@@ -73,7 +73,7 @@ export type Settings = ProviderPackage.Settings & ProviderOptionsInput & {
|
|
|
73
73
|
export declare const routes: Route<{
|
|
74
74
|
readonly [x: string]: unknown;
|
|
75
75
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
|
|
76
|
-
export declare const configure: (input?:
|
|
76
|
+
export declare const configure: (input?: Config) => {
|
|
77
77
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
78
78
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<ProviderOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
79
79
|
messages: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<ProviderOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
@@ -98,10 +98,10 @@ export declare const messages: (modelID: string | ModelID) => import("../schema/
|
|
|
98
98
|
export declare const responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<ProviderOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
99
99
|
export declare const chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<ProviderOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
100
100
|
export declare const image: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../image.js").ImageModel<import("../protocols/openai-images.js").OpenAIImageOptions>;
|
|
101
|
-
export declare const model: ProviderPackage.
|
|
102
|
-
export declare const messagesModel: ProviderPackage.
|
|
103
|
-
export declare const responsesModel: ProviderPackage.
|
|
104
|
-
export declare const chatModel: ProviderPackage.
|
|
105
|
-
export declare const imageModel: (modelID: string, settings
|
|
106
|
-
export declare const decisionModel: (modelID: string, settings
|
|
101
|
+
export declare const model: ProviderPackage.Model<Settings, ProviderOptionsInput>;
|
|
102
|
+
export declare const messagesModel: ProviderPackage.Model<Settings, ProviderOptionsInput>;
|
|
103
|
+
export declare const responsesModel: ProviderPackage.Model<Settings, ProviderOptionsInput>;
|
|
104
|
+
export declare const chatModel: ProviderPackage.Model<Settings, ProviderOptionsInput>;
|
|
105
|
+
export declare const imageModel: (modelID: string, settings?: Settings) => import("../image.js").ImageModel<import("../protocols/openai-images.js").OpenAIImageOptions>;
|
|
106
|
+
export declare const decisionModel: (modelID: string, settings?: Settings) => import("../decision.js").DecisionModel<import("../decision.js").DecisionOptions>;
|
|
107
107
|
export * as VercelAIGateway from "./vercel-ai-gateway.js";
|
|
@@ -160,7 +160,7 @@ export const decisionModel = (modelID, settings) => {
|
|
|
160
160
|
const input = config(settings);
|
|
161
161
|
return configure(input).decision(modelID, input.providerOptions);
|
|
162
162
|
};
|
|
163
|
-
function config({ apiKey, baseURL, headers, body, ...providerOptions }) {
|
|
163
|
+
function config({ apiKey, baseURL, headers, body, ...providerOptions } = {}) {
|
|
164
164
|
return {
|
|
165
165
|
apiKey,
|
|
166
166
|
baseURL,
|
package/dist/providers/xai.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
|
8
8
|
export type XAIProviderOptionsInput = OpenAIOptionsInput & XAIResponses.OptionsInput & {
|
|
9
9
|
readonly contextManagement?: never;
|
|
10
10
|
};
|
|
11
|
-
export type
|
|
11
|
+
export type Config = Omit<RouteDefaultsInput, "providerOptions"> & ProviderAuthOption<"optional"> & {
|
|
12
12
|
readonly baseURL?: string;
|
|
13
13
|
readonly providerOptions?: XAIProviderOptionsInput;
|
|
14
14
|
};
|
|
@@ -166,7 +166,7 @@ export declare const routes: (Route<unknown, import("../protocols/open-responses
|
|
|
166
166
|
readonly seed?: number | undefined;
|
|
167
167
|
readonly stop?: readonly string[] | undefined;
|
|
168
168
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>)[];
|
|
169
|
-
export declare const configure: (input?:
|
|
169
|
+
export declare const configure: (input?: Config) => {
|
|
170
170
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
171
171
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<XAIProviderOptionsInput, {
|
|
172
172
|
endpoint: import("../route/client.js").CompactOperation;
|
|
@@ -192,8 +192,8 @@ export declare const provider: {
|
|
|
192
192
|
video: (modelID: string | ModelID) => import("../video.js").VideoModel<import("../protocols/xai-video.js").XAIVideoOptions>;
|
|
193
193
|
configure: typeof configure;
|
|
194
194
|
};
|
|
195
|
-
export declare const model: ProviderPackage.
|
|
196
|
-
export declare const imageModel: (modelID: string, settings
|
|
195
|
+
export declare const model: ProviderPackage.Model<Settings, XAIProviderOptionsInput, typeof responsesRoute.compact>;
|
|
196
|
+
export declare const imageModel: (modelID: string, settings?: Settings) => import("../image.js").ImageModel<import("../protocols/xai-images.js").XAIImageOptions>;
|
|
197
197
|
export declare const responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<XAIProviderOptionsInput, {
|
|
198
198
|
endpoint: import("../route/client.js").CompactOperation;
|
|
199
199
|
}>;
|
package/dist/providers/xai.js
CHANGED
|
@@ -78,7 +78,7 @@ export const imageModel = (modelID, settings) => {
|
|
|
78
78
|
const input = config(settings);
|
|
79
79
|
return configure(input).image(modelID, input.providerOptions);
|
|
80
80
|
};
|
|
81
|
-
function config({ apiKey, baseURL, body, headers, ...providerOptions }) {
|
|
81
|
+
function config({ apiKey, baseURL, body, headers, ...providerOptions } = {}) {
|
|
82
82
|
return {
|
|
83
83
|
apiKey,
|
|
84
84
|
baseURL,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ProviderPackage } from "../../provider-package.js";
|
|
2
2
|
import { ZAICodingPlan } from "../zai-coding-plan.js";
|
|
3
3
|
export type Settings = ZAICodingPlan.Settings<ZAICodingPlan.MessagesOptionsInput>;
|
|
4
|
-
export declare const model: ProviderPackage.
|
|
4
|
+
export declare const model: ProviderPackage.Model<Settings, ZAICodingPlan.MessagesOptionsInput>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZAICodingPlan } from "../zai-coding-plan.js";
|
|
2
|
-
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions }) => ZAICodingPlan.configure({
|
|
2
|
+
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions } = {}) => ZAICodingPlan.configure({
|
|
3
3
|
apiKey,
|
|
4
4
|
baseURL,
|
|
5
5
|
headers,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ProviderPackage } from "../../provider-package.js";
|
|
2
2
|
import { ZAICodingPlan } from "../zai-coding-plan.js";
|
|
3
3
|
export type Settings = ZAICodingPlan.Settings<ZAICodingPlan.ResponsesOptionsInput>;
|
|
4
|
-
export declare const model: ProviderPackage.
|
|
4
|
+
export declare const model: ProviderPackage.Model<Settings, ZAICodingPlan.ResponsesOptionsInput>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZAICodingPlan } from "../zai-coding-plan.js";
|
|
2
|
-
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions }) => ZAICodingPlan.configure({
|
|
2
|
+
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions } = {}) => ZAICodingPlan.configure({
|
|
3
3
|
apiKey,
|
|
4
4
|
baseURL,
|
|
5
5
|
headers,
|
|
@@ -745,5 +745,5 @@ export declare const messages: (modelID: string | ModelID) => import("../schema/
|
|
|
745
745
|
} | undefined;
|
|
746
746
|
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
747
747
|
export declare const responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<ResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
748
|
-
export declare const model: ProviderPackage.
|
|
748
|
+
export declare const model: ProviderPackage.Model<Settings, ChatOptionsInput>;
|
|
749
749
|
export * as ZAICodingPlan from "./zai-coding-plan.js";
|
|
@@ -53,7 +53,7 @@ export const provider = configure();
|
|
|
53
53
|
export const chat = provider.chat;
|
|
54
54
|
export const messages = provider.messages;
|
|
55
55
|
export const responses = provider.responses;
|
|
56
|
-
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions }) => configure({
|
|
56
|
+
export const model = (modelID, { apiKey, baseURL, body, headers, ...providerOptions } = {}) => configure({
|
|
57
57
|
apiKey,
|
|
58
58
|
baseURL,
|
|
59
59
|
headers,
|
package/dist/providers/zai.d.ts
CHANGED
|
@@ -248,6 +248,6 @@ export declare const chat: (modelID: string | ModelID) => import("../schema/opti
|
|
|
248
248
|
readonly requestID?: string | undefined;
|
|
249
249
|
readonly userID?: string | undefined;
|
|
250
250
|
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
251
|
-
export declare const model: ProviderPackage.
|
|
252
|
-
export declare const imageModel: (modelID: string, settings
|
|
251
|
+
export declare const model: ProviderPackage.Model<Settings, ChatOptionsInput>;
|
|
252
|
+
export declare const imageModel: (modelID: string, settings?: Settings) => import("../image.js").ImageModel<import("./zai.js").ZAIImageOptions>;
|
|
253
253
|
export * as ZAI from "./zai.js";
|