@shenghuabi/openai 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chat/options.define.d.ts +450 -64
- package/define/index.js +31 -14
- package/define/index.js.map +2 -2
- package/define/index.mjs +32 -19
- package/define/index.mjs.map +2 -2
- package/index.js +31 -14
- package/index.js.map +2 -2
- package/index.mjs +32 -19
- package/index.mjs.map +2 -2
- package/package.json +1 -1
package/chat/options.define.d.ts
CHANGED
|
@@ -10,6 +10,9 @@ export declare const ChatItemDefine: v.SchemaWithPipe<readonly [v.IntersectSchem
|
|
|
10
10
|
}, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
11
11
|
name: string;
|
|
12
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>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
14
|
+
name: string;
|
|
15
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
13
16
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
14
17
|
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
18
|
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`">]>;
|
|
@@ -17,15 +20,15 @@ export declare const ChatItemDefine: v.SchemaWithPipe<readonly [v.IntersectSchem
|
|
|
17
20
|
baseURL: string;
|
|
18
21
|
model: string;
|
|
19
22
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.ObjectSchema<{
|
|
20
|
-
readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">]>;
|
|
23
|
+
readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">, v.TitleAction<string | undefined, "apiKey">]>;
|
|
21
24
|
}, 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").DefineTypeAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
|
|
25
|
+
readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>, v.TitleAction<number, "max_tokens">]>;
|
|
26
|
+
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 或温度参数,但不要同时调整两者。">, v.TitleAction<number, "top_p">]>;
|
|
27
|
+
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,而不同时调整两者。">, v.TitleAction<number, "temperature">]>;
|
|
28
|
+
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。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">, v.TitleAction<number | undefined, "frequency_penalty">]>;
|
|
29
|
+
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之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">, v.TitleAction<number | undefined, "presence_penalty">]>;
|
|
30
|
+
readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">, v.TitleAction<number | undefined, "seed">]>;
|
|
31
|
+
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").DefineTypeAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, v.TitleAction<string[] | undefined, "stop">]>;
|
|
29
32
|
}, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
30
33
|
max_tokens: number;
|
|
31
34
|
top_p: number;
|
|
@@ -34,6 +37,14 @@ export declare const ChatItemDefine: v.SchemaWithPipe<readonly [v.IntersectSchem
|
|
|
34
37
|
presence_penalty?: number | undefined;
|
|
35
38
|
seed?: number | undefined;
|
|
36
39
|
stop?: string[] | undefined;
|
|
40
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
41
|
+
max_tokens: number;
|
|
42
|
+
top_p: number;
|
|
43
|
+
temperature: number;
|
|
44
|
+
frequency_penalty?: number | undefined;
|
|
45
|
+
presence_penalty?: number | undefined;
|
|
46
|
+
seed?: number | undefined;
|
|
47
|
+
stop?: string[] | undefined;
|
|
37
48
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
38
49
|
name: string;
|
|
39
50
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
@@ -50,6 +61,22 @@ export declare const ChatItemDefine: v.SchemaWithPipe<readonly [v.IntersectSchem
|
|
|
50
61
|
presence_penalty?: number | undefined;
|
|
51
62
|
seed?: number | undefined;
|
|
52
63
|
stop?: string[] | undefined;
|
|
64
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
65
|
+
name: string;
|
|
66
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
67
|
+
} & {
|
|
68
|
+
baseURL: string;
|
|
69
|
+
model: string;
|
|
70
|
+
} & {
|
|
71
|
+
apiKey?: string | undefined;
|
|
72
|
+
} & {
|
|
73
|
+
max_tokens: number;
|
|
74
|
+
top_p: number;
|
|
75
|
+
temperature: number;
|
|
76
|
+
frequency_penalty?: number | undefined;
|
|
77
|
+
presence_penalty?: number | undefined;
|
|
78
|
+
seed?: number | undefined;
|
|
79
|
+
stop?: string[] | undefined;
|
|
53
80
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
|
|
54
81
|
name: string;
|
|
55
82
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
@@ -80,6 +107,9 @@ export declare const VendorOptionsDefine: v.SchemaWithPipe<readonly [v.OptionalS
|
|
|
80
107
|
}, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
81
108
|
name: string;
|
|
82
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
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
111
|
+
name: string;
|
|
112
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
83
113
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, "entries" | "~standard" | "~run" | "~types"> & {
|
|
84
114
|
readonly entries: Omit<{
|
|
85
115
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
|
|
@@ -131,15 +161,15 @@ export declare const VendorOptionsDefine: v.SchemaWithPipe<readonly [v.OptionalS
|
|
|
131
161
|
baseURL: string;
|
|
132
162
|
model: string;
|
|
133
163
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.ObjectSchema<{
|
|
134
|
-
readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">]>;
|
|
164
|
+
readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">, v.TitleAction<string | undefined, "apiKey">]>;
|
|
135
165
|
}, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
136
|
-
readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>]>;
|
|
137
|
-
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 或温度参数,但不要同时调整两者。">]>;
|
|
138
|
-
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,而不同时调整两者。">]>;
|
|
139
|
-
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。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">]>;
|
|
140
|
-
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之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">]>;
|
|
141
|
-
readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">]>;
|
|
142
|
-
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").DefineTypeAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
|
|
166
|
+
readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>, v.TitleAction<number, "max_tokens">]>;
|
|
167
|
+
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 或温度参数,但不要同时调整两者。">, v.TitleAction<number, "top_p">]>;
|
|
168
|
+
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,而不同时调整两者。">, v.TitleAction<number, "temperature">]>;
|
|
169
|
+
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。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">, v.TitleAction<number | undefined, "frequency_penalty">]>;
|
|
170
|
+
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之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">, v.TitleAction<number | undefined, "presence_penalty">]>;
|
|
171
|
+
readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">, v.TitleAction<number | undefined, "seed">]>;
|
|
172
|
+
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").DefineTypeAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, v.TitleAction<string[] | undefined, "stop">]>;
|
|
143
173
|
}, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
144
174
|
max_tokens: number;
|
|
145
175
|
top_p: number;
|
|
@@ -148,6 +178,14 @@ export declare const VendorOptionsDefine: v.SchemaWithPipe<readonly [v.OptionalS
|
|
|
148
178
|
presence_penalty?: number | undefined;
|
|
149
179
|
seed?: number | undefined;
|
|
150
180
|
stop?: string[] | undefined;
|
|
181
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
182
|
+
max_tokens: number;
|
|
183
|
+
top_p: number;
|
|
184
|
+
temperature: number;
|
|
185
|
+
frequency_penalty?: number | undefined;
|
|
186
|
+
presence_penalty?: number | undefined;
|
|
187
|
+
seed?: number | undefined;
|
|
188
|
+
stop?: string[] | undefined;
|
|
151
189
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
152
190
|
name: string;
|
|
153
191
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
@@ -164,6 +202,22 @@ export declare const VendorOptionsDefine: v.SchemaWithPipe<readonly [v.OptionalS
|
|
|
164
202
|
presence_penalty?: number | undefined;
|
|
165
203
|
seed?: number | undefined;
|
|
166
204
|
stop?: string[] | undefined;
|
|
205
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
206
|
+
name: string;
|
|
207
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
208
|
+
} & {
|
|
209
|
+
baseURL: string;
|
|
210
|
+
model: string;
|
|
211
|
+
} & {
|
|
212
|
+
apiKey?: string | undefined;
|
|
213
|
+
} & {
|
|
214
|
+
max_tokens: number;
|
|
215
|
+
top_p: number;
|
|
216
|
+
temperature: number;
|
|
217
|
+
frequency_penalty?: number | undefined;
|
|
218
|
+
presence_penalty?: number | undefined;
|
|
219
|
+
seed?: number | undefined;
|
|
220
|
+
stop?: string[] | undefined;
|
|
167
221
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
|
|
168
222
|
name: string;
|
|
169
223
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
@@ -215,6 +269,24 @@ export declare const VendorOptionsDefine: v.SchemaWithPipe<readonly [v.OptionalS
|
|
|
215
269
|
seed?: number | undefined;
|
|
216
270
|
stop?: string[] | undefined;
|
|
217
271
|
}) | undefined;
|
|
272
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
273
|
+
extraOptions?: ({
|
|
274
|
+
name: string;
|
|
275
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
276
|
+
} & {
|
|
277
|
+
baseURL: string;
|
|
278
|
+
model: string;
|
|
279
|
+
} & {
|
|
280
|
+
apiKey?: string | undefined;
|
|
281
|
+
} & {
|
|
282
|
+
max_tokens: number;
|
|
283
|
+
top_p: number;
|
|
284
|
+
temperature: number;
|
|
285
|
+
frequency_penalty?: number | undefined;
|
|
286
|
+
presence_penalty?: number | undefined;
|
|
287
|
+
seed?: number | undefined;
|
|
288
|
+
stop?: string[] | undefined;
|
|
289
|
+
}) | undefined;
|
|
218
290
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
|
|
219
291
|
extraOptions?: ({
|
|
220
292
|
name: string;
|
|
@@ -325,6 +397,9 @@ export declare const ChatParamsItemDefine: v.SchemaWithPipe<readonly [v.Intersec
|
|
|
325
397
|
}, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
326
398
|
name: string;
|
|
327
399
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
400
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
401
|
+
name: string;
|
|
402
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
328
403
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
329
404
|
readonly baseURL: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "http://127.0.0.1:11434/v1">, v.TitleAction<string, "地址">, v.DescriptionAction<string, "openai兼容接口">]>;
|
|
330
405
|
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`">]>;
|
|
@@ -332,15 +407,15 @@ export declare const ChatParamsItemDefine: v.SchemaWithPipe<readonly [v.Intersec
|
|
|
332
407
|
baseURL: string;
|
|
333
408
|
model: string;
|
|
334
409
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.ObjectSchema<{
|
|
335
|
-
readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">]>;
|
|
410
|
+
readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">, v.TitleAction<string | undefined, "apiKey">]>;
|
|
336
411
|
}, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
337
|
-
readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>]>;
|
|
338
|
-
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 或温度参数,但不要同时调整两者。">]>;
|
|
339
|
-
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,而不同时调整两者。">]>;
|
|
340
|
-
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。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">]>;
|
|
341
|
-
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之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">]>;
|
|
342
|
-
readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">]>;
|
|
343
|
-
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").DefineTypeAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
|
|
412
|
+
readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>, v.TitleAction<number, "max_tokens">]>;
|
|
413
|
+
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 或温度参数,但不要同时调整两者。">, v.TitleAction<number, "top_p">]>;
|
|
414
|
+
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,而不同时调整两者。">, v.TitleAction<number, "temperature">]>;
|
|
415
|
+
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。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">, v.TitleAction<number | undefined, "frequency_penalty">]>;
|
|
416
|
+
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之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">, v.TitleAction<number | undefined, "presence_penalty">]>;
|
|
417
|
+
readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">, v.TitleAction<number | undefined, "seed">]>;
|
|
418
|
+
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").DefineTypeAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, v.TitleAction<string[] | undefined, "stop">]>;
|
|
344
419
|
}, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
345
420
|
max_tokens: number;
|
|
346
421
|
top_p: number;
|
|
@@ -349,6 +424,14 @@ export declare const ChatParamsItemDefine: v.SchemaWithPipe<readonly [v.Intersec
|
|
|
349
424
|
presence_penalty?: number | undefined;
|
|
350
425
|
seed?: number | undefined;
|
|
351
426
|
stop?: string[] | undefined;
|
|
427
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
428
|
+
max_tokens: number;
|
|
429
|
+
top_p: number;
|
|
430
|
+
temperature: number;
|
|
431
|
+
frequency_penalty?: number | undefined;
|
|
432
|
+
presence_penalty?: number | undefined;
|
|
433
|
+
seed?: number | undefined;
|
|
434
|
+
stop?: string[] | undefined;
|
|
352
435
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
353
436
|
name: string;
|
|
354
437
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
@@ -365,6 +448,22 @@ export declare const ChatParamsItemDefine: v.SchemaWithPipe<readonly [v.Intersec
|
|
|
365
448
|
presence_penalty?: number | undefined;
|
|
366
449
|
seed?: number | undefined;
|
|
367
450
|
stop?: string[] | undefined;
|
|
451
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
452
|
+
name: string;
|
|
453
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
454
|
+
} & {
|
|
455
|
+
baseURL: string;
|
|
456
|
+
model: string;
|
|
457
|
+
} & {
|
|
458
|
+
apiKey?: string | undefined;
|
|
459
|
+
} & {
|
|
460
|
+
max_tokens: number;
|
|
461
|
+
top_p: number;
|
|
462
|
+
temperature: number;
|
|
463
|
+
frequency_penalty?: number | undefined;
|
|
464
|
+
presence_penalty?: number | undefined;
|
|
465
|
+
seed?: number | undefined;
|
|
466
|
+
stop?: string[] | undefined;
|
|
368
467
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
|
|
369
468
|
name: string;
|
|
370
469
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
@@ -395,6 +494,9 @@ export declare const ChatParamsItemDefine: v.SchemaWithPipe<readonly [v.Intersec
|
|
|
395
494
|
}, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
396
495
|
name: string;
|
|
397
496
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
497
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
498
|
+
name: string;
|
|
499
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
398
500
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, "entries" | "~standard" | "~run" | "~types"> & {
|
|
399
501
|
readonly entries: Omit<{
|
|
400
502
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
|
|
@@ -446,15 +548,15 @@ export declare const ChatParamsItemDefine: v.SchemaWithPipe<readonly [v.Intersec
|
|
|
446
548
|
baseURL: string;
|
|
447
549
|
model: string;
|
|
448
550
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.ObjectSchema<{
|
|
449
|
-
readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">]>;
|
|
551
|
+
readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">, v.TitleAction<string | undefined, "apiKey">]>;
|
|
450
552
|
}, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
451
|
-
readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>]>;
|
|
452
|
-
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 或温度参数,但不要同时调整两者。">]>;
|
|
453
|
-
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,而不同时调整两者。">]>;
|
|
454
|
-
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。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">]>;
|
|
455
|
-
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之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">]>;
|
|
456
|
-
readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">]>;
|
|
457
|
-
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").DefineTypeAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
|
|
553
|
+
readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>, v.TitleAction<number, "max_tokens">]>;
|
|
554
|
+
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 或温度参数,但不要同时调整两者。">, v.TitleAction<number, "top_p">]>;
|
|
555
|
+
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,而不同时调整两者。">, v.TitleAction<number, "temperature">]>;
|
|
556
|
+
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。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">, v.TitleAction<number | undefined, "frequency_penalty">]>;
|
|
557
|
+
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之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">, v.TitleAction<number | undefined, "presence_penalty">]>;
|
|
558
|
+
readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">, v.TitleAction<number | undefined, "seed">]>;
|
|
559
|
+
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").DefineTypeAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, v.TitleAction<string[] | undefined, "stop">]>;
|
|
458
560
|
}, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
459
561
|
max_tokens: number;
|
|
460
562
|
top_p: number;
|
|
@@ -463,6 +565,14 @@ export declare const ChatParamsItemDefine: v.SchemaWithPipe<readonly [v.Intersec
|
|
|
463
565
|
presence_penalty?: number | undefined;
|
|
464
566
|
seed?: number | undefined;
|
|
465
567
|
stop?: string[] | undefined;
|
|
568
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
569
|
+
max_tokens: number;
|
|
570
|
+
top_p: number;
|
|
571
|
+
temperature: number;
|
|
572
|
+
frequency_penalty?: number | undefined;
|
|
573
|
+
presence_penalty?: number | undefined;
|
|
574
|
+
seed?: number | undefined;
|
|
575
|
+
stop?: string[] | undefined;
|
|
466
576
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
467
577
|
name: string;
|
|
468
578
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
@@ -479,6 +589,22 @@ export declare const ChatParamsItemDefine: v.SchemaWithPipe<readonly [v.Intersec
|
|
|
479
589
|
presence_penalty?: number | undefined;
|
|
480
590
|
seed?: number | undefined;
|
|
481
591
|
stop?: string[] | undefined;
|
|
592
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
593
|
+
name: string;
|
|
594
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
595
|
+
} & {
|
|
596
|
+
baseURL: string;
|
|
597
|
+
model: string;
|
|
598
|
+
} & {
|
|
599
|
+
apiKey?: string | undefined;
|
|
600
|
+
} & {
|
|
601
|
+
max_tokens: number;
|
|
602
|
+
top_p: number;
|
|
603
|
+
temperature: number;
|
|
604
|
+
frequency_penalty?: number | undefined;
|
|
605
|
+
presence_penalty?: number | undefined;
|
|
606
|
+
seed?: number | undefined;
|
|
607
|
+
stop?: string[] | undefined;
|
|
482
608
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
|
|
483
609
|
name: string;
|
|
484
610
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
@@ -530,6 +656,24 @@ export declare const ChatParamsItemDefine: v.SchemaWithPipe<readonly [v.Intersec
|
|
|
530
656
|
seed?: number | undefined;
|
|
531
657
|
stop?: string[] | undefined;
|
|
532
658
|
}) | undefined;
|
|
659
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
660
|
+
extraOptions?: ({
|
|
661
|
+
name: string;
|
|
662
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
663
|
+
} & {
|
|
664
|
+
baseURL: string;
|
|
665
|
+
model: string;
|
|
666
|
+
} & {
|
|
667
|
+
apiKey?: string | undefined;
|
|
668
|
+
} & {
|
|
669
|
+
max_tokens: number;
|
|
670
|
+
top_p: number;
|
|
671
|
+
temperature: number;
|
|
672
|
+
frequency_penalty?: number | undefined;
|
|
673
|
+
presence_penalty?: number | undefined;
|
|
674
|
+
seed?: number | undefined;
|
|
675
|
+
stop?: string[] | undefined;
|
|
676
|
+
}) | undefined;
|
|
533
677
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
|
|
534
678
|
extraOptions?: ({
|
|
535
679
|
name: string;
|
|
@@ -705,6 +849,44 @@ export declare const ChatParamsItemDefine: v.SchemaWithPipe<readonly [v.Intersec
|
|
|
705
849
|
}) | undefined;
|
|
706
850
|
};
|
|
707
851
|
} | undefined;
|
|
852
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
853
|
+
name: string;
|
|
854
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
855
|
+
} & {
|
|
856
|
+
baseURL: string;
|
|
857
|
+
model: string;
|
|
858
|
+
} & {
|
|
859
|
+
apiKey?: string | undefined;
|
|
860
|
+
} & {
|
|
861
|
+
max_tokens: number;
|
|
862
|
+
top_p: number;
|
|
863
|
+
temperature: number;
|
|
864
|
+
frequency_penalty?: number | undefined;
|
|
865
|
+
presence_penalty?: number | undefined;
|
|
866
|
+
seed?: number | undefined;
|
|
867
|
+
stop?: string[] | undefined;
|
|
868
|
+
} & {
|
|
869
|
+
vendorOptions?: {
|
|
870
|
+
[x: string]: {
|
|
871
|
+
extraOptions?: ({
|
|
872
|
+
name: string;
|
|
873
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
874
|
+
} & {
|
|
875
|
+
baseURL: string;
|
|
876
|
+
model: string;
|
|
877
|
+
} & {
|
|
878
|
+
apiKey?: string | undefined;
|
|
879
|
+
} & {
|
|
880
|
+
max_tokens: number;
|
|
881
|
+
top_p: number;
|
|
882
|
+
temperature: number;
|
|
883
|
+
frequency_penalty?: number | undefined;
|
|
884
|
+
presence_penalty?: number | undefined;
|
|
885
|
+
seed?: number | undefined;
|
|
886
|
+
stop?: string[] | undefined;
|
|
887
|
+
}) | undefined;
|
|
888
|
+
};
|
|
889
|
+
} | undefined;
|
|
708
890
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
|
|
709
891
|
export declare const ChatParamsListDefine: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.IntersectSchema<[v.SchemaWithPipe<readonly [v.IntersectSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
710
892
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
|
|
@@ -717,6 +899,9 @@ export declare const ChatParamsListDefine: v.SchemaWithPipe<readonly [v.ArraySch
|
|
|
717
899
|
}, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
718
900
|
name: string;
|
|
719
901
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
902
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
903
|
+
name: string;
|
|
904
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
720
905
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
721
906
|
readonly baseURL: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, "http://127.0.0.1:11434/v1">, v.TitleAction<string, "地址">, v.DescriptionAction<string, "openai兼容接口">]>;
|
|
722
907
|
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`">]>;
|
|
@@ -724,15 +909,15 @@ export declare const ChatParamsListDefine: v.SchemaWithPipe<readonly [v.ArraySch
|
|
|
724
909
|
baseURL: string;
|
|
725
910
|
model: string;
|
|
726
911
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.ObjectSchema<{
|
|
727
|
-
readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">]>;
|
|
912
|
+
readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">, v.TitleAction<string | undefined, "apiKey">]>;
|
|
728
913
|
}, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
729
|
-
readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>]>;
|
|
730
|
-
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 或温度参数,但不要同时调整两者。">]>;
|
|
731
|
-
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,而不同时调整两者。">]>;
|
|
732
|
-
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。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">]>;
|
|
733
|
-
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之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">]>;
|
|
734
|
-
readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">]>;
|
|
735
|
-
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").DefineTypeAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
|
|
914
|
+
readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>, v.TitleAction<number, "max_tokens">]>;
|
|
915
|
+
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 或温度参数,但不要同时调整两者。">, v.TitleAction<number, "top_p">]>;
|
|
916
|
+
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,而不同时调整两者。">, v.TitleAction<number, "temperature">]>;
|
|
917
|
+
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。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">, v.TitleAction<number | undefined, "frequency_penalty">]>;
|
|
918
|
+
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之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">, v.TitleAction<number | undefined, "presence_penalty">]>;
|
|
919
|
+
readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">, v.TitleAction<number | undefined, "seed">]>;
|
|
920
|
+
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").DefineTypeAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, v.TitleAction<string[] | undefined, "stop">]>;
|
|
736
921
|
}, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
737
922
|
max_tokens: number;
|
|
738
923
|
top_p: number;
|
|
@@ -741,6 +926,14 @@ export declare const ChatParamsListDefine: v.SchemaWithPipe<readonly [v.ArraySch
|
|
|
741
926
|
presence_penalty?: number | undefined;
|
|
742
927
|
seed?: number | undefined;
|
|
743
928
|
stop?: string[] | undefined;
|
|
929
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
930
|
+
max_tokens: number;
|
|
931
|
+
top_p: number;
|
|
932
|
+
temperature: number;
|
|
933
|
+
frequency_penalty?: number | undefined;
|
|
934
|
+
presence_penalty?: number | undefined;
|
|
935
|
+
seed?: number | undefined;
|
|
936
|
+
stop?: string[] | undefined;
|
|
744
937
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
745
938
|
name: string;
|
|
746
939
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
@@ -757,6 +950,22 @@ export declare const ChatParamsListDefine: v.SchemaWithPipe<readonly [v.ArraySch
|
|
|
757
950
|
presence_penalty?: number | undefined;
|
|
758
951
|
seed?: number | undefined;
|
|
759
952
|
stop?: string[] | undefined;
|
|
953
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
954
|
+
name: string;
|
|
955
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
956
|
+
} & {
|
|
957
|
+
baseURL: string;
|
|
958
|
+
model: string;
|
|
959
|
+
} & {
|
|
960
|
+
apiKey?: string | undefined;
|
|
961
|
+
} & {
|
|
962
|
+
max_tokens: number;
|
|
963
|
+
top_p: number;
|
|
964
|
+
temperature: number;
|
|
965
|
+
frequency_penalty?: number | undefined;
|
|
966
|
+
presence_penalty?: number | undefined;
|
|
967
|
+
seed?: number | undefined;
|
|
968
|
+
stop?: string[] | undefined;
|
|
760
969
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
|
|
761
970
|
name: string;
|
|
762
971
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
@@ -787,6 +996,9 @@ export declare const ChatParamsListDefine: v.SchemaWithPipe<readonly [v.ArraySch
|
|
|
787
996
|
}, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
788
997
|
name: string;
|
|
789
998
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
999
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
1000
|
+
name: string;
|
|
1001
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
790
1002
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, "entries" | "~standard" | "~run" | "~types"> & {
|
|
791
1003
|
readonly entries: Omit<{
|
|
792
1004
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
|
|
@@ -838,15 +1050,15 @@ export declare const ChatParamsListDefine: v.SchemaWithPipe<readonly [v.ArraySch
|
|
|
838
1050
|
baseURL: string;
|
|
839
1051
|
model: string;
|
|
840
1052
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.ObjectSchema<{
|
|
841
|
-
readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">]>;
|
|
1053
|
+
readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">, v.TitleAction<string | undefined, "apiKey">]>;
|
|
842
1054
|
}, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
843
|
-
readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>]>;
|
|
844
|
-
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 或温度参数,但不要同时调整两者。">]>;
|
|
845
|
-
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,而不同时调整两者。">]>;
|
|
846
|
-
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。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">]>;
|
|
847
|
-
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之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">]>;
|
|
848
|
-
readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">]>;
|
|
849
|
-
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").DefineTypeAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
|
|
1055
|
+
readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>, v.TitleAction<number, "max_tokens">]>;
|
|
1056
|
+
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 或温度参数,但不要同时调整两者。">, v.TitleAction<number, "top_p">]>;
|
|
1057
|
+
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,而不同时调整两者。">, v.TitleAction<number, "temperature">]>;
|
|
1058
|
+
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。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">, v.TitleAction<number | undefined, "frequency_penalty">]>;
|
|
1059
|
+
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之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">, v.TitleAction<number | undefined, "presence_penalty">]>;
|
|
1060
|
+
readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">, v.TitleAction<number | undefined, "seed">]>;
|
|
1061
|
+
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").DefineTypeAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, v.TitleAction<string[] | undefined, "stop">]>;
|
|
850
1062
|
}, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
851
1063
|
max_tokens: number;
|
|
852
1064
|
top_p: number;
|
|
@@ -855,6 +1067,14 @@ export declare const ChatParamsListDefine: v.SchemaWithPipe<readonly [v.ArraySch
|
|
|
855
1067
|
presence_penalty?: number | undefined;
|
|
856
1068
|
seed?: number | undefined;
|
|
857
1069
|
stop?: string[] | undefined;
|
|
1070
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
1071
|
+
max_tokens: number;
|
|
1072
|
+
top_p: number;
|
|
1073
|
+
temperature: number;
|
|
1074
|
+
frequency_penalty?: number | undefined;
|
|
1075
|
+
presence_penalty?: number | undefined;
|
|
1076
|
+
seed?: number | undefined;
|
|
1077
|
+
stop?: string[] | undefined;
|
|
858
1078
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
859
1079
|
name: string;
|
|
860
1080
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
@@ -871,6 +1091,22 @@ export declare const ChatParamsListDefine: v.SchemaWithPipe<readonly [v.ArraySch
|
|
|
871
1091
|
presence_penalty?: number | undefined;
|
|
872
1092
|
seed?: number | undefined;
|
|
873
1093
|
stop?: string[] | undefined;
|
|
1094
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
1095
|
+
name: string;
|
|
1096
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
1097
|
+
} & {
|
|
1098
|
+
baseURL: string;
|
|
1099
|
+
model: string;
|
|
1100
|
+
} & {
|
|
1101
|
+
apiKey?: string | undefined;
|
|
1102
|
+
} & {
|
|
1103
|
+
max_tokens: number;
|
|
1104
|
+
top_p: number;
|
|
1105
|
+
temperature: number;
|
|
1106
|
+
frequency_penalty?: number | undefined;
|
|
1107
|
+
presence_penalty?: number | undefined;
|
|
1108
|
+
seed?: number | undefined;
|
|
1109
|
+
stop?: string[] | undefined;
|
|
874
1110
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
|
|
875
1111
|
name: string;
|
|
876
1112
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
@@ -922,6 +1158,24 @@ export declare const ChatParamsListDefine: v.SchemaWithPipe<readonly [v.ArraySch
|
|
|
922
1158
|
seed?: number | undefined;
|
|
923
1159
|
stop?: string[] | undefined;
|
|
924
1160
|
}) | undefined;
|
|
1161
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
1162
|
+
extraOptions?: ({
|
|
1163
|
+
name: string;
|
|
1164
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
1165
|
+
} & {
|
|
1166
|
+
baseURL: string;
|
|
1167
|
+
model: string;
|
|
1168
|
+
} & {
|
|
1169
|
+
apiKey?: string | undefined;
|
|
1170
|
+
} & {
|
|
1171
|
+
max_tokens: number;
|
|
1172
|
+
top_p: number;
|
|
1173
|
+
temperature: number;
|
|
1174
|
+
frequency_penalty?: number | undefined;
|
|
1175
|
+
presence_penalty?: number | undefined;
|
|
1176
|
+
seed?: number | undefined;
|
|
1177
|
+
stop?: string[] | undefined;
|
|
1178
|
+
}) | undefined;
|
|
925
1179
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
|
|
926
1180
|
extraOptions?: ({
|
|
927
1181
|
name: string;
|
|
@@ -1097,6 +1351,44 @@ export declare const ChatParamsListDefine: v.SchemaWithPipe<readonly [v.ArraySch
|
|
|
1097
1351
|
}) | undefined;
|
|
1098
1352
|
};
|
|
1099
1353
|
} | undefined;
|
|
1354
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
1355
|
+
name: string;
|
|
1356
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
1357
|
+
} & {
|
|
1358
|
+
baseURL: string;
|
|
1359
|
+
model: string;
|
|
1360
|
+
} & {
|
|
1361
|
+
apiKey?: string | undefined;
|
|
1362
|
+
} & {
|
|
1363
|
+
max_tokens: number;
|
|
1364
|
+
top_p: number;
|
|
1365
|
+
temperature: number;
|
|
1366
|
+
frequency_penalty?: number | undefined;
|
|
1367
|
+
presence_penalty?: number | undefined;
|
|
1368
|
+
seed?: number | undefined;
|
|
1369
|
+
stop?: string[] | undefined;
|
|
1370
|
+
} & {
|
|
1371
|
+
vendorOptions?: {
|
|
1372
|
+
[x: string]: {
|
|
1373
|
+
extraOptions?: ({
|
|
1374
|
+
name: string;
|
|
1375
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
1376
|
+
} & {
|
|
1377
|
+
baseURL: string;
|
|
1378
|
+
model: string;
|
|
1379
|
+
} & {
|
|
1380
|
+
apiKey?: string | undefined;
|
|
1381
|
+
} & {
|
|
1382
|
+
max_tokens: number;
|
|
1383
|
+
top_p: number;
|
|
1384
|
+
temperature: number;
|
|
1385
|
+
frequency_penalty?: number | undefined;
|
|
1386
|
+
presence_penalty?: number | undefined;
|
|
1387
|
+
seed?: number | undefined;
|
|
1388
|
+
stop?: string[] | undefined;
|
|
1389
|
+
}) | undefined;
|
|
1390
|
+
};
|
|
1391
|
+
} | undefined;
|
|
1100
1392
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, undefined>, import("@piying/valibot-visit").DefineTypeAction<({
|
|
1101
1393
|
name: string;
|
|
1102
1394
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
@@ -1225,6 +1517,9 @@ export declare const InputChatOptionsDefine: v.SchemaWithPipe<readonly [v.Inters
|
|
|
1225
1517
|
}, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
1226
1518
|
name: string;
|
|
1227
1519
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
1520
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
1521
|
+
name: string;
|
|
1522
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
1228
1523
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, "entries" | "~standard" | "~run" | "~types"> & {
|
|
1229
1524
|
readonly entries: Omit<{
|
|
1230
1525
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
|
|
@@ -1259,15 +1554,15 @@ export declare const InputChatOptionsDefine: v.SchemaWithPipe<readonly [v.Inters
|
|
|
1259
1554
|
baseURL: string;
|
|
1260
1555
|
model: string;
|
|
1261
1556
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.ObjectSchema<{
|
|
1262
|
-
readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">]>;
|
|
1557
|
+
readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">, v.TitleAction<string | undefined, "apiKey">]>;
|
|
1263
1558
|
}, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1264
|
-
readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>]>;
|
|
1265
|
-
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 或温度参数,但不要同时调整两者。">]>;
|
|
1266
|
-
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,而不同时调整两者。">]>;
|
|
1267
|
-
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。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">]>;
|
|
1268
|
-
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之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">]>;
|
|
1269
|
-
readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">]>;
|
|
1270
|
-
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").DefineTypeAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
|
|
1559
|
+
readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>, v.TitleAction<number, "max_tokens">]>;
|
|
1560
|
+
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 或温度参数,但不要同时调整两者。">, v.TitleAction<number, "top_p">]>;
|
|
1561
|
+
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,而不同时调整两者。">, v.TitleAction<number, "temperature">]>;
|
|
1562
|
+
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。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">, v.TitleAction<number | undefined, "frequency_penalty">]>;
|
|
1563
|
+
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之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">, v.TitleAction<number | undefined, "presence_penalty">]>;
|
|
1564
|
+
readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">, v.TitleAction<number | undefined, "seed">]>;
|
|
1565
|
+
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").DefineTypeAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, v.TitleAction<string[] | undefined, "stop">]>;
|
|
1271
1566
|
}, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
1272
1567
|
max_tokens: number;
|
|
1273
1568
|
top_p: number;
|
|
@@ -1276,6 +1571,14 @@ export declare const InputChatOptionsDefine: v.SchemaWithPipe<readonly [v.Inters
|
|
|
1276
1571
|
presence_penalty?: number | undefined;
|
|
1277
1572
|
seed?: number | undefined;
|
|
1278
1573
|
stop?: string[] | undefined;
|
|
1574
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
1575
|
+
max_tokens: number;
|
|
1576
|
+
top_p: number;
|
|
1577
|
+
temperature: number;
|
|
1578
|
+
frequency_penalty?: number | undefined;
|
|
1579
|
+
presence_penalty?: number | undefined;
|
|
1580
|
+
seed?: number | undefined;
|
|
1581
|
+
stop?: string[] | undefined;
|
|
1279
1582
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>], undefined>, v.ObjectSchema<{
|
|
1280
1583
|
readonly vendorOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.IntersectSchema<[v.ObjectSchema<{
|
|
1281
1584
|
/** @internal */
|
|
@@ -1290,6 +1593,9 @@ export declare const InputChatOptionsDefine: v.SchemaWithPipe<readonly [v.Inters
|
|
|
1290
1593
|
}, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
1291
1594
|
name: string;
|
|
1292
1595
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
1596
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
1597
|
+
name: string;
|
|
1598
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
1293
1599
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, "entries" | "~standard" | "~run" | "~types"> & {
|
|
1294
1600
|
readonly entries: Omit<{
|
|
1295
1601
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
|
|
@@ -1341,15 +1647,15 @@ export declare const InputChatOptionsDefine: v.SchemaWithPipe<readonly [v.Inters
|
|
|
1341
1647
|
baseURL: string;
|
|
1342
1648
|
model: string;
|
|
1343
1649
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, v.ObjectSchema<{
|
|
1344
|
-
readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">]>;
|
|
1650
|
+
readonly apiKey: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "本地部署默认可以不填">, v.TitleAction<string | undefined, "apiKey">]>;
|
|
1345
1651
|
}, undefined>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1346
|
-
readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>]>;
|
|
1347
|
-
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 或温度参数,但不要同时调整两者。">]>;
|
|
1348
|
-
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,而不同时调整两者。">]>;
|
|
1349
|
-
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。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">]>;
|
|
1350
|
-
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之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">]>;
|
|
1351
|
-
readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">]>;
|
|
1352
|
-
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").DefineTypeAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
|
|
1652
|
+
readonly max_tokens: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NumberSchema<undefined>, 8192>, v.TitleAction<number, "max_tokens">]>;
|
|
1653
|
+
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 或温度参数,但不要同时调整两者。">, v.TitleAction<number, "top_p">]>;
|
|
1654
|
+
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,而不同时调整两者。">, v.TitleAction<number, "temperature">]>;
|
|
1655
|
+
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。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。">, v.TitleAction<number | undefined, "frequency_penalty">]>;
|
|
1656
|
+
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之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。">, v.TitleAction<number | undefined, "presence_penalty">]>;
|
|
1657
|
+
readonly seed: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>]>, undefined>, v.DescriptionAction<number | undefined, "若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。">, v.TitleAction<number | undefined, "seed">]>;
|
|
1658
|
+
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").DefineTypeAction<string[] | undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", string[] | undefined, import("@piying/view-angular-core").AnyCoreSchemaHandle>, v.TitleAction<string[] | undefined, "stop">]>;
|
|
1353
1659
|
}, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
1354
1660
|
max_tokens: number;
|
|
1355
1661
|
top_p: number;
|
|
@@ -1358,6 +1664,14 @@ export declare const InputChatOptionsDefine: v.SchemaWithPipe<readonly [v.Inters
|
|
|
1358
1664
|
presence_penalty?: number | undefined;
|
|
1359
1665
|
seed?: number | undefined;
|
|
1360
1666
|
stop?: string[] | undefined;
|
|
1667
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
1668
|
+
max_tokens: number;
|
|
1669
|
+
top_p: number;
|
|
1670
|
+
temperature: number;
|
|
1671
|
+
frequency_penalty?: number | undefined;
|
|
1672
|
+
presence_penalty?: number | undefined;
|
|
1673
|
+
seed?: number | undefined;
|
|
1674
|
+
stop?: string[] | undefined;
|
|
1361
1675
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>], undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
1362
1676
|
name: string;
|
|
1363
1677
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
@@ -1374,6 +1688,22 @@ export declare const InputChatOptionsDefine: v.SchemaWithPipe<readonly [v.Inters
|
|
|
1374
1688
|
presence_penalty?: number | undefined;
|
|
1375
1689
|
seed?: number | undefined;
|
|
1376
1690
|
stop?: string[] | undefined;
|
|
1691
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
1692
|
+
name: string;
|
|
1693
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
1694
|
+
} & {
|
|
1695
|
+
baseURL: string;
|
|
1696
|
+
model: string;
|
|
1697
|
+
} & {
|
|
1698
|
+
apiKey?: string | undefined;
|
|
1699
|
+
} & {
|
|
1700
|
+
max_tokens: number;
|
|
1701
|
+
top_p: number;
|
|
1702
|
+
temperature: number;
|
|
1703
|
+
frequency_penalty?: number | undefined;
|
|
1704
|
+
presence_penalty?: number | undefined;
|
|
1705
|
+
seed?: number | undefined;
|
|
1706
|
+
stop?: string[] | undefined;
|
|
1377
1707
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
|
|
1378
1708
|
name: string;
|
|
1379
1709
|
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
@@ -1425,6 +1755,24 @@ export declare const InputChatOptionsDefine: v.SchemaWithPipe<readonly [v.Inters
|
|
|
1425
1755
|
seed?: number | undefined;
|
|
1426
1756
|
stop?: string[] | undefined;
|
|
1427
1757
|
}) | undefined;
|
|
1758
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
1759
|
+
extraOptions?: ({
|
|
1760
|
+
name: string;
|
|
1761
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
1762
|
+
} & {
|
|
1763
|
+
baseURL: string;
|
|
1764
|
+
model: string;
|
|
1765
|
+
} & {
|
|
1766
|
+
apiKey?: string | undefined;
|
|
1767
|
+
} & {
|
|
1768
|
+
max_tokens: number;
|
|
1769
|
+
top_p: number;
|
|
1770
|
+
temperature: number;
|
|
1771
|
+
frequency_penalty?: number | undefined;
|
|
1772
|
+
presence_penalty?: number | undefined;
|
|
1773
|
+
seed?: number | undefined;
|
|
1774
|
+
stop?: string[] | undefined;
|
|
1775
|
+
}) | undefined;
|
|
1428
1776
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").VirtualGroupAction<{
|
|
1429
1777
|
extraOptions?: ({
|
|
1430
1778
|
name: string;
|
|
@@ -1600,5 +1948,43 @@ export declare const InputChatOptionsDefine: v.SchemaWithPipe<readonly [v.Inters
|
|
|
1600
1948
|
}) | undefined;
|
|
1601
1949
|
};
|
|
1602
1950
|
} | undefined;
|
|
1951
|
+
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
|
|
1952
|
+
name: string;
|
|
1953
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
1954
|
+
} & {
|
|
1955
|
+
baseURL: string;
|
|
1956
|
+
model: string;
|
|
1957
|
+
} & {
|
|
1958
|
+
apiKey?: string | undefined;
|
|
1959
|
+
} & {
|
|
1960
|
+
max_tokens: number;
|
|
1961
|
+
top_p: number;
|
|
1962
|
+
temperature: number;
|
|
1963
|
+
frequency_penalty?: number | undefined;
|
|
1964
|
+
presence_penalty?: number | undefined;
|
|
1965
|
+
seed?: number | undefined;
|
|
1966
|
+
stop?: string[] | undefined;
|
|
1967
|
+
} & {
|
|
1968
|
+
vendorOptions?: {
|
|
1969
|
+
[x: string]: {
|
|
1970
|
+
extraOptions?: ({
|
|
1971
|
+
name: string;
|
|
1972
|
+
vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
|
|
1973
|
+
} & {
|
|
1974
|
+
baseURL: string;
|
|
1975
|
+
model: string;
|
|
1976
|
+
} & {
|
|
1977
|
+
apiKey?: string | undefined;
|
|
1978
|
+
} & {
|
|
1979
|
+
max_tokens: number;
|
|
1980
|
+
top_p: number;
|
|
1981
|
+
temperature: number;
|
|
1982
|
+
frequency_penalty?: number | undefined;
|
|
1983
|
+
presence_penalty?: number | undefined;
|
|
1984
|
+
seed?: number | undefined;
|
|
1985
|
+
stop?: string[] | undefined;
|
|
1986
|
+
}) | undefined;
|
|
1987
|
+
};
|
|
1988
|
+
} | undefined;
|
|
1603
1989
|
}, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
|
|
1604
1990
|
export type CreateChatModelOptions = v.InferInput<typeof InputChatOptionsDefine>;
|