@shenghuabi/openai 1.2.6 → 1.2.9

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.
@@ -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.UnknownSchema, v.TitleAction<unknown, "OpenRouter 路由">, v.DescriptionAction<unknown, "自定义 OpenRouter 的路由配置">]>, undefined>;
22
- readonly vercelGatewayRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnknownSchema, v.TitleAction<unknown, "Vercel Gateway 路由">, v.DescriptionAction<unknown, "自定义 Vercel AI Gateway 的路由配置">]>, undefined>;
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?: unknown;
40
- vercelGatewayRouting?: unknown;
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?: unknown;
58
- vercelGatewayRouting?: unknown;
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.UnknownSchema, v.TitleAction<unknown, "OpenRouter 路由">, v.DescriptionAction<unknown, "自定义 OpenRouter 的路由配置">]>, undefined>;
117
- readonly vercelGatewayRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnknownSchema, v.TitleAction<unknown, "Vercel Gateway 路由">, v.DescriptionAction<unknown, "自定义 Vercel AI Gateway 的路由配置">]>, undefined>;
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?: unknown;
135
- vercelGatewayRouting?: unknown;
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?: unknown;
153
- vercelGatewayRouting?: unknown;
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?: unknown;
171
- vercelGatewayRouting?: unknown;
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?: unknown;
237
- vercelGatewayRouting?: unknown;
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?: unknown;
267
- vercelGatewayRouting?: unknown;
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?: unknown;
297
- vercelGatewayRouting?: unknown;
296
+ openRouterRouting?: any;
297
+ vercelGatewayRouting?: any;
298
298
  zaiToolStream?: boolean | undefined;
299
299
  supportsStrictMode?: boolean | undefined;
300
300
  cacheControlFormat?: "anthropic" | undefined;
@@ -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.UnknownSchema, v.TitleAction<unknown, "OpenRouter 路由">, v.DescriptionAction<unknown, "自定义 OpenRouter 的路由配置">]>, undefined>;
384
- readonly vercelGatewayRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnknownSchema, v.TitleAction<unknown, "Vercel Gateway 路由">, v.DescriptionAction<unknown, "自定义 Vercel AI Gateway 的路由配置">]>, undefined>;
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?: unknown;
402
- vercelGatewayRouting?: unknown;
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?: unknown;
420
- vercelGatewayRouting?: unknown;
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?: unknown;
438
- vercelGatewayRouting?: unknown;
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?: unknown;
504
- vercelGatewayRouting?: unknown;
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?: unknown;
534
- vercelGatewayRouting?: unknown;
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?: unknown;
564
- vercelGatewayRouting?: unknown;
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?: unknown;
596
- vercelGatewayRouting?: unknown;
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?: unknown;
626
- vercelGatewayRouting?: unknown;
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?: unknown;
673
- vercelGatewayRouting?: unknown;
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?: unknown;
720
- vercelGatewayRouting?: unknown;
719
+ openRouterRouting?: any;
720
+ vercelGatewayRouting?: any;
721
721
  zaiToolStream?: boolean | undefined;
722
722
  supportsStrictMode?: boolean | undefined;
723
723
  cacheControlFormat?: "anthropic" | undefined;
@@ -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.UnknownSchema, v.TitleAction<unknown, "OpenRouter 路由">, v.DescriptionAction<unknown, "自定义 OpenRouter 的路由配置">]>, undefined>;
811
- readonly vercelGatewayRouting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnknownSchema, v.TitleAction<unknown, "Vercel Gateway 路由">, v.DescriptionAction<unknown, "自定义 Vercel AI Gateway 的路由配置">]>, undefined>;
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?: unknown;
829
- vercelGatewayRouting?: unknown;
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?: unknown;
847
- vercelGatewayRouting?: unknown;
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?: unknown;
865
- vercelGatewayRouting?: unknown;
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?: unknown;
931
- vercelGatewayRouting?: unknown;
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?: unknown;
961
- vercelGatewayRouting?: unknown;
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?: unknown;
991
- vercelGatewayRouting?: unknown;
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?: unknown;
1023
- vercelGatewayRouting?: unknown;
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?: unknown;
1053
- vercelGatewayRouting?: unknown;
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?: unknown;
1100
- vercelGatewayRouting?: unknown;
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?: unknown;
1147
- vercelGatewayRouting?: unknown;
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?: unknown;
1194
- vercelGatewayRouting?: unknown;
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?: unknown;
1247
- vercelGatewayRouting?: unknown;
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?: unknown;
1300
- vercelGatewayRouting?: unknown;
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.unknown(),
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.unknown(),
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(
@@ -425,7 +428,7 @@ var CompatSchema = v3.pipe(
425
428
  (0, import_view_angular_core.hideWhen)({
426
429
  disabled: true,
427
430
  listen(fn, field) {
428
- return fn({ list: [["#provider"]] }).pipe(
431
+ return fn({ list: [["@provider"]] }).pipe(
429
432
  (0, import_rxjs.map)((item) => item.list[0] !== "openai-completions")
430
433
  );
431
434
  }
@@ -436,7 +439,7 @@ var CompatSchema = v3.pipe(
436
439
  (0, import_view_angular_core.hideWhen)({
437
440
  disabled: true,
438
441
  listen(fn, field) {
439
- return fn({ list: [["#provider"]] }).pipe(
442
+ return fn({ list: [["@provider"]] }).pipe(
440
443
  (0, import_rxjs.map)((item) => item.list[0] !== "openai-responses")
441
444
  );
442
445
  }
@@ -447,7 +450,7 @@ var CompatSchema = v3.pipe(
447
450
  (0, import_view_angular_core.hideWhen)({
448
451
  disabled: true,
449
452
  listen(fn, field) {
450
- return fn({ list: [["#provider"]] }).pipe(
453
+ return fn({ list: [["@provider"]] }).pipe(
451
454
  (0, import_rxjs.map)((item) => item.list[0] !== "anthropic-messages")
452
455
  );
453
456
  }