@shenghuabi/openai 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1433 @@
1
+ import * as v from 'valibot';
2
+ export declare const ChatItemDefine: v.SchemaWithPipe<readonly [v.IntersectSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
3
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
4
+ readonly vendor: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<("deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude")[], undefined>, "openai">, v.DescriptionAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", "大语言模型提供的厂商">, v.TitleAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", "对话厂商">, v.MetadataAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", {
5
+ readonly enumOptions: {
6
+ label: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
7
+ description: string;
8
+ }[];
9
+ }>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
10
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
11
+ name: string;
12
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
13
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
14
+ readonly baseURL: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "http://127.0.0.1:11434/v1">, v.TitleAction<string, "地址">, v.DescriptionAction<string, "openai兼容接口">]>;
15
+ readonly model: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "qwen3:8b">, v.TitleAction<string, "模型">, v.DescriptionAction<string, "## 模型名\n### ollama模型推荐\n- `qwen3:8b`\n- `qwen3:14b`,`deepseek-r1:7b`,`deepseek-r1:14b`\n### 图片对话模型\n- `minicpm-v:8b`">]>;
16
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
17
+ baseURL: string;
18
+ model: string;
19
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.ObjectSchema<{
20
+ readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">]>;
21
+ }, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
22
+ readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>]>;
23
+ readonly top_p: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 0.8>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 10, undefined>, v.DescriptionAction<number, "核采样(nucleus sampling)是温度采样的另一种替代方法,模型会考虑累积概率质量达到 top_p 的 token。例如,当 top_p 设为 0.1 时,仅考虑累积概率前 10% 的 token。\n\n我们通常建议调整 top_p 或温度参数,但不要同时调整两者。">]>;
24
+ readonly temperature: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2, undefined>]>, 0.1>, v.DescriptionAction<number, "采样温度应设置在0到2之间。较高的值(如0.8)会使输出更随机,而较低的值(如0.2)则会使输出更集中且确定。我们通常建议仅调整此参数或top_p,而不同时调整两者。">]>;
25
+ readonly frequency_penalty: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -2, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "取值范围为-2.0至2.0。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">]>;
26
+ readonly presence_penalty: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -2, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "数值介于-2.0至2.0之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">]>;
27
+ readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">]>;
28
+ readonly stop: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>]>, undefined>, v.MaxLengthAction<string[], 4, undefined>]>, undefined>, v.DescriptionAction<string[] | undefined, "最多可指定4个停止序列,API将在生成到该序列时停止,返回的文本中不包含该停止序列。">, import("@piying/valibot-visit").GroupControlAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
29
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
30
+ max_tokens: number;
31
+ top_p: number;
32
+ temperature: number;
33
+ frequency_penalty?: number | undefined;
34
+ presence_penalty?: number | undefined;
35
+ seed?: number | undefined;
36
+ stop?: string[] | undefined;
37
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
38
+ name: string;
39
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
40
+ } & {
41
+ baseURL: string;
42
+ model: string;
43
+ } & {
44
+ apiKey?: string | undefined;
45
+ } & {
46
+ max_tokens: number;
47
+ top_p: number;
48
+ temperature: number;
49
+ frequency_penalty?: number | undefined;
50
+ presence_penalty?: number | undefined;
51
+ seed?: number | undefined;
52
+ stop?: string[] | undefined;
53
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
54
+ name: string;
55
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
56
+ } & {
57
+ baseURL: string;
58
+ model: string;
59
+ } & {
60
+ apiKey?: string | undefined;
61
+ } & {
62
+ max_tokens: number;
63
+ top_p: number;
64
+ temperature: number;
65
+ frequency_penalty?: number | undefined;
66
+ presence_penalty?: number | undefined;
67
+ seed?: number | undefined;
68
+ stop?: string[] | undefined;
69
+ }>]>;
70
+ export declare const VendorOptionsDefine: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.IntersectSchema<[v.ObjectSchema<{
71
+ /** @internal */
72
+ readonly extraOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.IntersectSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
73
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
74
+ readonly vendor: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<("deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude")[], undefined>, "openai">, v.DescriptionAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", "大语言模型提供的厂商">, v.TitleAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", "对话厂商">, v.MetadataAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", {
75
+ readonly enumOptions: {
76
+ label: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
77
+ description: string;
78
+ }[];
79
+ }>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
80
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
81
+ name: string;
82
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
83
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
84
+ readonly baseURL: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "http://127.0.0.1:11434/v1">, v.TitleAction<string, "地址">, v.DescriptionAction<string, "openai兼容接口">]>;
85
+ readonly model: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "qwen3:8b">, v.TitleAction<string, "模型">, v.DescriptionAction<string, "## 模型名\n### ollama模型推荐\n- `qwen3:8b`\n- `qwen3:14b`,`deepseek-r1:7b`,`deepseek-r1:14b`\n### 图片对话模型\n- `minicpm-v:8b`">]>;
86
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
87
+ baseURL: string;
88
+ model: string;
89
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.ObjectSchema<{
90
+ readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">]>;
91
+ }, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
92
+ readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>]>;
93
+ readonly top_p: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 0.8>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 10, undefined>, v.DescriptionAction<number, "核采样(nucleus sampling)是温度采样的另一种替代方法,模型会考虑累积概率质量达到 top_p 的 token。例如,当 top_p 设为 0.1 时,仅考虑累积概率前 10% 的 token。\n\n我们通常建议调整 top_p 或温度参数,但不要同时调整两者。">]>;
94
+ readonly temperature: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2, undefined>]>, 0.1>, v.DescriptionAction<number, "采样温度应设置在0到2之间。较高的值(如0.8)会使输出更随机,而较低的值(如0.2)则会使输出更集中且确定。我们通常建议仅调整此参数或top_p,而不同时调整两者。">]>;
95
+ readonly frequency_penalty: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -2, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "取值范围为-2.0至2.0。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">]>;
96
+ readonly presence_penalty: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -2, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "数值介于-2.0至2.0之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">]>;
97
+ readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">]>;
98
+ readonly stop: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>]>, undefined>, v.MaxLengthAction<string[], 4, undefined>]>, undefined>, v.DescriptionAction<string[] | undefined, "最多可指定4个停止序列,API将在生成到该序列时停止,返回的文本中不包含该停止序列。">, import("@piying/valibot-visit").GroupControlAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
99
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
100
+ max_tokens: number;
101
+ top_p: number;
102
+ temperature: number;
103
+ frequency_penalty?: number | undefined;
104
+ presence_penalty?: number | undefined;
105
+ seed?: number | undefined;
106
+ stop?: string[] | undefined;
107
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
108
+ name: string;
109
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
110
+ } & {
111
+ baseURL: string;
112
+ model: string;
113
+ } & {
114
+ apiKey?: string | undefined;
115
+ } & {
116
+ max_tokens: number;
117
+ top_p: number;
118
+ temperature: number;
119
+ frequency_penalty?: number | undefined;
120
+ presence_penalty?: number | undefined;
121
+ seed?: number | undefined;
122
+ stop?: string[] | undefined;
123
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
124
+ name: string;
125
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
126
+ } & {
127
+ baseURL: string;
128
+ model: string;
129
+ } & {
130
+ apiKey?: string | undefined;
131
+ } & {
132
+ max_tokens: number;
133
+ top_p: number;
134
+ temperature: number;
135
+ frequency_penalty?: number | undefined;
136
+ presence_penalty?: number | undefined;
137
+ seed?: number | undefined;
138
+ stop?: string[] | undefined;
139
+ }>]>, undefined>, v.DescriptionAction<({
140
+ name: string;
141
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
142
+ } & {
143
+ baseURL: string;
144
+ model: string;
145
+ } & {
146
+ apiKey?: string | undefined;
147
+ } & {
148
+ max_tokens: number;
149
+ top_p: number;
150
+ temperature: number;
151
+ frequency_penalty?: number | undefined;
152
+ presence_penalty?: number | undefined;
153
+ seed?: number | undefined;
154
+ stop?: string[] | undefined;
155
+ }) | undefined, "附加配置">]>;
156
+ }, undefined>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
157
+ extraOptions?: ({
158
+ name: string;
159
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
160
+ } & {
161
+ baseURL: string;
162
+ model: string;
163
+ } & {
164
+ apiKey?: string | undefined;
165
+ } & {
166
+ max_tokens: number;
167
+ top_p: number;
168
+ temperature: number;
169
+ frequency_penalty?: number | undefined;
170
+ presence_penalty?: number | undefined;
171
+ seed?: number | undefined;
172
+ stop?: string[] | undefined;
173
+ }) | undefined;
174
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
175
+ extraOptions?: ({
176
+ name: string;
177
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
178
+ } & {
179
+ baseURL: string;
180
+ model: string;
181
+ } & {
182
+ apiKey?: string | undefined;
183
+ } & {
184
+ max_tokens: number;
185
+ top_p: number;
186
+ temperature: number;
187
+ frequency_penalty?: number | undefined;
188
+ presence_penalty?: number | undefined;
189
+ seed?: number | undefined;
190
+ stop?: string[] | undefined;
191
+ }) | undefined;
192
+ }>]>, undefined>, undefined>, v.DescriptionAction<{
193
+ [x: string]: {
194
+ extraOptions?: ({
195
+ name: string;
196
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
197
+ } & {
198
+ baseURL: string;
199
+ model: string;
200
+ } & {
201
+ apiKey?: string | undefined;
202
+ } & {
203
+ max_tokens: number;
204
+ top_p: number;
205
+ temperature: number;
206
+ frequency_penalty?: number | undefined;
207
+ presence_penalty?: number | undefined;
208
+ seed?: number | undefined;
209
+ stop?: string[] | undefined;
210
+ }) | undefined;
211
+ };
212
+ } | undefined, "## 通用参数\n- `extraOptions`字段用于覆盖默认字段\n```json\n{\"厂商名(与vendor字段相同)\":{ \"extraOptions\":{\"temperature\":0.1,\"topP\":0.8,\"maxTokens\":8192,\"baseURL\":\"http://127.0.0.1:11434/v1\",\"apiKey\":\" \"} }\n```\n">, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
213
+ [x: string]: {
214
+ extraOptions?: ({
215
+ name: string;
216
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
217
+ } & {
218
+ baseURL: string;
219
+ model: string;
220
+ } & {
221
+ apiKey?: string | undefined;
222
+ } & {
223
+ max_tokens: number;
224
+ top_p: number;
225
+ temperature: number;
226
+ frequency_penalty?: number | undefined;
227
+ presence_penalty?: number | undefined;
228
+ seed?: number | undefined;
229
+ stop?: string[] | undefined;
230
+ }) | undefined;
231
+ };
232
+ } | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
233
+ [x: string]: {
234
+ extraOptions?: ({
235
+ name: string;
236
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
237
+ } & {
238
+ baseURL: string;
239
+ model: string;
240
+ } & {
241
+ apiKey?: string | undefined;
242
+ } & {
243
+ max_tokens: number;
244
+ top_p: number;
245
+ temperature: number;
246
+ frequency_penalty?: number | undefined;
247
+ presence_penalty?: number | undefined;
248
+ seed?: number | undefined;
249
+ stop?: string[] | undefined;
250
+ }) | undefined;
251
+ };
252
+ } | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, v.TitleAction<{
253
+ [x: string]: {
254
+ extraOptions?: ({
255
+ name: string;
256
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
257
+ } & {
258
+ baseURL: string;
259
+ model: string;
260
+ } & {
261
+ apiKey?: string | undefined;
262
+ } & {
263
+ max_tokens: number;
264
+ top_p: number;
265
+ temperature: number;
266
+ frequency_penalty?: number | undefined;
267
+ presence_penalty?: number | undefined;
268
+ seed?: number | undefined;
269
+ stop?: string[] | undefined;
270
+ }) | undefined;
271
+ };
272
+ } | undefined, "厂商额外配置">]>;
273
+ export declare const ChatParamsItemDefine: v.SchemaWithPipe<readonly [v.IntersectSchema<[v.SchemaWithPipe<readonly [v.IntersectSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
274
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
275
+ readonly vendor: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<("deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude")[], undefined>, "openai">, v.DescriptionAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", "大语言模型提供的厂商">, v.TitleAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", "对话厂商">, v.MetadataAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", {
276
+ readonly enumOptions: {
277
+ label: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
278
+ description: string;
279
+ }[];
280
+ }>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
281
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
282
+ name: string;
283
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
284
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
285
+ readonly baseURL: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "http://127.0.0.1:11434/v1">, v.TitleAction<string, "地址">, v.DescriptionAction<string, "openai兼容接口">]>;
286
+ readonly model: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "qwen3:8b">, v.TitleAction<string, "模型">, v.DescriptionAction<string, "## 模型名\n### ollama模型推荐\n- `qwen3:8b`\n- `qwen3:14b`,`deepseek-r1:7b`,`deepseek-r1:14b`\n### 图片对话模型\n- `minicpm-v:8b`">]>;
287
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
288
+ baseURL: string;
289
+ model: string;
290
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.ObjectSchema<{
291
+ readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">]>;
292
+ }, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
293
+ readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>]>;
294
+ readonly top_p: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 0.8>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 10, undefined>, v.DescriptionAction<number, "核采样(nucleus sampling)是温度采样的另一种替代方法,模型会考虑累积概率质量达到 top_p 的 token。例如,当 top_p 设为 0.1 时,仅考虑累积概率前 10% 的 token。\n\n我们通常建议调整 top_p 或温度参数,但不要同时调整两者。">]>;
295
+ readonly temperature: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2, undefined>]>, 0.1>, v.DescriptionAction<number, "采样温度应设置在0到2之间。较高的值(如0.8)会使输出更随机,而较低的值(如0.2)则会使输出更集中且确定。我们通常建议仅调整此参数或top_p,而不同时调整两者。">]>;
296
+ readonly frequency_penalty: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -2, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "取值范围为-2.0至2.0。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">]>;
297
+ readonly presence_penalty: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -2, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "数值介于-2.0至2.0之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">]>;
298
+ readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">]>;
299
+ readonly stop: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>]>, undefined>, v.MaxLengthAction<string[], 4, undefined>]>, undefined>, v.DescriptionAction<string[] | undefined, "最多可指定4个停止序列,API将在生成到该序列时停止,返回的文本中不包含该停止序列。">, import("@piying/valibot-visit").GroupControlAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
300
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
301
+ max_tokens: number;
302
+ top_p: number;
303
+ temperature: number;
304
+ frequency_penalty?: number | undefined;
305
+ presence_penalty?: number | undefined;
306
+ seed?: number | undefined;
307
+ stop?: string[] | undefined;
308
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
309
+ name: string;
310
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
311
+ } & {
312
+ baseURL: string;
313
+ model: string;
314
+ } & {
315
+ apiKey?: string | undefined;
316
+ } & {
317
+ max_tokens: number;
318
+ top_p: number;
319
+ temperature: number;
320
+ frequency_penalty?: number | undefined;
321
+ presence_penalty?: number | undefined;
322
+ seed?: number | undefined;
323
+ stop?: string[] | undefined;
324
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
325
+ name: string;
326
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
327
+ } & {
328
+ baseURL: string;
329
+ model: string;
330
+ } & {
331
+ apiKey?: string | undefined;
332
+ } & {
333
+ max_tokens: number;
334
+ top_p: number;
335
+ temperature: number;
336
+ frequency_penalty?: number | undefined;
337
+ presence_penalty?: number | undefined;
338
+ seed?: number | undefined;
339
+ stop?: string[] | undefined;
340
+ }>]>, v.ObjectSchema<{
341
+ readonly vendorOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.IntersectSchema<[v.ObjectSchema<{
342
+ /** @internal */
343
+ readonly extraOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.IntersectSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
344
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
345
+ readonly vendor: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<("deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude")[], undefined>, "openai">, v.DescriptionAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", "大语言模型提供的厂商">, v.TitleAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", "对话厂商">, v.MetadataAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", {
346
+ readonly enumOptions: {
347
+ label: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
348
+ description: string;
349
+ }[];
350
+ }>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
351
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
352
+ name: string;
353
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
354
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
355
+ readonly baseURL: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "http://127.0.0.1:11434/v1">, v.TitleAction<string, "地址">, v.DescriptionAction<string, "openai兼容接口">]>;
356
+ readonly model: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "qwen3:8b">, v.TitleAction<string, "模型">, v.DescriptionAction<string, "## 模型名\n### ollama模型推荐\n- `qwen3:8b`\n- `qwen3:14b`,`deepseek-r1:7b`,`deepseek-r1:14b`\n### 图片对话模型\n- `minicpm-v:8b`">]>;
357
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
358
+ baseURL: string;
359
+ model: string;
360
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.ObjectSchema<{
361
+ readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">]>;
362
+ }, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
363
+ readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>]>;
364
+ readonly top_p: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 0.8>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 10, undefined>, v.DescriptionAction<number, "核采样(nucleus sampling)是温度采样的另一种替代方法,模型会考虑累积概率质量达到 top_p 的 token。例如,当 top_p 设为 0.1 时,仅考虑累积概率前 10% 的 token。\n\n我们通常建议调整 top_p 或温度参数,但不要同时调整两者。">]>;
365
+ readonly temperature: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2, undefined>]>, 0.1>, v.DescriptionAction<number, "采样温度应设置在0到2之间。较高的值(如0.8)会使输出更随机,而较低的值(如0.2)则会使输出更集中且确定。我们通常建议仅调整此参数或top_p,而不同时调整两者。">]>;
366
+ readonly frequency_penalty: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -2, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "取值范围为-2.0至2.0。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">]>;
367
+ readonly presence_penalty: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -2, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "数值介于-2.0至2.0之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">]>;
368
+ readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">]>;
369
+ readonly stop: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>]>, undefined>, v.MaxLengthAction<string[], 4, undefined>]>, undefined>, v.DescriptionAction<string[] | undefined, "最多可指定4个停止序列,API将在生成到该序列时停止,返回的文本中不包含该停止序列。">, import("@piying/valibot-visit").GroupControlAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
370
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
371
+ max_tokens: number;
372
+ top_p: number;
373
+ temperature: number;
374
+ frequency_penalty?: number | undefined;
375
+ presence_penalty?: number | undefined;
376
+ seed?: number | undefined;
377
+ stop?: string[] | undefined;
378
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
379
+ name: string;
380
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
381
+ } & {
382
+ baseURL: string;
383
+ model: string;
384
+ } & {
385
+ apiKey?: string | undefined;
386
+ } & {
387
+ max_tokens: number;
388
+ top_p: number;
389
+ temperature: number;
390
+ frequency_penalty?: number | undefined;
391
+ presence_penalty?: number | undefined;
392
+ seed?: number | undefined;
393
+ stop?: string[] | undefined;
394
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
395
+ name: string;
396
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
397
+ } & {
398
+ baseURL: string;
399
+ model: string;
400
+ } & {
401
+ apiKey?: string | undefined;
402
+ } & {
403
+ max_tokens: number;
404
+ top_p: number;
405
+ temperature: number;
406
+ frequency_penalty?: number | undefined;
407
+ presence_penalty?: number | undefined;
408
+ seed?: number | undefined;
409
+ stop?: string[] | undefined;
410
+ }>]>, undefined>, v.DescriptionAction<({
411
+ name: string;
412
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
413
+ } & {
414
+ baseURL: string;
415
+ model: string;
416
+ } & {
417
+ apiKey?: string | undefined;
418
+ } & {
419
+ max_tokens: number;
420
+ top_p: number;
421
+ temperature: number;
422
+ frequency_penalty?: number | undefined;
423
+ presence_penalty?: number | undefined;
424
+ seed?: number | undefined;
425
+ stop?: string[] | undefined;
426
+ }) | undefined, "附加配置">]>;
427
+ }, undefined>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
428
+ extraOptions?: ({
429
+ name: string;
430
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
431
+ } & {
432
+ baseURL: string;
433
+ model: string;
434
+ } & {
435
+ apiKey?: string | undefined;
436
+ } & {
437
+ max_tokens: number;
438
+ top_p: number;
439
+ temperature: number;
440
+ frequency_penalty?: number | undefined;
441
+ presence_penalty?: number | undefined;
442
+ seed?: number | undefined;
443
+ stop?: string[] | undefined;
444
+ }) | undefined;
445
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
446
+ extraOptions?: ({
447
+ name: string;
448
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
449
+ } & {
450
+ baseURL: string;
451
+ model: string;
452
+ } & {
453
+ apiKey?: string | undefined;
454
+ } & {
455
+ max_tokens: number;
456
+ top_p: number;
457
+ temperature: number;
458
+ frequency_penalty?: number | undefined;
459
+ presence_penalty?: number | undefined;
460
+ seed?: number | undefined;
461
+ stop?: string[] | undefined;
462
+ }) | undefined;
463
+ }>]>, undefined>, undefined>, v.DescriptionAction<{
464
+ [x: string]: {
465
+ extraOptions?: ({
466
+ name: string;
467
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
468
+ } & {
469
+ baseURL: string;
470
+ model: string;
471
+ } & {
472
+ apiKey?: string | undefined;
473
+ } & {
474
+ max_tokens: number;
475
+ top_p: number;
476
+ temperature: number;
477
+ frequency_penalty?: number | undefined;
478
+ presence_penalty?: number | undefined;
479
+ seed?: number | undefined;
480
+ stop?: string[] | undefined;
481
+ }) | undefined;
482
+ };
483
+ } | undefined, "## 通用参数\n- `extraOptions`字段用于覆盖默认字段\n```json\n{\"厂商名(与vendor字段相同)\":{ \"extraOptions\":{\"temperature\":0.1,\"topP\":0.8,\"maxTokens\":8192,\"baseURL\":\"http://127.0.0.1:11434/v1\",\"apiKey\":\" \"} }\n```\n">, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
484
+ [x: string]: {
485
+ extraOptions?: ({
486
+ name: string;
487
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
488
+ } & {
489
+ baseURL: string;
490
+ model: string;
491
+ } & {
492
+ apiKey?: string | undefined;
493
+ } & {
494
+ max_tokens: number;
495
+ top_p: number;
496
+ temperature: number;
497
+ frequency_penalty?: number | undefined;
498
+ presence_penalty?: number | undefined;
499
+ seed?: number | undefined;
500
+ stop?: string[] | undefined;
501
+ }) | undefined;
502
+ };
503
+ } | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
504
+ [x: string]: {
505
+ extraOptions?: ({
506
+ name: string;
507
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
508
+ } & {
509
+ baseURL: string;
510
+ model: string;
511
+ } & {
512
+ apiKey?: string | undefined;
513
+ } & {
514
+ max_tokens: number;
515
+ top_p: number;
516
+ temperature: number;
517
+ frequency_penalty?: number | undefined;
518
+ presence_penalty?: number | undefined;
519
+ seed?: number | undefined;
520
+ stop?: string[] | undefined;
521
+ }) | undefined;
522
+ };
523
+ } | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, v.TitleAction<{
524
+ [x: string]: {
525
+ extraOptions?: ({
526
+ name: string;
527
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
528
+ } & {
529
+ baseURL: string;
530
+ model: string;
531
+ } & {
532
+ apiKey?: string | undefined;
533
+ } & {
534
+ max_tokens: number;
535
+ top_p: number;
536
+ temperature: number;
537
+ frequency_penalty?: number | undefined;
538
+ presence_penalty?: number | undefined;
539
+ seed?: number | undefined;
540
+ stop?: string[] | undefined;
541
+ }) | undefined;
542
+ };
543
+ } | undefined, "厂商额外配置">]>;
544
+ }, undefined>], undefined>, import("@piying/valibot-visit").VirtualGroupAction<{
545
+ name: string;
546
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
547
+ } & {
548
+ baseURL: string;
549
+ model: string;
550
+ } & {
551
+ apiKey?: string | undefined;
552
+ } & {
553
+ max_tokens: number;
554
+ top_p: number;
555
+ temperature: number;
556
+ frequency_penalty?: number | undefined;
557
+ presence_penalty?: number | undefined;
558
+ seed?: number | undefined;
559
+ stop?: string[] | undefined;
560
+ } & {
561
+ vendorOptions?: {
562
+ [x: string]: {
563
+ extraOptions?: ({
564
+ name: string;
565
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
566
+ } & {
567
+ baseURL: string;
568
+ model: string;
569
+ } & {
570
+ apiKey?: string | undefined;
571
+ } & {
572
+ max_tokens: number;
573
+ top_p: number;
574
+ temperature: number;
575
+ frequency_penalty?: number | undefined;
576
+ presence_penalty?: number | undefined;
577
+ seed?: number | undefined;
578
+ stop?: string[] | undefined;
579
+ }) | undefined;
580
+ };
581
+ } | undefined;
582
+ }>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
583
+ name: string;
584
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
585
+ } & {
586
+ baseURL: string;
587
+ model: string;
588
+ } & {
589
+ apiKey?: string | undefined;
590
+ } & {
591
+ max_tokens: number;
592
+ top_p: number;
593
+ temperature: number;
594
+ frequency_penalty?: number | undefined;
595
+ presence_penalty?: number | undefined;
596
+ seed?: number | undefined;
597
+ stop?: string[] | undefined;
598
+ } & {
599
+ vendorOptions?: {
600
+ [x: string]: {
601
+ extraOptions?: ({
602
+ name: string;
603
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
604
+ } & {
605
+ baseURL: string;
606
+ model: string;
607
+ } & {
608
+ apiKey?: string | undefined;
609
+ } & {
610
+ max_tokens: number;
611
+ top_p: number;
612
+ temperature: number;
613
+ frequency_penalty?: number | undefined;
614
+ presence_penalty?: number | undefined;
615
+ seed?: number | undefined;
616
+ stop?: string[] | undefined;
617
+ }) | undefined;
618
+ };
619
+ } | undefined;
620
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
621
+ export declare const ChatParamsListDefine: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.IntersectSchema<[v.SchemaWithPipe<readonly [v.IntersectSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
622
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
623
+ readonly vendor: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<("deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude")[], undefined>, "openai">, v.DescriptionAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", "大语言模型提供的厂商">, v.TitleAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", "对话厂商">, v.MetadataAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", {
624
+ readonly enumOptions: {
625
+ label: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
626
+ description: string;
627
+ }[];
628
+ }>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
629
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
630
+ name: string;
631
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
632
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
633
+ readonly baseURL: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "http://127.0.0.1:11434/v1">, v.TitleAction<string, "地址">, v.DescriptionAction<string, "openai兼容接口">]>;
634
+ readonly model: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "qwen3:8b">, v.TitleAction<string, "模型">, v.DescriptionAction<string, "## 模型名\n### ollama模型推荐\n- `qwen3:8b`\n- `qwen3:14b`,`deepseek-r1:7b`,`deepseek-r1:14b`\n### 图片对话模型\n- `minicpm-v:8b`">]>;
635
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
636
+ baseURL: string;
637
+ model: string;
638
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.ObjectSchema<{
639
+ readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">]>;
640
+ }, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
641
+ readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>]>;
642
+ readonly top_p: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 0.8>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 10, undefined>, v.DescriptionAction<number, "核采样(nucleus sampling)是温度采样的另一种替代方法,模型会考虑累积概率质量达到 top_p 的 token。例如,当 top_p 设为 0.1 时,仅考虑累积概率前 10% 的 token。\n\n我们通常建议调整 top_p 或温度参数,但不要同时调整两者。">]>;
643
+ readonly temperature: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2, undefined>]>, 0.1>, v.DescriptionAction<number, "采样温度应设置在0到2之间。较高的值(如0.8)会使输出更随机,而较低的值(如0.2)则会使输出更集中且确定。我们通常建议仅调整此参数或top_p,而不同时调整两者。">]>;
644
+ readonly frequency_penalty: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -2, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "取值范围为-2.0至2.0。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">]>;
645
+ readonly presence_penalty: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -2, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "数值介于-2.0至2.0之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">]>;
646
+ readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">]>;
647
+ readonly stop: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>]>, undefined>, v.MaxLengthAction<string[], 4, undefined>]>, undefined>, v.DescriptionAction<string[] | undefined, "最多可指定4个停止序列,API将在生成到该序列时停止,返回的文本中不包含该停止序列。">, import("@piying/valibot-visit").GroupControlAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
648
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
649
+ max_tokens: number;
650
+ top_p: number;
651
+ temperature: number;
652
+ frequency_penalty?: number | undefined;
653
+ presence_penalty?: number | undefined;
654
+ seed?: number | undefined;
655
+ stop?: string[] | undefined;
656
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
657
+ name: string;
658
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
659
+ } & {
660
+ baseURL: string;
661
+ model: string;
662
+ } & {
663
+ apiKey?: string | undefined;
664
+ } & {
665
+ max_tokens: number;
666
+ top_p: number;
667
+ temperature: number;
668
+ frequency_penalty?: number | undefined;
669
+ presence_penalty?: number | undefined;
670
+ seed?: number | undefined;
671
+ stop?: string[] | undefined;
672
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
673
+ name: string;
674
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
675
+ } & {
676
+ baseURL: string;
677
+ model: string;
678
+ } & {
679
+ apiKey?: string | undefined;
680
+ } & {
681
+ max_tokens: number;
682
+ top_p: number;
683
+ temperature: number;
684
+ frequency_penalty?: number | undefined;
685
+ presence_penalty?: number | undefined;
686
+ seed?: number | undefined;
687
+ stop?: string[] | undefined;
688
+ }>]>, v.ObjectSchema<{
689
+ readonly vendorOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.IntersectSchema<[v.ObjectSchema<{
690
+ /** @internal */
691
+ readonly extraOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.IntersectSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
692
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
693
+ readonly vendor: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<("deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude")[], undefined>, "openai">, v.DescriptionAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", "大语言模型提供的厂商">, v.TitleAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", "对话厂商">, v.MetadataAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", {
694
+ readonly enumOptions: {
695
+ label: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
696
+ description: string;
697
+ }[];
698
+ }>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
699
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
700
+ name: string;
701
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
702
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
703
+ readonly baseURL: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "http://127.0.0.1:11434/v1">, v.TitleAction<string, "地址">, v.DescriptionAction<string, "openai兼容接口">]>;
704
+ readonly model: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "qwen3:8b">, v.TitleAction<string, "模型">, v.DescriptionAction<string, "## 模型名\n### ollama模型推荐\n- `qwen3:8b`\n- `qwen3:14b`,`deepseek-r1:7b`,`deepseek-r1:14b`\n### 图片对话模型\n- `minicpm-v:8b`">]>;
705
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
706
+ baseURL: string;
707
+ model: string;
708
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.ObjectSchema<{
709
+ readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">]>;
710
+ }, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
711
+ readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>]>;
712
+ readonly top_p: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 0.8>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 10, undefined>, v.DescriptionAction<number, "核采样(nucleus sampling)是温度采样的另一种替代方法,模型会考虑累积概率质量达到 top_p 的 token。例如,当 top_p 设为 0.1 时,仅考虑累积概率前 10% 的 token。\n\n我们通常建议调整 top_p 或温度参数,但不要同时调整两者。">]>;
713
+ readonly temperature: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2, undefined>]>, 0.1>, v.DescriptionAction<number, "采样温度应设置在0到2之间。较高的值(如0.8)会使输出更随机,而较低的值(如0.2)则会使输出更集中且确定。我们通常建议仅调整此参数或top_p,而不同时调整两者。">]>;
714
+ readonly frequency_penalty: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -2, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "取值范围为-2.0至2.0。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">]>;
715
+ readonly presence_penalty: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -2, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "数值介于-2.0至2.0之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">]>;
716
+ readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">]>;
717
+ readonly stop: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>]>, undefined>, v.MaxLengthAction<string[], 4, undefined>]>, undefined>, v.DescriptionAction<string[] | undefined, "最多可指定4个停止序列,API将在生成到该序列时停止,返回的文本中不包含该停止序列。">, import("@piying/valibot-visit").GroupControlAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
718
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
719
+ max_tokens: number;
720
+ top_p: number;
721
+ temperature: number;
722
+ frequency_penalty?: number | undefined;
723
+ presence_penalty?: number | undefined;
724
+ seed?: number | undefined;
725
+ stop?: string[] | undefined;
726
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
727
+ name: string;
728
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
729
+ } & {
730
+ baseURL: string;
731
+ model: string;
732
+ } & {
733
+ apiKey?: string | undefined;
734
+ } & {
735
+ max_tokens: number;
736
+ top_p: number;
737
+ temperature: number;
738
+ frequency_penalty?: number | undefined;
739
+ presence_penalty?: number | undefined;
740
+ seed?: number | undefined;
741
+ stop?: string[] | undefined;
742
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
743
+ name: string;
744
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
745
+ } & {
746
+ baseURL: string;
747
+ model: string;
748
+ } & {
749
+ apiKey?: string | undefined;
750
+ } & {
751
+ max_tokens: number;
752
+ top_p: number;
753
+ temperature: number;
754
+ frequency_penalty?: number | undefined;
755
+ presence_penalty?: number | undefined;
756
+ seed?: number | undefined;
757
+ stop?: string[] | undefined;
758
+ }>]>, undefined>, v.DescriptionAction<({
759
+ name: string;
760
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
761
+ } & {
762
+ baseURL: string;
763
+ model: string;
764
+ } & {
765
+ apiKey?: string | undefined;
766
+ } & {
767
+ max_tokens: number;
768
+ top_p: number;
769
+ temperature: number;
770
+ frequency_penalty?: number | undefined;
771
+ presence_penalty?: number | undefined;
772
+ seed?: number | undefined;
773
+ stop?: string[] | undefined;
774
+ }) | undefined, "附加配置">]>;
775
+ }, undefined>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
776
+ extraOptions?: ({
777
+ name: string;
778
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
779
+ } & {
780
+ baseURL: string;
781
+ model: string;
782
+ } & {
783
+ apiKey?: string | undefined;
784
+ } & {
785
+ max_tokens: number;
786
+ top_p: number;
787
+ temperature: number;
788
+ frequency_penalty?: number | undefined;
789
+ presence_penalty?: number | undefined;
790
+ seed?: number | undefined;
791
+ stop?: string[] | undefined;
792
+ }) | undefined;
793
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
794
+ extraOptions?: ({
795
+ name: string;
796
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
797
+ } & {
798
+ baseURL: string;
799
+ model: string;
800
+ } & {
801
+ apiKey?: string | undefined;
802
+ } & {
803
+ max_tokens: number;
804
+ top_p: number;
805
+ temperature: number;
806
+ frequency_penalty?: number | undefined;
807
+ presence_penalty?: number | undefined;
808
+ seed?: number | undefined;
809
+ stop?: string[] | undefined;
810
+ }) | undefined;
811
+ }>]>, undefined>, undefined>, v.DescriptionAction<{
812
+ [x: string]: {
813
+ extraOptions?: ({
814
+ name: string;
815
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
816
+ } & {
817
+ baseURL: string;
818
+ model: string;
819
+ } & {
820
+ apiKey?: string | undefined;
821
+ } & {
822
+ max_tokens: number;
823
+ top_p: number;
824
+ temperature: number;
825
+ frequency_penalty?: number | undefined;
826
+ presence_penalty?: number | undefined;
827
+ seed?: number | undefined;
828
+ stop?: string[] | undefined;
829
+ }) | undefined;
830
+ };
831
+ } | undefined, "## 通用参数\n- `extraOptions`字段用于覆盖默认字段\n```json\n{\"厂商名(与vendor字段相同)\":{ \"extraOptions\":{\"temperature\":0.1,\"topP\":0.8,\"maxTokens\":8192,\"baseURL\":\"http://127.0.0.1:11434/v1\",\"apiKey\":\" \"} }\n```\n">, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
832
+ [x: string]: {
833
+ extraOptions?: ({
834
+ name: string;
835
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
836
+ } & {
837
+ baseURL: string;
838
+ model: string;
839
+ } & {
840
+ apiKey?: string | undefined;
841
+ } & {
842
+ max_tokens: number;
843
+ top_p: number;
844
+ temperature: number;
845
+ frequency_penalty?: number | undefined;
846
+ presence_penalty?: number | undefined;
847
+ seed?: number | undefined;
848
+ stop?: string[] | undefined;
849
+ }) | undefined;
850
+ };
851
+ } | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
852
+ [x: string]: {
853
+ extraOptions?: ({
854
+ name: string;
855
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
856
+ } & {
857
+ baseURL: string;
858
+ model: string;
859
+ } & {
860
+ apiKey?: string | undefined;
861
+ } & {
862
+ max_tokens: number;
863
+ top_p: number;
864
+ temperature: number;
865
+ frequency_penalty?: number | undefined;
866
+ presence_penalty?: number | undefined;
867
+ seed?: number | undefined;
868
+ stop?: string[] | undefined;
869
+ }) | undefined;
870
+ };
871
+ } | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, v.TitleAction<{
872
+ [x: string]: {
873
+ extraOptions?: ({
874
+ name: string;
875
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
876
+ } & {
877
+ baseURL: string;
878
+ model: string;
879
+ } & {
880
+ apiKey?: string | undefined;
881
+ } & {
882
+ max_tokens: number;
883
+ top_p: number;
884
+ temperature: number;
885
+ frequency_penalty?: number | undefined;
886
+ presence_penalty?: number | undefined;
887
+ seed?: number | undefined;
888
+ stop?: string[] | undefined;
889
+ }) | undefined;
890
+ };
891
+ } | undefined, "厂商额外配置">]>;
892
+ }, undefined>], undefined>, import("@piying/valibot-visit").VirtualGroupAction<{
893
+ name: string;
894
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
895
+ } & {
896
+ baseURL: string;
897
+ model: string;
898
+ } & {
899
+ apiKey?: string | undefined;
900
+ } & {
901
+ max_tokens: number;
902
+ top_p: number;
903
+ temperature: number;
904
+ frequency_penalty?: number | undefined;
905
+ presence_penalty?: number | undefined;
906
+ seed?: number | undefined;
907
+ stop?: string[] | undefined;
908
+ } & {
909
+ vendorOptions?: {
910
+ [x: string]: {
911
+ extraOptions?: ({
912
+ name: string;
913
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
914
+ } & {
915
+ baseURL: string;
916
+ model: string;
917
+ } & {
918
+ apiKey?: string | undefined;
919
+ } & {
920
+ max_tokens: number;
921
+ top_p: number;
922
+ temperature: number;
923
+ frequency_penalty?: number | undefined;
924
+ presence_penalty?: number | undefined;
925
+ seed?: number | undefined;
926
+ stop?: string[] | undefined;
927
+ }) | undefined;
928
+ };
929
+ } | undefined;
930
+ }>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
931
+ name: string;
932
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
933
+ } & {
934
+ baseURL: string;
935
+ model: string;
936
+ } & {
937
+ apiKey?: string | undefined;
938
+ } & {
939
+ max_tokens: number;
940
+ top_p: number;
941
+ temperature: number;
942
+ frequency_penalty?: number | undefined;
943
+ presence_penalty?: number | undefined;
944
+ seed?: number | undefined;
945
+ stop?: string[] | undefined;
946
+ } & {
947
+ vendorOptions?: {
948
+ [x: string]: {
949
+ extraOptions?: ({
950
+ name: string;
951
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
952
+ } & {
953
+ baseURL: string;
954
+ model: string;
955
+ } & {
956
+ apiKey?: string | undefined;
957
+ } & {
958
+ max_tokens: number;
959
+ top_p: number;
960
+ temperature: number;
961
+ frequency_penalty?: number | undefined;
962
+ presence_penalty?: number | undefined;
963
+ seed?: number | undefined;
964
+ stop?: string[] | undefined;
965
+ }) | undefined;
966
+ };
967
+ } | undefined;
968
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", ({
969
+ name: string;
970
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
971
+ } & {
972
+ baseURL: string;
973
+ model: string;
974
+ } & {
975
+ apiKey?: string | undefined;
976
+ } & {
977
+ max_tokens: number;
978
+ top_p: number;
979
+ temperature: number;
980
+ frequency_penalty?: number | undefined;
981
+ presence_penalty?: number | undefined;
982
+ seed?: number | undefined;
983
+ stop?: string[] | undefined;
984
+ } & {
985
+ vendorOptions?: {
986
+ [x: string]: {
987
+ extraOptions?: ({
988
+ name: string;
989
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
990
+ } & {
991
+ baseURL: string;
992
+ model: string;
993
+ } & {
994
+ apiKey?: string | undefined;
995
+ } & {
996
+ max_tokens: number;
997
+ top_p: number;
998
+ temperature: number;
999
+ frequency_penalty?: number | undefined;
1000
+ presence_penalty?: number | undefined;
1001
+ seed?: number | undefined;
1002
+ stop?: string[] | undefined;
1003
+ }) | undefined;
1004
+ };
1005
+ } | undefined;
1006
+ })[], import("@piying/view-angular-core").AnyCoreSchemaHandle>, v.DescriptionAction<({
1007
+ name: string;
1008
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1009
+ } & {
1010
+ baseURL: string;
1011
+ model: string;
1012
+ } & {
1013
+ apiKey?: string | undefined;
1014
+ } & {
1015
+ max_tokens: number;
1016
+ top_p: number;
1017
+ temperature: number;
1018
+ frequency_penalty?: number | undefined;
1019
+ presence_penalty?: number | undefined;
1020
+ seed?: number | undefined;
1021
+ stop?: string[] | undefined;
1022
+ } & {
1023
+ vendorOptions?: {
1024
+ [x: string]: {
1025
+ extraOptions?: ({
1026
+ name: string;
1027
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1028
+ } & {
1029
+ baseURL: string;
1030
+ model: string;
1031
+ } & {
1032
+ apiKey?: string | undefined;
1033
+ } & {
1034
+ max_tokens: number;
1035
+ top_p: number;
1036
+ temperature: number;
1037
+ frequency_penalty?: number | undefined;
1038
+ presence_penalty?: number | undefined;
1039
+ seed?: number | undefined;
1040
+ stop?: string[] | undefined;
1041
+ }) | undefined;
1042
+ };
1043
+ } | undefined;
1044
+ })[], "对话模型列表,目前用于切换使用">, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", ({
1045
+ name: string;
1046
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1047
+ } & {
1048
+ baseURL: string;
1049
+ model: string;
1050
+ } & {
1051
+ apiKey?: string | undefined;
1052
+ } & {
1053
+ max_tokens: number;
1054
+ top_p: number;
1055
+ temperature: number;
1056
+ frequency_penalty?: number | undefined;
1057
+ presence_penalty?: number | undefined;
1058
+ seed?: number | undefined;
1059
+ stop?: string[] | undefined;
1060
+ } & {
1061
+ vendorOptions?: {
1062
+ [x: string]: {
1063
+ extraOptions?: ({
1064
+ name: string;
1065
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1066
+ } & {
1067
+ baseURL: string;
1068
+ model: string;
1069
+ } & {
1070
+ apiKey?: string | undefined;
1071
+ } & {
1072
+ max_tokens: number;
1073
+ top_p: number;
1074
+ temperature: number;
1075
+ frequency_penalty?: number | undefined;
1076
+ presence_penalty?: number | undefined;
1077
+ seed?: number | undefined;
1078
+ stop?: string[] | undefined;
1079
+ }) | undefined;
1080
+ };
1081
+ } | undefined;
1082
+ })[], import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
1083
+ export type ChatModelOptions = v.InferOutput<typeof ChatParamsItemDefine>;
1084
+ export type ChatModelOptionsInput = v.InferInput<typeof ChatParamsItemDefine>;
1085
+ export declare const InputChatOptionsDefine: v.SchemaWithPipe<readonly [v.IntersectSchema<[v.SchemaWithPipe<readonly [v.IntersectSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
1086
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
1087
+ readonly vendor: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<("deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude")[], undefined>, "openai">, v.DescriptionAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", "大语言模型提供的厂商">, v.TitleAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", "对话厂商">, v.MetadataAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", {
1088
+ readonly enumOptions: {
1089
+ label: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1090
+ description: string;
1091
+ }[];
1092
+ }>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
1093
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
1094
+ name: string;
1095
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1096
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1097
+ readonly baseURL: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "http://127.0.0.1:11434/v1">, v.TitleAction<string, "地址">, v.DescriptionAction<string, "openai兼容接口">]>;
1098
+ readonly model: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "qwen3:8b">, v.TitleAction<string, "模型">, v.DescriptionAction<string, "## 模型名\n### ollama模型推荐\n- `qwen3:8b`\n- `qwen3:14b`,`deepseek-r1:7b`,`deepseek-r1:14b`\n### 图片对话模型\n- `minicpm-v:8b`">]>;
1099
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
1100
+ baseURL: string;
1101
+ model: string;
1102
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.ObjectSchema<{
1103
+ readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">]>;
1104
+ }, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1105
+ readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>]>;
1106
+ readonly top_p: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 0.8>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 10, undefined>, v.DescriptionAction<number, "核采样(nucleus sampling)是温度采样的另一种替代方法,模型会考虑累积概率质量达到 top_p 的 token。例如,当 top_p 设为 0.1 时,仅考虑累积概率前 10% 的 token。\n\n我们通常建议调整 top_p 或温度参数,但不要同时调整两者。">]>;
1107
+ readonly temperature: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2, undefined>]>, 0.1>, v.DescriptionAction<number, "采样温度应设置在0到2之间。较高的值(如0.8)会使输出更随机,而较低的值(如0.2)则会使输出更集中且确定。我们通常建议仅调整此参数或top_p,而不同时调整两者。">]>;
1108
+ readonly frequency_penalty: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -2, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "取值范围为-2.0至2.0。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">]>;
1109
+ readonly presence_penalty: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -2, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "数值介于-2.0至2.0之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">]>;
1110
+ readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">]>;
1111
+ readonly stop: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>]>, undefined>, v.MaxLengthAction<string[], 4, undefined>]>, undefined>, v.DescriptionAction<string[] | undefined, "最多可指定4个停止序列,API将在生成到该序列时停止,返回的文本中不包含该停止序列。">, import("@piying/valibot-visit").GroupControlAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
1112
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
1113
+ max_tokens: number;
1114
+ top_p: number;
1115
+ temperature: number;
1116
+ frequency_penalty?: number | undefined;
1117
+ presence_penalty?: number | undefined;
1118
+ seed?: number | undefined;
1119
+ stop?: string[] | undefined;
1120
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
1121
+ name: string;
1122
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1123
+ } & {
1124
+ baseURL: string;
1125
+ model: string;
1126
+ } & {
1127
+ apiKey?: string | undefined;
1128
+ } & {
1129
+ max_tokens: number;
1130
+ top_p: number;
1131
+ temperature: number;
1132
+ frequency_penalty?: number | undefined;
1133
+ presence_penalty?: number | undefined;
1134
+ seed?: number | undefined;
1135
+ stop?: string[] | undefined;
1136
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
1137
+ name: string;
1138
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1139
+ } & {
1140
+ baseURL: string;
1141
+ model: string;
1142
+ } & {
1143
+ apiKey?: string | undefined;
1144
+ } & {
1145
+ max_tokens: number;
1146
+ top_p: number;
1147
+ temperature: number;
1148
+ frequency_penalty?: number | undefined;
1149
+ presence_penalty?: number | undefined;
1150
+ seed?: number | undefined;
1151
+ stop?: string[] | undefined;
1152
+ }>]>, v.ObjectSchema<{
1153
+ readonly vendorOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.IntersectSchema<[v.ObjectSchema<{
1154
+ /** @internal */
1155
+ readonly extraOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.IntersectSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
1156
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
1157
+ readonly vendor: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<("deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude")[], undefined>, "openai">, v.DescriptionAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", "大语言模型提供的厂商">, v.TitleAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", "对话厂商">, v.MetadataAction<"deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", {
1158
+ readonly enumOptions: {
1159
+ label: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1160
+ description: string;
1161
+ }[];
1162
+ }>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude", import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
1163
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
1164
+ name: string;
1165
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1166
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1167
+ readonly baseURL: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "http://127.0.0.1:11434/v1">, v.TitleAction<string, "地址">, v.DescriptionAction<string, "openai兼容接口">]>;
1168
+ readonly model: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "qwen3:8b">, v.TitleAction<string, "模型">, v.DescriptionAction<string, "## 模型名\n### ollama模型推荐\n- `qwen3:8b`\n- `qwen3:14b`,`deepseek-r1:7b`,`deepseek-r1:14b`\n### 图片对话模型\n- `minicpm-v:8b`">]>;
1169
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
1170
+ baseURL: string;
1171
+ model: string;
1172
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.ObjectSchema<{
1173
+ readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">]>;
1174
+ }, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1175
+ readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>]>;
1176
+ readonly top_p: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 0.8>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 10, undefined>, v.DescriptionAction<number, "核采样(nucleus sampling)是温度采样的另一种替代方法,模型会考虑累积概率质量达到 top_p 的 token。例如,当 top_p 设为 0.1 时,仅考虑累积概率前 10% 的 token。\n\n我们通常建议调整 top_p 或温度参数,但不要同时调整两者。">]>;
1177
+ readonly temperature: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2, undefined>]>, 0.1>, v.DescriptionAction<number, "采样温度应设置在0到2之间。较高的值(如0.8)会使输出更随机,而较低的值(如0.2)则会使输出更集中且确定。我们通常建议仅调整此参数或top_p,而不同时调整两者。">]>;
1178
+ readonly frequency_penalty: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -2, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "取值范围为-2.0至2.0。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">]>;
1179
+ readonly presence_penalty: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -2, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "数值介于-2.0至2.0之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">]>;
1180
+ readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">]>;
1181
+ readonly stop: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>]>, undefined>, v.MaxLengthAction<string[], 4, undefined>]>, undefined>, v.DescriptionAction<string[] | undefined, "最多可指定4个停止序列,API将在生成到该序列时停止,返回的文本中不包含该停止序列。">, import("@piying/valibot-visit").GroupControlAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
1182
+ }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
1183
+ max_tokens: number;
1184
+ top_p: number;
1185
+ temperature: number;
1186
+ frequency_penalty?: number | undefined;
1187
+ presence_penalty?: number | undefined;
1188
+ seed?: number | undefined;
1189
+ stop?: string[] | undefined;
1190
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
1191
+ name: string;
1192
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1193
+ } & {
1194
+ baseURL: string;
1195
+ model: string;
1196
+ } & {
1197
+ apiKey?: string | undefined;
1198
+ } & {
1199
+ max_tokens: number;
1200
+ top_p: number;
1201
+ temperature: number;
1202
+ frequency_penalty?: number | undefined;
1203
+ presence_penalty?: number | undefined;
1204
+ seed?: number | undefined;
1205
+ stop?: string[] | undefined;
1206
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
1207
+ name: string;
1208
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1209
+ } & {
1210
+ baseURL: string;
1211
+ model: string;
1212
+ } & {
1213
+ apiKey?: string | undefined;
1214
+ } & {
1215
+ max_tokens: number;
1216
+ top_p: number;
1217
+ temperature: number;
1218
+ frequency_penalty?: number | undefined;
1219
+ presence_penalty?: number | undefined;
1220
+ seed?: number | undefined;
1221
+ stop?: string[] | undefined;
1222
+ }>]>, undefined>, v.DescriptionAction<({
1223
+ name: string;
1224
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1225
+ } & {
1226
+ baseURL: string;
1227
+ model: string;
1228
+ } & {
1229
+ apiKey?: string | undefined;
1230
+ } & {
1231
+ max_tokens: number;
1232
+ top_p: number;
1233
+ temperature: number;
1234
+ frequency_penalty?: number | undefined;
1235
+ presence_penalty?: number | undefined;
1236
+ seed?: number | undefined;
1237
+ stop?: string[] | undefined;
1238
+ }) | undefined, "附加配置">]>;
1239
+ }, undefined>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
1240
+ extraOptions?: ({
1241
+ name: string;
1242
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1243
+ } & {
1244
+ baseURL: string;
1245
+ model: string;
1246
+ } & {
1247
+ apiKey?: string | undefined;
1248
+ } & {
1249
+ max_tokens: number;
1250
+ top_p: number;
1251
+ temperature: number;
1252
+ frequency_penalty?: number | undefined;
1253
+ presence_penalty?: number | undefined;
1254
+ seed?: number | undefined;
1255
+ stop?: string[] | undefined;
1256
+ }) | undefined;
1257
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
1258
+ extraOptions?: ({
1259
+ name: string;
1260
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1261
+ } & {
1262
+ baseURL: string;
1263
+ model: string;
1264
+ } & {
1265
+ apiKey?: string | undefined;
1266
+ } & {
1267
+ max_tokens: number;
1268
+ top_p: number;
1269
+ temperature: number;
1270
+ frequency_penalty?: number | undefined;
1271
+ presence_penalty?: number | undefined;
1272
+ seed?: number | undefined;
1273
+ stop?: string[] | undefined;
1274
+ }) | undefined;
1275
+ }>]>, undefined>, undefined>, v.DescriptionAction<{
1276
+ [x: string]: {
1277
+ extraOptions?: ({
1278
+ name: string;
1279
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1280
+ } & {
1281
+ baseURL: string;
1282
+ model: string;
1283
+ } & {
1284
+ apiKey?: string | undefined;
1285
+ } & {
1286
+ max_tokens: number;
1287
+ top_p: number;
1288
+ temperature: number;
1289
+ frequency_penalty?: number | undefined;
1290
+ presence_penalty?: number | undefined;
1291
+ seed?: number | undefined;
1292
+ stop?: string[] | undefined;
1293
+ }) | undefined;
1294
+ };
1295
+ } | undefined, "## 通用参数\n- `extraOptions`字段用于覆盖默认字段\n```json\n{\"厂商名(与vendor字段相同)\":{ \"extraOptions\":{\"temperature\":0.1,\"topP\":0.8,\"maxTokens\":8192,\"baseURL\":\"http://127.0.0.1:11434/v1\",\"apiKey\":\" \"} }\n```\n">, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
1296
+ [x: string]: {
1297
+ extraOptions?: ({
1298
+ name: string;
1299
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1300
+ } & {
1301
+ baseURL: string;
1302
+ model: string;
1303
+ } & {
1304
+ apiKey?: string | undefined;
1305
+ } & {
1306
+ max_tokens: number;
1307
+ top_p: number;
1308
+ temperature: number;
1309
+ frequency_penalty?: number | undefined;
1310
+ presence_penalty?: number | undefined;
1311
+ seed?: number | undefined;
1312
+ stop?: string[] | undefined;
1313
+ }) | undefined;
1314
+ };
1315
+ } | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
1316
+ [x: string]: {
1317
+ extraOptions?: ({
1318
+ name: string;
1319
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1320
+ } & {
1321
+ baseURL: string;
1322
+ model: string;
1323
+ } & {
1324
+ apiKey?: string | undefined;
1325
+ } & {
1326
+ max_tokens: number;
1327
+ top_p: number;
1328
+ temperature: number;
1329
+ frequency_penalty?: number | undefined;
1330
+ presence_penalty?: number | undefined;
1331
+ seed?: number | undefined;
1332
+ stop?: string[] | undefined;
1333
+ }) | undefined;
1334
+ };
1335
+ } | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, v.TitleAction<{
1336
+ [x: string]: {
1337
+ extraOptions?: ({
1338
+ name: string;
1339
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1340
+ } & {
1341
+ baseURL: string;
1342
+ model: string;
1343
+ } & {
1344
+ apiKey?: string | undefined;
1345
+ } & {
1346
+ max_tokens: number;
1347
+ top_p: number;
1348
+ temperature: number;
1349
+ frequency_penalty?: number | undefined;
1350
+ presence_penalty?: number | undefined;
1351
+ seed?: number | undefined;
1352
+ stop?: string[] | undefined;
1353
+ }) | undefined;
1354
+ };
1355
+ } | undefined, "厂商额外配置">]>;
1356
+ }, undefined>], undefined>, import("@piying/valibot-visit").VirtualGroupAction<{
1357
+ name: string;
1358
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1359
+ } & {
1360
+ baseURL: string;
1361
+ model: string;
1362
+ } & {
1363
+ apiKey?: string | undefined;
1364
+ } & {
1365
+ max_tokens: number;
1366
+ top_p: number;
1367
+ temperature: number;
1368
+ frequency_penalty?: number | undefined;
1369
+ presence_penalty?: number | undefined;
1370
+ seed?: number | undefined;
1371
+ stop?: string[] | undefined;
1372
+ } & {
1373
+ vendorOptions?: {
1374
+ [x: string]: {
1375
+ extraOptions?: ({
1376
+ name: string;
1377
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1378
+ } & {
1379
+ baseURL: string;
1380
+ model: string;
1381
+ } & {
1382
+ apiKey?: string | undefined;
1383
+ } & {
1384
+ max_tokens: number;
1385
+ top_p: number;
1386
+ temperature: number;
1387
+ frequency_penalty?: number | undefined;
1388
+ presence_penalty?: number | undefined;
1389
+ seed?: number | undefined;
1390
+ stop?: string[] | undefined;
1391
+ }) | undefined;
1392
+ };
1393
+ } | undefined;
1394
+ }>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
1395
+ name: string;
1396
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1397
+ } & {
1398
+ baseURL: string;
1399
+ model: string;
1400
+ } & {
1401
+ apiKey?: string | undefined;
1402
+ } & {
1403
+ max_tokens: number;
1404
+ top_p: number;
1405
+ temperature: number;
1406
+ frequency_penalty?: number | undefined;
1407
+ presence_penalty?: number | undefined;
1408
+ seed?: number | undefined;
1409
+ stop?: string[] | undefined;
1410
+ } & {
1411
+ vendorOptions?: {
1412
+ [x: string]: {
1413
+ extraOptions?: ({
1414
+ name: string;
1415
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1416
+ } & {
1417
+ baseURL: string;
1418
+ model: string;
1419
+ } & {
1420
+ apiKey?: string | undefined;
1421
+ } & {
1422
+ max_tokens: number;
1423
+ top_p: number;
1424
+ temperature: number;
1425
+ frequency_penalty?: number | undefined;
1426
+ presence_penalty?: number | undefined;
1427
+ seed?: number | undefined;
1428
+ stop?: string[] | undefined;
1429
+ }) | undefined;
1430
+ };
1431
+ } | undefined;
1432
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
1433
+ export type CreateChatModelOptions = v.InferInput<typeof InputChatOptionsDefine>;