@shenghuabi/openai 1.2.7 → 1.2.10
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/chat/util/get-custom-provider.d.ts +76 -76
- package/define/index.js +10 -5
- package/define/index.js.map +2 -2
- package/define/index.mjs +12 -5
- package/define/index.mjs.map +2 -2
- package/index.js +10 -5
- package/index.js.map +2 -2
- package/index.mjs +12 -5
- package/index.mjs.map +2 -2
- package/package.json +1 -1
|
@@ -18,11 +18,11 @@ export declare const OpenAICompletionsCompatSchema: v.SchemaWithPipe<readonly [v
|
|
|
18
18
|
readonly requiresThinkingAsText: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "思考转文本">, v.DescriptionAction<boolean, "是否将思考过程作为普通文本发送">]>, undefined>;
|
|
19
19
|
readonly requiresReasoningContentOnAssistantMessages: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "推理内容在助手消息中">, v.DescriptionAction<boolean, "是否在助手消息中包含推理内容">]>, undefined>;
|
|
20
20
|
readonly thinkingFormat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["openai", "openrouter", "deepseek", "together", "zai", "qwen", "qwen-chat-template", "string-thinking", "ant-ling"], undefined>, v.TitleAction<"deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking", "思考格式">, v.DescriptionAction<"deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking", "指定 thinking 标签的序列化格式">]>, undefined>;
|
|
21
|
-
readonly openRouterRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
22
|
-
readonly vercelGatewayRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
21
|
+
readonly openRouterRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.AnySchema, v.TitleAction<any, "OpenRouter 路由">, v.DescriptionAction<any, "自定义 OpenRouter 的路由配置">, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", any, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, undefined>;
|
|
22
|
+
readonly vercelGatewayRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.AnySchema, v.TitleAction<any, "Vercel Gateway 路由">, v.DescriptionAction<any, "自定义 Vercel AI Gateway 的路由配置">, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", any, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, undefined>;
|
|
23
23
|
readonly zaiToolStream: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "ZAI 工具流式">, v.DescriptionAction<boolean, "是否启用 ZAI 平台工具调用的流式输出">]>, undefined>;
|
|
24
24
|
readonly supportsStrictMode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "严格模式">, v.DescriptionAction<boolean, "是否支持工具的 JSON Schema 严格校验">]>, undefined>;
|
|
25
|
-
readonly cacheControlFormat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.LiteralSchema<"anthropic", undefined>, v.TitleAction<"anthropic", "缓存控制格式">, v.DescriptionAction<"anthropic", "指定缓存控制的语法格式">]>, undefined>;
|
|
25
|
+
readonly cacheControlFormat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.LiteralSchema<"anthropic", undefined>, v.TitleAction<"anthropic", "缓存控制格式">, v.DescriptionAction<"anthropic", "指定缓存控制的语法格式">, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", "anthropic", import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, undefined>;
|
|
26
26
|
readonly sendSessionAffinityHeaders: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "发送会话亲和标头">, v.DescriptionAction<boolean, "是否在请求中携带会话亲和性标头">]>, undefined>;
|
|
27
27
|
readonly supportsLongCacheRetention: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "长期缓存保留">, v.DescriptionAction<boolean, "是否支持长期缓存保留策略">]>, undefined>;
|
|
28
28
|
}, undefined>, undefined>, v.TitleAction<{
|
|
@@ -36,8 +36,8 @@ export declare const OpenAICompletionsCompatSchema: v.SchemaWithPipe<readonly [v
|
|
|
36
36
|
requiresThinkingAsText?: boolean | undefined;
|
|
37
37
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
38
38
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
39
|
-
openRouterRouting?:
|
|
40
|
-
vercelGatewayRouting?:
|
|
39
|
+
openRouterRouting?: any;
|
|
40
|
+
vercelGatewayRouting?: any;
|
|
41
41
|
zaiToolStream?: boolean | undefined;
|
|
42
42
|
supportsStrictMode?: boolean | undefined;
|
|
43
43
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -54,8 +54,8 @@ export declare const OpenAICompletionsCompatSchema: v.SchemaWithPipe<readonly [v
|
|
|
54
54
|
requiresThinkingAsText?: boolean | undefined;
|
|
55
55
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
56
56
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
57
|
-
openRouterRouting?:
|
|
58
|
-
vercelGatewayRouting?:
|
|
57
|
+
openRouterRouting?: any;
|
|
58
|
+
vercelGatewayRouting?: any;
|
|
59
59
|
zaiToolStream?: boolean | undefined;
|
|
60
60
|
supportsStrictMode?: boolean | undefined;
|
|
61
61
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -113,11 +113,11 @@ export declare const CompatSchema: v.SchemaWithPipe<readonly [v.UnionSchema<[v.S
|
|
|
113
113
|
readonly requiresThinkingAsText: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "思考转文本">, v.DescriptionAction<boolean, "是否将思考过程作为普通文本发送">]>, undefined>;
|
|
114
114
|
readonly requiresReasoningContentOnAssistantMessages: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "推理内容在助手消息中">, v.DescriptionAction<boolean, "是否在助手消息中包含推理内容">]>, undefined>;
|
|
115
115
|
readonly thinkingFormat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["openai", "openrouter", "deepseek", "together", "zai", "qwen", "qwen-chat-template", "string-thinking", "ant-ling"], undefined>, v.TitleAction<"deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking", "思考格式">, v.DescriptionAction<"deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking", "指定 thinking 标签的序列化格式">]>, undefined>;
|
|
116
|
-
readonly openRouterRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
117
|
-
readonly vercelGatewayRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
116
|
+
readonly openRouterRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.AnySchema, v.TitleAction<any, "OpenRouter 路由">, v.DescriptionAction<any, "自定义 OpenRouter 的路由配置">, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", any, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, undefined>;
|
|
117
|
+
readonly vercelGatewayRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.AnySchema, v.TitleAction<any, "Vercel Gateway 路由">, v.DescriptionAction<any, "自定义 Vercel AI Gateway 的路由配置">, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", any, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, undefined>;
|
|
118
118
|
readonly zaiToolStream: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "ZAI 工具流式">, v.DescriptionAction<boolean, "是否启用 ZAI 平台工具调用的流式输出">]>, undefined>;
|
|
119
119
|
readonly supportsStrictMode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "严格模式">, v.DescriptionAction<boolean, "是否支持工具的 JSON Schema 严格校验">]>, undefined>;
|
|
120
|
-
readonly cacheControlFormat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.LiteralSchema<"anthropic", undefined>, v.TitleAction<"anthropic", "缓存控制格式">, v.DescriptionAction<"anthropic", "指定缓存控制的语法格式">]>, undefined>;
|
|
120
|
+
readonly cacheControlFormat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.LiteralSchema<"anthropic", undefined>, v.TitleAction<"anthropic", "缓存控制格式">, v.DescriptionAction<"anthropic", "指定缓存控制的语法格式">, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", "anthropic", import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, undefined>;
|
|
121
121
|
readonly sendSessionAffinityHeaders: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "发送会话亲和标头">, v.DescriptionAction<boolean, "是否在请求中携带会话亲和性标头">]>, undefined>;
|
|
122
122
|
readonly supportsLongCacheRetention: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "长期缓存保留">, v.DescriptionAction<boolean, "是否支持长期缓存保留策略">]>, undefined>;
|
|
123
123
|
}, undefined>, undefined>, v.TitleAction<{
|
|
@@ -131,8 +131,8 @@ export declare const CompatSchema: v.SchemaWithPipe<readonly [v.UnionSchema<[v.S
|
|
|
131
131
|
requiresThinkingAsText?: boolean | undefined;
|
|
132
132
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
133
133
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
134
|
-
openRouterRouting?:
|
|
135
|
-
vercelGatewayRouting?:
|
|
134
|
+
openRouterRouting?: any;
|
|
135
|
+
vercelGatewayRouting?: any;
|
|
136
136
|
zaiToolStream?: boolean | undefined;
|
|
137
137
|
supportsStrictMode?: boolean | undefined;
|
|
138
138
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -149,8 +149,8 @@ export declare const CompatSchema: v.SchemaWithPipe<readonly [v.UnionSchema<[v.S
|
|
|
149
149
|
requiresThinkingAsText?: boolean | undefined;
|
|
150
150
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
151
151
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
152
|
-
openRouterRouting?:
|
|
153
|
-
vercelGatewayRouting?:
|
|
152
|
+
openRouterRouting?: any;
|
|
153
|
+
vercelGatewayRouting?: any;
|
|
154
154
|
zaiToolStream?: boolean | undefined;
|
|
155
155
|
supportsStrictMode?: boolean | undefined;
|
|
156
156
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -167,8 +167,8 @@ export declare const CompatSchema: v.SchemaWithPipe<readonly [v.UnionSchema<[v.S
|
|
|
167
167
|
requiresThinkingAsText?: boolean | undefined;
|
|
168
168
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
169
169
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
170
|
-
openRouterRouting?:
|
|
171
|
-
vercelGatewayRouting?:
|
|
170
|
+
openRouterRouting?: any;
|
|
171
|
+
vercelGatewayRouting?: any;
|
|
172
172
|
zaiToolStream?: boolean | undefined;
|
|
173
173
|
supportsStrictMode?: boolean | undefined;
|
|
174
174
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -233,8 +233,8 @@ export declare const CompatSchema: v.SchemaWithPipe<readonly [v.UnionSchema<[v.S
|
|
|
233
233
|
requiresThinkingAsText?: boolean | undefined;
|
|
234
234
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
235
235
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
236
|
-
openRouterRouting?:
|
|
237
|
-
vercelGatewayRouting?:
|
|
236
|
+
openRouterRouting?: any;
|
|
237
|
+
vercelGatewayRouting?: any;
|
|
238
238
|
zaiToolStream?: boolean | undefined;
|
|
239
239
|
supportsStrictMode?: boolean | undefined;
|
|
240
240
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -263,8 +263,8 @@ export declare const CompatSchema: v.SchemaWithPipe<readonly [v.UnionSchema<[v.S
|
|
|
263
263
|
requiresThinkingAsText?: boolean | undefined;
|
|
264
264
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
265
265
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
266
|
-
openRouterRouting?:
|
|
267
|
-
vercelGatewayRouting?:
|
|
266
|
+
openRouterRouting?: any;
|
|
267
|
+
vercelGatewayRouting?: any;
|
|
268
268
|
zaiToolStream?: boolean | undefined;
|
|
269
269
|
supportsStrictMode?: boolean | undefined;
|
|
270
270
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -293,8 +293,8 @@ export declare const CompatSchema: v.SchemaWithPipe<readonly [v.UnionSchema<[v.S
|
|
|
293
293
|
requiresThinkingAsText?: boolean | undefined;
|
|
294
294
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
295
295
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
296
|
-
openRouterRouting?:
|
|
297
|
-
vercelGatewayRouting?:
|
|
296
|
+
openRouterRouting?: any;
|
|
297
|
+
vercelGatewayRouting?: any;
|
|
298
298
|
zaiToolStream?: boolean | undefined;
|
|
299
299
|
supportsStrictMode?: boolean | undefined;
|
|
300
300
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -324,7 +324,7 @@ export declare const ModelSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
324
324
|
readonly provider: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "default">, v.TitleAction<string, "厂商">, v.DescriptionAction<string, "模型提供商,如 openai / anthropic / llama">]>;
|
|
325
325
|
readonly baseUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "基础 URL">, v.DescriptionAction<string, "API 请求的基础地址">]>;
|
|
326
326
|
readonly reasoning: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BooleanSchema<undefined>, false>, v.TitleAction<boolean, "支持推理">, v.DescriptionAction<boolean, "该模型是否支持思考/推理模式">]>;
|
|
327
|
-
readonly input: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["text", "image"], undefined>, v.TitleAction<"text" | "image", "输入类型">, v.DescriptionAction<"text" | "image", "支持的输入模态类型">]>, undefined>, v.TitleAction<("text" | "image")[], "输入类型列表">, v.DescriptionAction<("text" | "image")[], "该模型支持的用户输入类型,如 text 文本或 image 图片">]>, readonly ["text", "image"]>, v.TitleAction<("text" | "image")[], "输入类型">, v.DescriptionAction<("text" | "image")[], "支持的输入模态类型">]>;
|
|
327
|
+
readonly input: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["text", "image"], undefined>, v.TitleAction<"text" | "image", "输入类型">, v.DescriptionAction<"text" | "image", "支持的输入模态类型">]>, undefined>, v.TitleAction<("text" | "image")[], "输入类型列表">, v.DescriptionAction<("text" | "image")[], "该模型支持的用户输入类型,如 text 文本或 image 图片">]>, readonly ["text", "image"]>, import("@piying/valibot-visit").GroupControlAction<("text" | "image")[]>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", ("text" | "image")[], import("@piying/view-angular-core").AnyCoreSchemaHandle>, v.TitleAction<("text" | "image")[], "输入类型">, v.DescriptionAction<("text" | "image")[], "支持的输入模态类型">]>;
|
|
328
328
|
readonly cost: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
329
329
|
readonly input: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TitleAction<number, "输入单价">, v.DescriptionAction<number, "每 token 输入费用">]>;
|
|
330
330
|
readonly output: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TitleAction<number, "输出单价">, v.DescriptionAction<number, "每 token 输出费用">]>;
|
|
@@ -380,11 +380,11 @@ export declare const ModelSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
380
380
|
readonly requiresThinkingAsText: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "思考转文本">, v.DescriptionAction<boolean, "是否将思考过程作为普通文本发送">]>, undefined>;
|
|
381
381
|
readonly requiresReasoningContentOnAssistantMessages: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "推理内容在助手消息中">, v.DescriptionAction<boolean, "是否在助手消息中包含推理内容">]>, undefined>;
|
|
382
382
|
readonly thinkingFormat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["openai", "openrouter", "deepseek", "together", "zai", "qwen", "qwen-chat-template", "string-thinking", "ant-ling"], undefined>, v.TitleAction<"deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking", "思考格式">, v.DescriptionAction<"deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking", "指定 thinking 标签的序列化格式">]>, undefined>;
|
|
383
|
-
readonly openRouterRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
384
|
-
readonly vercelGatewayRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
383
|
+
readonly openRouterRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.AnySchema, v.TitleAction<any, "OpenRouter 路由">, v.DescriptionAction<any, "自定义 OpenRouter 的路由配置">, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", any, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, undefined>;
|
|
384
|
+
readonly vercelGatewayRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.AnySchema, v.TitleAction<any, "Vercel Gateway 路由">, v.DescriptionAction<any, "自定义 Vercel AI Gateway 的路由配置">, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", any, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, undefined>;
|
|
385
385
|
readonly zaiToolStream: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "ZAI 工具流式">, v.DescriptionAction<boolean, "是否启用 ZAI 平台工具调用的流式输出">]>, undefined>;
|
|
386
386
|
readonly supportsStrictMode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "严格模式">, v.DescriptionAction<boolean, "是否支持工具的 JSON Schema 严格校验">]>, undefined>;
|
|
387
|
-
readonly cacheControlFormat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.LiteralSchema<"anthropic", undefined>, v.TitleAction<"anthropic", "缓存控制格式">, v.DescriptionAction<"anthropic", "指定缓存控制的语法格式">]>, undefined>;
|
|
387
|
+
readonly cacheControlFormat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.LiteralSchema<"anthropic", undefined>, v.TitleAction<"anthropic", "缓存控制格式">, v.DescriptionAction<"anthropic", "指定缓存控制的语法格式">, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", "anthropic", import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, undefined>;
|
|
388
388
|
readonly sendSessionAffinityHeaders: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "发送会话亲和标头">, v.DescriptionAction<boolean, "是否在请求中携带会话亲和性标头">]>, undefined>;
|
|
389
389
|
readonly supportsLongCacheRetention: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "长期缓存保留">, v.DescriptionAction<boolean, "是否支持长期缓存保留策略">]>, undefined>;
|
|
390
390
|
}, undefined>, undefined>, v.TitleAction<{
|
|
@@ -398,8 +398,8 @@ export declare const ModelSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
398
398
|
requiresThinkingAsText?: boolean | undefined;
|
|
399
399
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
400
400
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
401
|
-
openRouterRouting?:
|
|
402
|
-
vercelGatewayRouting?:
|
|
401
|
+
openRouterRouting?: any;
|
|
402
|
+
vercelGatewayRouting?: any;
|
|
403
403
|
zaiToolStream?: boolean | undefined;
|
|
404
404
|
supportsStrictMode?: boolean | undefined;
|
|
405
405
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -416,8 +416,8 @@ export declare const ModelSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
416
416
|
requiresThinkingAsText?: boolean | undefined;
|
|
417
417
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
418
418
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
419
|
-
openRouterRouting?:
|
|
420
|
-
vercelGatewayRouting?:
|
|
419
|
+
openRouterRouting?: any;
|
|
420
|
+
vercelGatewayRouting?: any;
|
|
421
421
|
zaiToolStream?: boolean | undefined;
|
|
422
422
|
supportsStrictMode?: boolean | undefined;
|
|
423
423
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -434,8 +434,8 @@ export declare const ModelSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
434
434
|
requiresThinkingAsText?: boolean | undefined;
|
|
435
435
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
436
436
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
437
|
-
openRouterRouting?:
|
|
438
|
-
vercelGatewayRouting?:
|
|
437
|
+
openRouterRouting?: any;
|
|
438
|
+
vercelGatewayRouting?: any;
|
|
439
439
|
zaiToolStream?: boolean | undefined;
|
|
440
440
|
supportsStrictMode?: boolean | undefined;
|
|
441
441
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -500,8 +500,8 @@ export declare const ModelSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
500
500
|
requiresThinkingAsText?: boolean | undefined;
|
|
501
501
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
502
502
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
503
|
-
openRouterRouting?:
|
|
504
|
-
vercelGatewayRouting?:
|
|
503
|
+
openRouterRouting?: any;
|
|
504
|
+
vercelGatewayRouting?: any;
|
|
505
505
|
zaiToolStream?: boolean | undefined;
|
|
506
506
|
supportsStrictMode?: boolean | undefined;
|
|
507
507
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -530,8 +530,8 @@ export declare const ModelSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
530
530
|
requiresThinkingAsText?: boolean | undefined;
|
|
531
531
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
532
532
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
533
|
-
openRouterRouting?:
|
|
534
|
-
vercelGatewayRouting?:
|
|
533
|
+
openRouterRouting?: any;
|
|
534
|
+
vercelGatewayRouting?: any;
|
|
535
535
|
zaiToolStream?: boolean | undefined;
|
|
536
536
|
supportsStrictMode?: boolean | undefined;
|
|
537
537
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -560,8 +560,8 @@ export declare const ModelSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
560
560
|
requiresThinkingAsText?: boolean | undefined;
|
|
561
561
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
562
562
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
563
|
-
openRouterRouting?:
|
|
564
|
-
vercelGatewayRouting?:
|
|
563
|
+
openRouterRouting?: any;
|
|
564
|
+
vercelGatewayRouting?: any;
|
|
565
565
|
zaiToolStream?: boolean | undefined;
|
|
566
566
|
supportsStrictMode?: boolean | undefined;
|
|
567
567
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -592,8 +592,8 @@ export declare const ModelSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
592
592
|
requiresThinkingAsText?: boolean | undefined;
|
|
593
593
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
594
594
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
595
|
-
openRouterRouting?:
|
|
596
|
-
vercelGatewayRouting?:
|
|
595
|
+
openRouterRouting?: any;
|
|
596
|
+
vercelGatewayRouting?: any;
|
|
597
597
|
zaiToolStream?: boolean | undefined;
|
|
598
598
|
supportsStrictMode?: boolean | undefined;
|
|
599
599
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -622,8 +622,8 @@ export declare const ModelSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
622
622
|
requiresThinkingAsText?: boolean | undefined;
|
|
623
623
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
624
624
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
625
|
-
openRouterRouting?:
|
|
626
|
-
vercelGatewayRouting?:
|
|
625
|
+
openRouterRouting?: any;
|
|
626
|
+
vercelGatewayRouting?: any;
|
|
627
627
|
zaiToolStream?: boolean | undefined;
|
|
628
628
|
supportsStrictMode?: boolean | undefined;
|
|
629
629
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -669,8 +669,8 @@ export declare const ModelSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
669
669
|
requiresThinkingAsText?: boolean | undefined;
|
|
670
670
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
671
671
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
672
|
-
openRouterRouting?:
|
|
673
|
-
vercelGatewayRouting?:
|
|
672
|
+
openRouterRouting?: any;
|
|
673
|
+
vercelGatewayRouting?: any;
|
|
674
674
|
zaiToolStream?: boolean | undefined;
|
|
675
675
|
supportsStrictMode?: boolean | undefined;
|
|
676
676
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -716,8 +716,8 @@ export declare const ModelSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
716
716
|
requiresThinkingAsText?: boolean | undefined;
|
|
717
717
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
718
718
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
719
|
-
openRouterRouting?:
|
|
720
|
-
vercelGatewayRouting?:
|
|
719
|
+
openRouterRouting?: any;
|
|
720
|
+
vercelGatewayRouting?: any;
|
|
721
721
|
zaiToolStream?: boolean | undefined;
|
|
722
722
|
supportsStrictMode?: boolean | undefined;
|
|
723
723
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -751,7 +751,7 @@ export declare const ModelConfigDefine: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
751
751
|
readonly provider: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "default">, v.TitleAction<string, "厂商">, v.DescriptionAction<string, "模型提供商,如 openai / anthropic / llama">]>;
|
|
752
752
|
readonly baseUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "基础 URL">, v.DescriptionAction<string, "API 请求的基础地址">]>;
|
|
753
753
|
readonly reasoning: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BooleanSchema<undefined>, false>, v.TitleAction<boolean, "支持推理">, v.DescriptionAction<boolean, "该模型是否支持思考/推理模式">]>;
|
|
754
|
-
readonly input: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["text", "image"], undefined>, v.TitleAction<"text" | "image", "输入类型">, v.DescriptionAction<"text" | "image", "支持的输入模态类型">]>, undefined>, v.TitleAction<("text" | "image")[], "输入类型列表">, v.DescriptionAction<("text" | "image")[], "该模型支持的用户输入类型,如 text 文本或 image 图片">]>, readonly ["text", "image"]>, v.TitleAction<("text" | "image")[], "输入类型">, v.DescriptionAction<("text" | "image")[], "支持的输入模态类型">]>;
|
|
754
|
+
readonly input: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["text", "image"], undefined>, v.TitleAction<"text" | "image", "输入类型">, v.DescriptionAction<"text" | "image", "支持的输入模态类型">]>, undefined>, v.TitleAction<("text" | "image")[], "输入类型列表">, v.DescriptionAction<("text" | "image")[], "该模型支持的用户输入类型,如 text 文本或 image 图片">]>, readonly ["text", "image"]>, import("@piying/valibot-visit").GroupControlAction<("text" | "image")[]>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", ("text" | "image")[], import("@piying/view-angular-core").AnyCoreSchemaHandle>, v.TitleAction<("text" | "image")[], "输入类型">, v.DescriptionAction<("text" | "image")[], "支持的输入模态类型">]>;
|
|
755
755
|
readonly cost: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
756
756
|
readonly input: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TitleAction<number, "输入单价">, v.DescriptionAction<number, "每 token 输入费用">]>;
|
|
757
757
|
readonly output: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TitleAction<number, "输出单价">, v.DescriptionAction<number, "每 token 输出费用">]>;
|
|
@@ -807,11 +807,11 @@ export declare const ModelConfigDefine: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
807
807
|
readonly requiresThinkingAsText: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "思考转文本">, v.DescriptionAction<boolean, "是否将思考过程作为普通文本发送">]>, undefined>;
|
|
808
808
|
readonly requiresReasoningContentOnAssistantMessages: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "推理内容在助手消息中">, v.DescriptionAction<boolean, "是否在助手消息中包含推理内容">]>, undefined>;
|
|
809
809
|
readonly thinkingFormat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["openai", "openrouter", "deepseek", "together", "zai", "qwen", "qwen-chat-template", "string-thinking", "ant-ling"], undefined>, v.TitleAction<"deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking", "思考格式">, v.DescriptionAction<"deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking", "指定 thinking 标签的序列化格式">]>, undefined>;
|
|
810
|
-
readonly openRouterRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
811
|
-
readonly vercelGatewayRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
810
|
+
readonly openRouterRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.AnySchema, v.TitleAction<any, "OpenRouter 路由">, v.DescriptionAction<any, "自定义 OpenRouter 的路由配置">, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", any, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, undefined>;
|
|
811
|
+
readonly vercelGatewayRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.AnySchema, v.TitleAction<any, "Vercel Gateway 路由">, v.DescriptionAction<any, "自定义 Vercel AI Gateway 的路由配置">, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", any, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, undefined>;
|
|
812
812
|
readonly zaiToolStream: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "ZAI 工具流式">, v.DescriptionAction<boolean, "是否启用 ZAI 平台工具调用的流式输出">]>, undefined>;
|
|
813
813
|
readonly supportsStrictMode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "严格模式">, v.DescriptionAction<boolean, "是否支持工具的 JSON Schema 严格校验">]>, undefined>;
|
|
814
|
-
readonly cacheControlFormat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.LiteralSchema<"anthropic", undefined>, v.TitleAction<"anthropic", "缓存控制格式">, v.DescriptionAction<"anthropic", "指定缓存控制的语法格式">]>, undefined>;
|
|
814
|
+
readonly cacheControlFormat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.LiteralSchema<"anthropic", undefined>, v.TitleAction<"anthropic", "缓存控制格式">, v.DescriptionAction<"anthropic", "指定缓存控制的语法格式">, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", "anthropic", import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, undefined>;
|
|
815
815
|
readonly sendSessionAffinityHeaders: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "发送会话亲和标头">, v.DescriptionAction<boolean, "是否在请求中携带会话亲和性标头">]>, undefined>;
|
|
816
816
|
readonly supportsLongCacheRetention: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.TitleAction<boolean, "长期缓存保留">, v.DescriptionAction<boolean, "是否支持长期缓存保留策略">]>, undefined>;
|
|
817
817
|
}, undefined>, undefined>, v.TitleAction<{
|
|
@@ -825,8 +825,8 @@ export declare const ModelConfigDefine: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
825
825
|
requiresThinkingAsText?: boolean | undefined;
|
|
826
826
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
827
827
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
828
|
-
openRouterRouting?:
|
|
829
|
-
vercelGatewayRouting?:
|
|
828
|
+
openRouterRouting?: any;
|
|
829
|
+
vercelGatewayRouting?: any;
|
|
830
830
|
zaiToolStream?: boolean | undefined;
|
|
831
831
|
supportsStrictMode?: boolean | undefined;
|
|
832
832
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -843,8 +843,8 @@ export declare const ModelConfigDefine: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
843
843
|
requiresThinkingAsText?: boolean | undefined;
|
|
844
844
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
845
845
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
846
|
-
openRouterRouting?:
|
|
847
|
-
vercelGatewayRouting?:
|
|
846
|
+
openRouterRouting?: any;
|
|
847
|
+
vercelGatewayRouting?: any;
|
|
848
848
|
zaiToolStream?: boolean | undefined;
|
|
849
849
|
supportsStrictMode?: boolean | undefined;
|
|
850
850
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -861,8 +861,8 @@ export declare const ModelConfigDefine: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
861
861
|
requiresThinkingAsText?: boolean | undefined;
|
|
862
862
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
863
863
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
864
|
-
openRouterRouting?:
|
|
865
|
-
vercelGatewayRouting?:
|
|
864
|
+
openRouterRouting?: any;
|
|
865
|
+
vercelGatewayRouting?: any;
|
|
866
866
|
zaiToolStream?: boolean | undefined;
|
|
867
867
|
supportsStrictMode?: boolean | undefined;
|
|
868
868
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -927,8 +927,8 @@ export declare const ModelConfigDefine: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
927
927
|
requiresThinkingAsText?: boolean | undefined;
|
|
928
928
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
929
929
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
930
|
-
openRouterRouting?:
|
|
931
|
-
vercelGatewayRouting?:
|
|
930
|
+
openRouterRouting?: any;
|
|
931
|
+
vercelGatewayRouting?: any;
|
|
932
932
|
zaiToolStream?: boolean | undefined;
|
|
933
933
|
supportsStrictMode?: boolean | undefined;
|
|
934
934
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -957,8 +957,8 @@ export declare const ModelConfigDefine: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
957
957
|
requiresThinkingAsText?: boolean | undefined;
|
|
958
958
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
959
959
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
960
|
-
openRouterRouting?:
|
|
961
|
-
vercelGatewayRouting?:
|
|
960
|
+
openRouterRouting?: any;
|
|
961
|
+
vercelGatewayRouting?: any;
|
|
962
962
|
zaiToolStream?: boolean | undefined;
|
|
963
963
|
supportsStrictMode?: boolean | undefined;
|
|
964
964
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -987,8 +987,8 @@ export declare const ModelConfigDefine: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
987
987
|
requiresThinkingAsText?: boolean | undefined;
|
|
988
988
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
989
989
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
990
|
-
openRouterRouting?:
|
|
991
|
-
vercelGatewayRouting?:
|
|
990
|
+
openRouterRouting?: any;
|
|
991
|
+
vercelGatewayRouting?: any;
|
|
992
992
|
zaiToolStream?: boolean | undefined;
|
|
993
993
|
supportsStrictMode?: boolean | undefined;
|
|
994
994
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -1019,8 +1019,8 @@ export declare const ModelConfigDefine: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
1019
1019
|
requiresThinkingAsText?: boolean | undefined;
|
|
1020
1020
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
1021
1021
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
1022
|
-
openRouterRouting?:
|
|
1023
|
-
vercelGatewayRouting?:
|
|
1022
|
+
openRouterRouting?: any;
|
|
1023
|
+
vercelGatewayRouting?: any;
|
|
1024
1024
|
zaiToolStream?: boolean | undefined;
|
|
1025
1025
|
supportsStrictMode?: boolean | undefined;
|
|
1026
1026
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -1049,8 +1049,8 @@ export declare const ModelConfigDefine: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
1049
1049
|
requiresThinkingAsText?: boolean | undefined;
|
|
1050
1050
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
1051
1051
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
1052
|
-
openRouterRouting?:
|
|
1053
|
-
vercelGatewayRouting?:
|
|
1052
|
+
openRouterRouting?: any;
|
|
1053
|
+
vercelGatewayRouting?: any;
|
|
1054
1054
|
zaiToolStream?: boolean | undefined;
|
|
1055
1055
|
supportsStrictMode?: boolean | undefined;
|
|
1056
1056
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -1096,8 +1096,8 @@ export declare const ModelConfigDefine: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
1096
1096
|
requiresThinkingAsText?: boolean | undefined;
|
|
1097
1097
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
1098
1098
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
1099
|
-
openRouterRouting?:
|
|
1100
|
-
vercelGatewayRouting?:
|
|
1099
|
+
openRouterRouting?: any;
|
|
1100
|
+
vercelGatewayRouting?: any;
|
|
1101
1101
|
zaiToolStream?: boolean | undefined;
|
|
1102
1102
|
supportsStrictMode?: boolean | undefined;
|
|
1103
1103
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -1143,8 +1143,8 @@ export declare const ModelConfigDefine: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
1143
1143
|
requiresThinkingAsText?: boolean | undefined;
|
|
1144
1144
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
1145
1145
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
1146
|
-
openRouterRouting?:
|
|
1147
|
-
vercelGatewayRouting?:
|
|
1146
|
+
openRouterRouting?: any;
|
|
1147
|
+
vercelGatewayRouting?: any;
|
|
1148
1148
|
zaiToolStream?: boolean | undefined;
|
|
1149
1149
|
supportsStrictMode?: boolean | undefined;
|
|
1150
1150
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -1190,8 +1190,8 @@ export declare const ModelConfigDefine: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
1190
1190
|
requiresThinkingAsText?: boolean | undefined;
|
|
1191
1191
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
1192
1192
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
1193
|
-
openRouterRouting?:
|
|
1194
|
-
vercelGatewayRouting?:
|
|
1193
|
+
openRouterRouting?: any;
|
|
1194
|
+
vercelGatewayRouting?: any;
|
|
1195
1195
|
zaiToolStream?: boolean | undefined;
|
|
1196
1196
|
supportsStrictMode?: boolean | undefined;
|
|
1197
1197
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -1243,8 +1243,8 @@ export declare const ModelConfigDefine: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
1243
1243
|
requiresThinkingAsText?: boolean | undefined;
|
|
1244
1244
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
1245
1245
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
1246
|
-
openRouterRouting?:
|
|
1247
|
-
vercelGatewayRouting?:
|
|
1246
|
+
openRouterRouting?: any;
|
|
1247
|
+
vercelGatewayRouting?: any;
|
|
1248
1248
|
zaiToolStream?: boolean | undefined;
|
|
1249
1249
|
supportsStrictMode?: boolean | undefined;
|
|
1250
1250
|
cacheControlFormat?: "anthropic" | undefined;
|
|
@@ -1296,8 +1296,8 @@ export declare const ModelConfigDefine: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
1296
1296
|
requiresThinkingAsText?: boolean | undefined;
|
|
1297
1297
|
requiresReasoningContentOnAssistantMessages?: boolean | undefined;
|
|
1298
1298
|
thinkingFormat?: "deepseek" | "openai" | "openrouter" | "zai" | "together" | "ant-ling" | "qwen" | "qwen-chat-template" | "string-thinking" | undefined;
|
|
1299
|
-
openRouterRouting?:
|
|
1300
|
-
vercelGatewayRouting?:
|
|
1299
|
+
openRouterRouting?: any;
|
|
1300
|
+
vercelGatewayRouting?: any;
|
|
1301
1301
|
zaiToolStream?: boolean | undefined;
|
|
1302
1302
|
supportsStrictMode?: boolean | undefined;
|
|
1303
1303
|
cacheControlFormat?: "anthropic" | undefined;
|
package/define/index.js
CHANGED
|
@@ -280,16 +280,18 @@ var OpenAICompletionsCompatSchema = v3.pipe(
|
|
|
280
280
|
),
|
|
281
281
|
openRouterRouting: v3.optional(
|
|
282
282
|
v3.pipe(
|
|
283
|
-
v3.
|
|
283
|
+
v3.any(),
|
|
284
284
|
v3.title("OpenRouter 路由"),
|
|
285
|
-
v3.description("自定义 OpenRouter 的路由配置")
|
|
285
|
+
v3.description("自定义 OpenRouter 的路由配置"),
|
|
286
|
+
(0, import_view_angular_core.renderConfig)({ hidden: true })
|
|
286
287
|
)
|
|
287
288
|
),
|
|
288
289
|
vercelGatewayRouting: v3.optional(
|
|
289
290
|
v3.pipe(
|
|
290
|
-
v3.
|
|
291
|
+
v3.any(),
|
|
291
292
|
v3.title("Vercel Gateway 路由"),
|
|
292
|
-
v3.description("自定义 Vercel AI Gateway 的路由配置")
|
|
293
|
+
v3.description("自定义 Vercel AI Gateway 的路由配置"),
|
|
294
|
+
(0, import_view_angular_core.renderConfig)({ hidden: true })
|
|
293
295
|
)
|
|
294
296
|
),
|
|
295
297
|
zaiToolStream: v3.optional(
|
|
@@ -310,7 +312,8 @@ var OpenAICompletionsCompatSchema = v3.pipe(
|
|
|
310
312
|
v3.pipe(
|
|
311
313
|
v3.literal("anthropic"),
|
|
312
314
|
v3.title("缓存控制格式"),
|
|
313
|
-
v3.description("指定缓存控制的语法格式")
|
|
315
|
+
v3.description("指定缓存控制的语法格式"),
|
|
316
|
+
(0, import_view_angular_core.renderConfig)({ hidden: true })
|
|
314
317
|
)
|
|
315
318
|
),
|
|
316
319
|
sendSessionAffinityHeaders: v3.optional(
|
|
@@ -543,6 +546,8 @@ var ModelSchema = v3.pipe(
|
|
|
543
546
|
// ),
|
|
544
547
|
input: v3.pipe(
|
|
545
548
|
v3.optional(InputSchema, ["text", "image"]),
|
|
549
|
+
(0, import_view_angular_core.asControl)(),
|
|
550
|
+
import_view_angular_core.actions.inputs.set({ multiple: true }),
|
|
546
551
|
v3.title("输入类型"),
|
|
547
552
|
v3.description("支持的输入模态类型")
|
|
548
553
|
),
|