@shenghuabi/openai 1.0.0 → 1.0.2

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.
@@ -69,7 +69,7 @@ export declare const ChatItemDefine: v.SchemaWithPipe<readonly [v.IntersectSchem
69
69
  }>]>;
70
70
  export declare const VendorOptionsDefine: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.IntersectSchema<[v.ObjectSchema<{
71
71
  /** @internal */
72
- readonly extraOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.IntersectSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
72
+ readonly extraOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.IntersectSchema<[Omit<Omit<v.SchemaWithPipe<readonly [v.ObjectSchema<{
73
73
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
74
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
75
  readonly enumOptions: {
@@ -80,7 +80,51 @@ export declare const VendorOptionsDefine: v.SchemaWithPipe<readonly [v.OptionalS
80
80
  }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
81
81
  name: string;
82
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<{
83
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, "entries" | "~standard" | "~run" | "~types"> & {
84
+ readonly entries: Omit<{
85
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
86
+ 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", {
87
+ readonly enumOptions: {
88
+ label: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
89
+ description: string;
90
+ }[];
91
+ }>, 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>]>;
92
+ }, "name">;
93
+ readonly "~standard": v.StandardProps<{
94
+ vendor?: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude" | undefined;
95
+ }, {
96
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
97
+ }>;
98
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
99
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
100
+ }, v.PicklistIssue | v.ObjectIssue>;
101
+ readonly "~types"?: {
102
+ readonly input: {
103
+ vendor?: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude" | undefined;
104
+ };
105
+ readonly output: {
106
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
107
+ };
108
+ readonly issue: v.PicklistIssue | v.ObjectIssue;
109
+ } | undefined;
110
+ }, "entries" | "~standard" | "~run" | "~types"> & {
111
+ readonly entries: Omit<Omit<{
112
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
113
+ 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", {
114
+ readonly enumOptions: {
115
+ label: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
116
+ description: string;
117
+ }[];
118
+ }>, 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>]>;
119
+ }, "name">, "vendor">;
120
+ readonly "~standard": v.StandardProps<{}, {}>;
121
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{}, v.ObjectIssue>;
122
+ readonly "~types"?: {
123
+ readonly input: {};
124
+ readonly output: {};
125
+ readonly issue: v.ObjectIssue;
126
+ } | undefined;
127
+ }, v.SchemaWithPipe<readonly [v.ObjectSchema<{
84
128
  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
129
  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
130
  }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
@@ -340,7 +384,7 @@ export declare const ChatParamsItemDefine: v.SchemaWithPipe<readonly [v.Intersec
340
384
  }>]>, v.ObjectSchema<{
341
385
  readonly vendorOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.IntersectSchema<[v.ObjectSchema<{
342
386
  /** @internal */
343
- readonly extraOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.IntersectSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
387
+ readonly extraOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.IntersectSchema<[Omit<Omit<v.SchemaWithPipe<readonly [v.ObjectSchema<{
344
388
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
345
389
  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
390
  readonly enumOptions: {
@@ -351,7 +395,51 @@ export declare const ChatParamsItemDefine: v.SchemaWithPipe<readonly [v.Intersec
351
395
  }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
352
396
  name: string;
353
397
  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<{
398
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, "entries" | "~standard" | "~run" | "~types"> & {
399
+ readonly entries: Omit<{
400
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
401
+ 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", {
402
+ readonly enumOptions: {
403
+ label: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
404
+ description: string;
405
+ }[];
406
+ }>, 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>]>;
407
+ }, "name">;
408
+ readonly "~standard": v.StandardProps<{
409
+ vendor?: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude" | undefined;
410
+ }, {
411
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
412
+ }>;
413
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
414
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
415
+ }, v.PicklistIssue | v.ObjectIssue>;
416
+ readonly "~types"?: {
417
+ readonly input: {
418
+ vendor?: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude" | undefined;
419
+ };
420
+ readonly output: {
421
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
422
+ };
423
+ readonly issue: v.PicklistIssue | v.ObjectIssue;
424
+ } | undefined;
425
+ }, "entries" | "~standard" | "~run" | "~types"> & {
426
+ readonly entries: Omit<Omit<{
427
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
428
+ 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", {
429
+ readonly enumOptions: {
430
+ label: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
431
+ description: string;
432
+ }[];
433
+ }>, 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>]>;
434
+ }, "name">, "vendor">;
435
+ readonly "~standard": v.StandardProps<{}, {}>;
436
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{}, v.ObjectIssue>;
437
+ readonly "~types"?: {
438
+ readonly input: {};
439
+ readonly output: {};
440
+ readonly issue: v.ObjectIssue;
441
+ } | undefined;
442
+ }, v.SchemaWithPipe<readonly [v.ObjectSchema<{
355
443
  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
444
  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
445
  }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
@@ -688,7 +776,7 @@ export declare const ChatParamsListDefine: v.SchemaWithPipe<readonly [v.ArraySch
688
776
  }>]>, v.ObjectSchema<{
689
777
  readonly vendorOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.IntersectSchema<[v.ObjectSchema<{
690
778
  /** @internal */
691
- readonly extraOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.IntersectSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
779
+ readonly extraOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.IntersectSchema<[Omit<Omit<v.SchemaWithPipe<readonly [v.ObjectSchema<{
692
780
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
693
781
  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
782
  readonly enumOptions: {
@@ -699,7 +787,51 @@ export declare const ChatParamsListDefine: v.SchemaWithPipe<readonly [v.ArraySch
699
787
  }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
700
788
  name: string;
701
789
  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<{
790
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, "entries" | "~standard" | "~run" | "~types"> & {
791
+ readonly entries: Omit<{
792
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
793
+ 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", {
794
+ readonly enumOptions: {
795
+ label: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
796
+ description: string;
797
+ }[];
798
+ }>, 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>]>;
799
+ }, "name">;
800
+ readonly "~standard": v.StandardProps<{
801
+ vendor?: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude" | undefined;
802
+ }, {
803
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
804
+ }>;
805
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
806
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
807
+ }, v.PicklistIssue | v.ObjectIssue>;
808
+ readonly "~types"?: {
809
+ readonly input: {
810
+ vendor?: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude" | undefined;
811
+ };
812
+ readonly output: {
813
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
814
+ };
815
+ readonly issue: v.PicklistIssue | v.ObjectIssue;
816
+ } | undefined;
817
+ }, "entries" | "~standard" | "~run" | "~types"> & {
818
+ readonly entries: Omit<Omit<{
819
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
820
+ 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", {
821
+ readonly enumOptions: {
822
+ label: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
823
+ description: string;
824
+ }[];
825
+ }>, 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>]>;
826
+ }, "name">, "vendor">;
827
+ readonly "~standard": v.StandardProps<{}, {}>;
828
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{}, v.ObjectIssue>;
829
+ readonly "~types"?: {
830
+ readonly input: {};
831
+ readonly output: {};
832
+ readonly issue: v.ObjectIssue;
833
+ } | undefined;
834
+ }, v.SchemaWithPipe<readonly [v.ObjectSchema<{
703
835
  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
836
  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
837
  }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
@@ -1082,7 +1214,7 @@ export declare const ChatParamsListDefine: v.SchemaWithPipe<readonly [v.ArraySch
1082
1214
  })[], import("@piying/view-angular-core").AnyCoreSchemaHandle>]>;
1083
1215
  export type ChatModelOptions = v.InferOutput<typeof ChatParamsItemDefine>;
1084
1216
  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<{
1217
+ export declare const InputChatOptionsDefine: v.SchemaWithPipe<readonly [v.IntersectSchema<[v.IntersectSchema<[Omit<v.SchemaWithPipe<readonly [v.ObjectSchema<{
1086
1218
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
1087
1219
  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
1220
  readonly enumOptions: {
@@ -1093,7 +1225,34 @@ export declare const InputChatOptionsDefine: v.SchemaWithPipe<readonly [v.Inters
1093
1225
  }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
1094
1226
  name: string;
1095
1227
  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<{
1228
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, "entries" | "~standard" | "~run" | "~types"> & {
1229
+ readonly entries: Omit<{
1230
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
1231
+ 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", {
1232
+ readonly enumOptions: {
1233
+ label: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1234
+ description: string;
1235
+ }[];
1236
+ }>, 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>]>;
1237
+ }, "name">;
1238
+ readonly "~standard": v.StandardProps<{
1239
+ vendor?: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude" | undefined;
1240
+ }, {
1241
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1242
+ }>;
1243
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
1244
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1245
+ }, v.PicklistIssue | v.ObjectIssue>;
1246
+ readonly "~types"?: {
1247
+ readonly input: {
1248
+ vendor?: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude" | undefined;
1249
+ };
1250
+ readonly output: {
1251
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1252
+ };
1253
+ readonly issue: v.PicklistIssue | v.ObjectIssue;
1254
+ } | undefined;
1255
+ }, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1097
1256
  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
1257
  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
1258
  }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
@@ -1117,42 +1276,10 @@ export declare const InputChatOptionsDefine: v.SchemaWithPipe<readonly [v.Inters
1117
1276
  presence_penalty?: number | undefined;
1118
1277
  seed?: number | undefined;
1119
1278
  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<{
1279
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>], undefined>, v.ObjectSchema<{
1153
1280
  readonly vendorOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.IntersectSchema<[v.ObjectSchema<{
1154
1281
  /** @internal */
1155
- readonly extraOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.IntersectSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
1282
+ readonly extraOptions: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.IntersectSchema<[Omit<Omit<v.SchemaWithPipe<readonly [v.ObjectSchema<{
1156
1283
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
1157
1284
  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
1285
  readonly enumOptions: {
@@ -1163,7 +1290,51 @@ export declare const InputChatOptionsDefine: v.SchemaWithPipe<readonly [v.Inters
1163
1290
  }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
1164
1291
  name: string;
1165
1292
  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<{
1293
+ }, import("@piying/view-angular-core").AnyCoreSchemaHandle>]>, "entries" | "~standard" | "~run" | "~types"> & {
1294
+ readonly entries: Omit<{
1295
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
1296
+ 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", {
1297
+ readonly enumOptions: {
1298
+ label: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1299
+ description: string;
1300
+ }[];
1301
+ }>, 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>]>;
1302
+ }, "name">;
1303
+ readonly "~standard": v.StandardProps<{
1304
+ vendor?: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude" | undefined;
1305
+ }, {
1306
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1307
+ }>;
1308
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
1309
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1310
+ }, v.PicklistIssue | v.ObjectIssue>;
1311
+ readonly "~types"?: {
1312
+ readonly input: {
1313
+ vendor?: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude" | undefined;
1314
+ };
1315
+ readonly output: {
1316
+ vendor: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1317
+ };
1318
+ readonly issue: v.PicklistIssue | v.ObjectIssue;
1319
+ } | undefined;
1320
+ }, "entries" | "~standard" | "~run" | "~types"> & {
1321
+ readonly entries: Omit<Omit<{
1322
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TitleAction<string, "配置名">]>;
1323
+ 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", {
1324
+ readonly enumOptions: {
1325
+ label: "deepseek" | "openai" | "360" | "azure" | "moonshot" | "baichuan" | "minimax" | "mistralai" | "groq" | "lingyiwanwu" | "stepfun" | "together.ai" | "volcengine" | "novita" | "siliconflow" | "tongyi" | "zhipu" | "spark" | "hunyuan" | "gemini" | "claude";
1326
+ description: string;
1327
+ }[];
1328
+ }>, 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>]>;
1329
+ }, "name">, "vendor">;
1330
+ readonly "~standard": v.StandardProps<{}, {}>;
1331
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{}, v.ObjectIssue>;
1332
+ readonly "~types"?: {
1333
+ readonly input: {};
1334
+ readonly output: {};
1335
+ readonly issue: v.ObjectIssue;
1336
+ } | undefined;
1337
+ }, v.SchemaWithPipe<readonly [v.ObjectSchema<{
1167
1338
  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
1339
  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
1340
  }, undefined>, import("@piying/valibot-visit").RawConfigAction<"viewRawConfig", {
package/define/index.js CHANGED
@@ -250,15 +250,13 @@ var ChatItemDefine = v2.pipe(
250
250
  v2.description("大语言模型提供的厂商"),
251
251
  v2.title("对话厂商"),
252
252
  v2.metadata({
253
- enumOptions: VendorList.map((item) => {
254
- return {
255
- label: item.label,
256
- description: [
257
- item.options.description ? item.options.description : "",
258
- item.options.baseURL ? `链接: ${item.options.baseURL}` : ""
259
- ].filter(Boolean).join("\n")
260
- };
261
- })
253
+ enumOptions: VendorList.map((item) => ({
254
+ label: item.label,
255
+ description: [
256
+ item.options.description ? item.options.description : "",
257
+ item.options.baseURL ? `链接: ${item.options.baseURL}` : ""
258
+ ].filter(Boolean).join("\n")
259
+ }))
262
260
  }),
263
261
  (0, import_view_angular_core.patchInputs)({
264
262
  options: VendorList
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../packages/openai/define/index.ts", "../../../packages/openai/chat/message.define.ts", "../../../packages/openai/chat/options.define.ts"],
4
- "sourcesContent": ["export * from '../chat/message.define';\nexport * from '../chat/options.define';\n", "import * as v from 'valibot';\nexport const ChatCompletionContentPartStr = v.object({\n text: v.string(),\n type: v.optional(v.literal('text'), 'text'),\n});\nexport type ChatCompletionContentPartStrType = v.InferOutput<\n typeof ChatCompletionContentPartStr\n>;\n\nexport const ChatCompletionContentPartImage = v.object({\n image_url: v.object({\n url: v.string(),\n detail: v.optional(v.picklist(['auto', 'low', 'high'])),\n }),\n type: v.optional(v.literal('image_url'), 'image_url'),\n});\nexport type ChatCompletionContentPartImageType = v.InferOutput<\n typeof ChatCompletionContentPartImage\n>;\nexport const ChatCompletionContentPart = v.array(\n v.union([ChatCompletionContentPartStr, ChatCompletionContentPartImage]),\n);\nexport const SystemChatCompletionContent = v.array(\n ChatCompletionContentPartStr,\n);\nexport const UserChatCompletionContent = ChatCompletionContentPart;\nexport type UserChatCompletionContentType = v.InferOutput<\n typeof UserChatCompletionContent\n>;\nexport const AssistantChatCompletionContent = v.array(\n ChatCompletionContentPartStr,\n);\nexport const SystemChatMessage = v.object({\n role: v.optional(v.literal('system'), 'system'),\n content: SystemChatCompletionContent,\n});\nexport type SystemChatMessageType = v.InferOutput<typeof SystemChatMessage>;\nexport const UserChatMessage = v.object({\n role: v.optional(v.literal('user'), 'user'),\n content: UserChatCompletionContent,\n});\nexport type UserChatMessageType = v.InferOutput<typeof UserChatMessage>;\n\nexport const AssistantChatMessage = v.object({\n role: v.optional(v.literal('assistant'), 'assistant'),\n content: AssistantChatCompletionContent,\n thinkContent: v.optional(v.string()),\n});\n\nexport type AssistantChatMessageType = v.InferOutput<\n typeof AssistantChatMessage\n>;\n\nexport const ChatMessageItemDefine = v.union([\n SystemChatMessage,\n UserChatMessage,\n AssistantChatMessage,\n]);\nexport type ChatMessageItemType = v.InferOutput<typeof ChatMessageItemDefine>;\nexport const ChatMessageListDefine = v.array(ChatMessageItemDefine);\n\nexport type ChatMessageListOutputType = v.InferOutput<\n typeof ChatMessageListDefine\n>;\nexport type ChatMessageListInputType = v.InferOutput<\n typeof ChatMessageListDefine\n>;\n", "import {\n asControl,\n componentClass,\n hideWhen,\n patchInputs,\n patchProps,\n patchWrappers,\n setComponent,\n} from '@piying/view-angular-core';\nimport { map, of } from 'rxjs';\nimport * as v from 'valibot';\nimport {\n asVirtualGroup,\n metadataPipe,\n omitIntersect,\n} from '@piying/valibot-visit';\nconst VendorList = [\n {\n value: 'openai',\n label: 'openai',\n options: {\n baseURL: '',\n modelList: [],\n description: '如果是openai兼容的厂商,需要设置baseURL',\n },\n },\n {\n value: '360',\n label: '360',\n options: { baseURL: 'https://ai.360.cn', modelList: [] },\n },\n {\n value: 'azure',\n label: 'azure',\n options: { baseURL: '', modelList: [] },\n },\n {\n value: 'moonshot',\n label: 'moonshot',\n options: { baseURL: 'https://api.moonshot.cn', modelList: [] },\n },\n {\n value: 'baichuan',\n label: 'baichuan',\n options: { baseURL: 'https://api.baichuan-ai.com', modelList: [] },\n },\n {\n value: 'minimax',\n label: 'minimax',\n options: { baseURL: 'https://api.minimax.chat', modelList: [] },\n },\n {\n value: 'mistralai',\n label: 'mistralai',\n options: { baseURL: 'https://api.mistral.ai', modelList: [] },\n },\n {\n value: 'groq',\n label: 'groq',\n options: { baseURL: 'https://api.groq.com/openai', modelList: [] },\n },\n {\n value: 'lingyiwanwu',\n label: 'lingyiwanwu',\n options: { baseURL: 'https://api.lingyiwanwu.com', modelList: [] },\n },\n {\n value: 'stepfun',\n label: 'stepfun',\n options: { baseURL: 'https://api.stepfun.com', modelList: [] },\n },\n {\n value: 'deepseek',\n label: 'deepseek',\n options: { baseURL: 'https://api.deepseek.com', modelList: [] },\n },\n {\n value: 'together.ai',\n label: 'together.ai',\n options: { baseURL: 'https://api.together.xyz', modelList: [] },\n },\n {\n value: 'volcengine',\n label: 'volcengine',\n options: {\n baseURL: 'https://ark.cn-beijing.volces.com/api/v3',\n modelList: [],\n },\n },\n {\n value: 'novita',\n label: 'novita',\n options: { baseURL: 'https://api.novita.ai/v3/openai', modelList: [] },\n },\n {\n value: 'siliconflow',\n label: 'siliconflow',\n options: { baseURL: 'https://api.siliconflow.cn', modelList: [] },\n },\n {\n value: 'tongyi',\n label: 'tongyi',\n options: {\n baseURL: 'https://dashscope.aliyuncs.com/compatible-mode/v1',\n modelList: [],\n },\n },\n {\n value: 'zhipu',\n label: 'zhipu',\n options: {\n baseURL: 'https://open.bigmodel.cn/api/paas/v4',\n modelList: [],\n },\n },\n {\n value: 'spark',\n label: 'spark',\n options: {\n baseURL: 'https://spark-api-open.xf-yun.com/v1',\n modelList: [],\n },\n },\n {\n value: 'hunyuan',\n label: 'hunyuan',\n options: {\n baseURL: 'https://api.hunyuan.cloud.tencent.com/v1',\n modelList: [],\n },\n },\n\n {\n value: 'gemini',\n label: 'gemini',\n options: {\n baseURL: '',\n modelList: [],\n description: '非openai兼容,手动适配,如果有问题欢迎报告',\n },\n },\n {\n value: 'claude',\n label: 'claude',\n options: {\n baseURL: '',\n modelList: [],\n description: '非openai兼容,手动适配,如果有问题欢迎报告',\n },\n },\n] as const;\nconst vendorOptionsDescribe = `## 通用参数\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`;\nconst InputWrapper = metadataPipe(patchWrappers(['tooltip', 'form-field']));\n\nexport const ChatItemDefine = v.pipe(\n v.intersect([\n v.pipe(\n v.object({\n name: v.pipe(v.string(), v.title('配置名')),\n vendor: v.pipe(\n v.optional(\n v.picklist(VendorList.map((item) => item.value)),\n 'openai',\n ),\n v.description('大语言模型提供的厂商'),\n v.title('对话厂商'),\n v.metadata({\n enumOptions: VendorList.map((item) => {\n return {\n label: item.label,\n description: [\n (item.options as any).description\n ? (item.options as any).description\n : '',\n item.options.baseURL ? `链接: ${item.options.baseURL}` : '',\n ]\n .filter(Boolean)\n .join('\\n'),\n };\n }),\n }),\n patchInputs({\n options: VendorList,\n }),\n ),\n }),\n componentClass('flex *:flex-1 gap-2 items-center'),\n ),\n v.pipe(\n v.object({\n baseURL: v.pipe(\n v.optional(v.string(), 'http://127.0.0.1:11434/v1'),\n v.title('地址'),\n v.description('openai兼容接口'),\n ...InputWrapper,\n ),\n model: v.pipe(\n v.optional(v.string(), `qwen3:8b`),\n v.title('模型'),\n v.description(\n '## 模型名\\n### ollama模型推荐\\n- `qwen3:8b`\\n- `qwen3:14b`,`deepseek-r1:7b`,`deepseek-r1:14b`\\n### 图片对话模型\\n- `minicpm-v:8b`',\n ),\n ...InputWrapper,\n ),\n }),\n componentClass('flex *:flex-1 gap-2 items-center'),\n ),\n v.object({\n apiKey: v.pipe(\n v.optional(v.string()),\n v.description('本地部署默认可以不填'),\n ),\n }),\n v.pipe(\n v.object({\n max_tokens: v.pipe(v.optional(v.number(), 8192)),\n top_p: v.pipe(\n v.optional(v.number(), 0.8),\n v.minValue(0),\n v.maxValue(10),\n v.description(`核采样(nucleus sampling)是温度采样的另一种替代方法,模型会考虑累积概率质量达到 top_p 的 token。例如,当 top_p 设为 0.1 时,仅考虑累积概率前 10% 的 token。\n\n我们通常建议调整 top_p 或温度参数,但不要同时调整两者。`),\n ...InputWrapper,\n ),\n temperature: v.pipe(\n v.optional(v.pipe(v.number(), v.minValue(0), v.maxValue(2)), 0.1),\n v.description(\n '采样温度应设置在0到2之间。较高的值(如0.8)会使输出更随机,而较低的值(如0.2)则会使输出更集中且确定。我们通常建议仅调整此参数或top_p,而不同时调整两者。',\n ),\n ...InputWrapper,\n ),\n frequency_penalty: v.pipe(\n v.optional(v.pipe(v.number(), v.minValue(-2), v.maxValue(2))),\n v.description(\n '取值范围为-2.0至2.0。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。',\n ),\n ...InputWrapper,\n ),\n presence_penalty: v.pipe(\n v.optional(v.pipe(v.number(), v.minValue(-2), v.maxValue(2))),\n v.description(\n '数值介于-2.0至2.0之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。',\n ),\n ...InputWrapper,\n ),\n seed: v.pipe(\n v.optional(v.pipe(v.number())),\n v.description(\n '若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。',\n ),\n ...InputWrapper,\n ),\n stop: v.pipe(\n v.optional(v.pipe(v.array(v.pipe(v.string())), v.maxLength(4))),\n v.description(\n '最多可指定4个停止序列,API将在生成到该序列时停止,返回的文本中不包含该停止序列。',\n ),\n asControl(),\n setComponent('chip-input-list'),\n patchInputs({\n addOnBlur: true,\n }),\n ...InputWrapper,\n ),\n // top_logprobs: v.pipe(\n // v.optional(v.pipe(v.number(), v.minValue(0), v.maxValue(20))),\n // v.description(\n // '一个介于0和20之间的整数,用于指定在每个标记位置返回的最可能的标记数量,每个标记均关联对应的对数概率。若使用此参数,则必须将logprobs设置为true。',\n // ),\n // ),\n\n // verbosity: v.pipe(\n // v.optional(v.picklist(['low', 'medium', 'high'])),\n // v.description(\n // `控制模型回复的详细程度。数值越低,回复越简洁;数值越高,回复越详细。当前支持的取值为低、中和高。`,\n // ),\n // ),\n // reasoning_effort: v.pipe(\n // v.optional(v.picklist(['minimal', 'low', 'medium', 'high'])),\n // v.description(\n // `控制模型回复的详细程度。数值越低,回复越简洁;数值越高,回复越详细。当前支持的取值为低、中和高。`,\n // ),\n // ),\n }),\n componentClass('grid gap-2'),\n ),\n ]),\n componentClass('grid gap-2'),\n asVirtualGroup(),\n);\n\nexport const VendorOptionsDefine = v.pipe(\n v.optional(\n v.record(\n v.string(),\n v.pipe(\n v.intersect([\n v.object({\n /** @internal */\n extraOptions: v.pipe(\n v.optional(omitIntersect(ChatItemDefine, ['name', 'vendor'])),\n v.description(`附加配置`),\n ),\n }),\n ]),\n componentClass('grid gap-2'),\n asVirtualGroup(),\n ),\n ),\n ),\n v.description(vendorOptionsDescribe),\n setComponent('rest-chip-group'),\n patchInputs({\n optionalkeyList: VendorList.map((item) => item.value),\n placeholder: '请设置额外配置',\n }),\n v.title('厂商额外配置'),\n);\nexport const ChatParamsItemDefine = v.pipe(\n v.intersect([\n ChatItemDefine,\n v.object({ vendorOptions: VendorOptionsDefine }),\n ]),\n asVirtualGroup(),\n componentClass('grid gap-2'),\n);\n\nexport const ChatParamsListDefine = v.pipe(\n v.array(ChatParamsItemDefine),\n setComponent('label-chip-array'),\n v.description('对话模型列表,目前用于切换使用'),\n patchInputs({\n displayKey: 'name',\n placeholder: '请添加配置',\n }),\n);\nexport type ChatModelOptions = v.InferOutput<typeof ChatParamsItemDefine>;\nexport type ChatModelOptionsInput = v.InferInput<typeof ChatParamsItemDefine>;\n\nexport const InputChatOptionsDefine = omitIntersect(ChatParamsItemDefine, [\n 'name',\n]);\nexport type CreateChatModelOptions = v.InferInput<typeof InputChatOptionsDefine>;"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AACZ,IAAM,+BAAiC,SAAO;AAAA,EACnD,MAAQ,SAAO;AAAA,EACf,MAAQ,WAAW,UAAQ,MAAM,GAAG,MAAM;AAC5C,CAAC;AAKM,IAAM,iCAAmC,SAAO;AAAA,EACrD,WAAa,SAAO;AAAA,IAClB,KAAO,SAAO;AAAA,IACd,QAAU,WAAW,WAAS,CAAC,QAAQ,OAAO,MAAM,CAAC,CAAC;AAAA,EACxD,CAAC;AAAA,EACD,MAAQ,WAAW,UAAQ,WAAW,GAAG,WAAW;AACtD,CAAC;AAIM,IAAM,4BAA8B;AAAA,EACvC,QAAM,CAAC,8BAA8B,8BAA8B,CAAC;AACxE;AACO,IAAM,8BAAgC;AAAA,EAC3C;AACF;AACO,IAAM,4BAA4B;AAIlC,IAAM,iCAAmC;AAAA,EAC9C;AACF;AACO,IAAM,oBAAsB,SAAO;AAAA,EACxC,MAAQ,WAAW,UAAQ,QAAQ,GAAG,QAAQ;AAAA,EAC9C,SAAS;AACX,CAAC;AAEM,IAAM,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,IACE,UAAO,EAAE,eAAe,oBAAoB,CAAC;AAAA,EACjD,CAAC;AAAA,MACD,qCAAe;AAAA,MACf,yCAAe,YAAY;AAC7B;AAEO,IAAM,uBAAyB;AAAA,EAClC,SAAM,oBAAoB;AAAA,MAC5B,uCAAa,kBAAkB;AAAA,EAC7B,eAAY,iBAAiB;AAAA,MAC/B,sCAAY;AAAA,IACV,YAAY;AAAA,IACZ,aAAa;AAAA,EACf,CAAC;AACH;AAIO,IAAM,6BAAyB,oCAAc,sBAAsB;AAAA,EACxE;AACF,CAAC;",
4
+ "sourcesContent": ["export * from '../chat/message.define';\nexport * from '../chat/options.define';\n", "import * as v from 'valibot';\nexport const ChatCompletionContentPartStr = v.object({\n text: v.string(),\n type: v.optional(v.literal('text'), 'text'),\n});\nexport type ChatCompletionContentPartStrType = v.InferOutput<\n typeof ChatCompletionContentPartStr\n>;\n\nexport const ChatCompletionContentPartImage = v.object({\n image_url: v.object({\n url: v.string(),\n detail: v.optional(v.picklist(['auto', 'low', 'high'])),\n }),\n type: v.optional(v.literal('image_url'), 'image_url'),\n});\nexport type ChatCompletionContentPartImageType = v.InferOutput<\n typeof ChatCompletionContentPartImage\n>;\nexport const ChatCompletionContentPart = v.array(\n v.union([ChatCompletionContentPartStr, ChatCompletionContentPartImage]),\n);\nexport const SystemChatCompletionContent = v.array(\n ChatCompletionContentPartStr,\n);\nexport const UserChatCompletionContent = ChatCompletionContentPart;\nexport type UserChatCompletionContentType = v.InferOutput<\n typeof UserChatCompletionContent\n>;\nexport const AssistantChatCompletionContent = v.array(\n ChatCompletionContentPartStr,\n);\nexport const SystemChatMessage = v.object({\n role: v.optional(v.literal('system'), 'system'),\n content: SystemChatCompletionContent,\n});\nexport type SystemChatMessageType = v.InferOutput<typeof SystemChatMessage>;\nexport const UserChatMessage = v.object({\n role: v.optional(v.literal('user'), 'user'),\n content: UserChatCompletionContent,\n});\nexport type UserChatMessageType = v.InferOutput<typeof UserChatMessage>;\n\nexport const AssistantChatMessage = v.object({\n role: v.optional(v.literal('assistant'), 'assistant'),\n content: AssistantChatCompletionContent,\n thinkContent: v.optional(v.string()),\n});\n\nexport type AssistantChatMessageType = v.InferOutput<\n typeof AssistantChatMessage\n>;\n\nexport const ChatMessageItemDefine = v.union([\n SystemChatMessage,\n UserChatMessage,\n AssistantChatMessage,\n]);\nexport type ChatMessageItemType = v.InferOutput<typeof ChatMessageItemDefine>;\nexport const ChatMessageListDefine = v.array(ChatMessageItemDefine);\n\nexport type ChatMessageListOutputType = v.InferOutput<\n typeof ChatMessageListDefine\n>;\nexport type ChatMessageListInputType = v.InferOutput<\n typeof ChatMessageListDefine\n>;\n", "import {\n asControl,\n componentClass,\n patchInputs,\n patchWrappers,\n setComponent,\n} from '@piying/view-angular-core';\nimport * as v from 'valibot';\nimport {\n asVirtualGroup,\n metadataPipe,\n omitIntersect,\n} from '@piying/valibot-visit';\nconst VendorList = [\n {\n value: 'openai',\n label: 'openai',\n options: {\n baseURL: '',\n modelList: [],\n description: '如果是openai兼容的厂商,需要设置baseURL',\n },\n },\n {\n value: '360',\n label: '360',\n options: { baseURL: 'https://ai.360.cn', modelList: [] },\n },\n {\n value: 'azure',\n label: 'azure',\n options: { baseURL: '', modelList: [] },\n },\n {\n value: 'moonshot',\n label: 'moonshot',\n options: { baseURL: 'https://api.moonshot.cn', modelList: [] },\n },\n {\n value: 'baichuan',\n label: 'baichuan',\n options: { baseURL: 'https://api.baichuan-ai.com', modelList: [] },\n },\n {\n value: 'minimax',\n label: 'minimax',\n options: { baseURL: 'https://api.minimax.chat', modelList: [] },\n },\n {\n value: 'mistralai',\n label: 'mistralai',\n options: { baseURL: 'https://api.mistral.ai', modelList: [] },\n },\n {\n value: 'groq',\n label: 'groq',\n options: { baseURL: 'https://api.groq.com/openai', modelList: [] },\n },\n {\n value: 'lingyiwanwu',\n label: 'lingyiwanwu',\n options: { baseURL: 'https://api.lingyiwanwu.com', modelList: [] },\n },\n {\n value: 'stepfun',\n label: 'stepfun',\n options: { baseURL: 'https://api.stepfun.com', modelList: [] },\n },\n {\n value: 'deepseek',\n label: 'deepseek',\n options: { baseURL: 'https://api.deepseek.com', modelList: [] },\n },\n {\n value: 'together.ai',\n label: 'together.ai',\n options: { baseURL: 'https://api.together.xyz', modelList: [] },\n },\n {\n value: 'volcengine',\n label: 'volcengine',\n options: {\n baseURL: 'https://ark.cn-beijing.volces.com/api/v3',\n modelList: [],\n },\n },\n {\n value: 'novita',\n label: 'novita',\n options: { baseURL: 'https://api.novita.ai/v3/openai', modelList: [] },\n },\n {\n value: 'siliconflow',\n label: 'siliconflow',\n options: { baseURL: 'https://api.siliconflow.cn', modelList: [] },\n },\n {\n value: 'tongyi',\n label: 'tongyi',\n options: {\n baseURL: 'https://dashscope.aliyuncs.com/compatible-mode/v1',\n modelList: [],\n },\n },\n {\n value: 'zhipu',\n label: 'zhipu',\n options: {\n baseURL: 'https://open.bigmodel.cn/api/paas/v4',\n modelList: [],\n },\n },\n {\n value: 'spark',\n label: 'spark',\n options: {\n baseURL: 'https://spark-api-open.xf-yun.com/v1',\n modelList: [],\n },\n },\n {\n value: 'hunyuan',\n label: 'hunyuan',\n options: {\n baseURL: 'https://api.hunyuan.cloud.tencent.com/v1',\n modelList: [],\n },\n },\n\n {\n value: 'gemini',\n label: 'gemini',\n options: {\n baseURL: '',\n modelList: [],\n description: '非openai兼容,手动适配,如果有问题欢迎报告',\n },\n },\n {\n value: 'claude',\n label: 'claude',\n options: {\n baseURL: '',\n modelList: [],\n description: '非openai兼容,手动适配,如果有问题欢迎报告',\n },\n },\n] as const;\nconst vendorOptionsDescribe = `## 通用参数\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`;\nconst InputWrapper = metadataPipe(patchWrappers(['tooltip', 'form-field']));\n\nexport const ChatItemDefine = v.pipe(\n v.intersect([\n v.pipe(\n v.object({\n name: v.pipe(v.string(), v.title('配置名')),\n vendor: v.pipe(\n v.optional(\n v.picklist(VendorList.map((item) => item.value)),\n 'openai',\n ),\n v.description('大语言模型提供的厂商'),\n v.title('对话厂商'),\n v.metadata({\n enumOptions: VendorList.map((item) => ({\n label: item.label,\n description: [\n (item.options as any).description\n ? (item.options as any).description\n : '',\n item.options.baseURL ? `链接: ${item.options.baseURL}` : '',\n ]\n .filter(Boolean)\n .join('\\n'),\n })),\n }),\n patchInputs({\n options: VendorList,\n }),\n ),\n }),\n componentClass('flex *:flex-1 gap-2 items-center'),\n ),\n v.pipe(\n v.object({\n baseURL: v.pipe(\n v.optional(v.string(), 'http://127.0.0.1:11434/v1'),\n v.title('地址'),\n v.description('openai兼容接口'),\n ...InputWrapper,\n ),\n model: v.pipe(\n v.optional(v.string(), `qwen3:8b`),\n v.title('模型'),\n v.description(\n '## 模型名\\n### ollama模型推荐\\n- `qwen3:8b`\\n- `qwen3:14b`,`deepseek-r1:7b`,`deepseek-r1:14b`\\n### 图片对话模型\\n- `minicpm-v:8b`',\n ),\n ...InputWrapper,\n ),\n }),\n componentClass('flex *:flex-1 gap-2 items-center'),\n ),\n v.object({\n apiKey: v.pipe(\n v.optional(v.string()),\n v.description('本地部署默认可以不填'),\n ),\n }),\n v.pipe(\n v.object({\n max_tokens: v.pipe(v.optional(v.number(), 8192)),\n top_p: v.pipe(\n v.optional(v.number(), 0.8),\n v.minValue(0),\n v.maxValue(10),\n v.description(`核采样(nucleus sampling)是温度采样的另一种替代方法,模型会考虑累积概率质量达到 top_p 的 token。例如,当 top_p 设为 0.1 时,仅考虑累积概率前 10% 的 token。\n\n我们通常建议调整 top_p 或温度参数,但不要同时调整两者。`),\n ...InputWrapper,\n ),\n temperature: v.pipe(\n v.optional(v.pipe(v.number(), v.minValue(0), v.maxValue(2)), 0.1),\n v.description(\n '采样温度应设置在0到2之间。较高的值(如0.8)会使输出更随机,而较低的值(如0.2)则会使输出更集中且确定。我们通常建议仅调整此参数或top_p,而不同时调整两者。',\n ),\n ...InputWrapper,\n ),\n frequency_penalty: v.pipe(\n v.optional(v.pipe(v.number(), v.minValue(-2), v.maxValue(2))),\n v.description(\n '取值范围为-2.0至2.0。正值会根据当前文本中已有标记的频率对新标记进行惩罚,从而降低模型逐字重复相同内容的概率。',\n ),\n ...InputWrapper,\n ),\n presence_penalty: v.pipe(\n v.optional(v.pipe(v.number(), v.minValue(-2), v.maxValue(2))),\n v.description(\n '数值介于-2.0至2.0之间。正值会基于新标记是否已在当前文本中出现,对新标记施加惩罚,从而提升模型讨论新话题的可能性。',\n ),\n ...InputWrapper,\n ),\n seed: v.pipe(\n v.optional(v.pipe(v.number())),\n v.description(\n '若已指定,系统将尽力确保采样具有确定性,即使用相同种子和参数的重复请求将返回相同结果。确定性无法保证,请通过 system_fingerprint 响应参数监控后端变化。',\n ),\n ...InputWrapper,\n ),\n stop: v.pipe(\n v.optional(v.pipe(v.array(v.pipe(v.string())), v.maxLength(4))),\n v.description(\n '最多可指定4个停止序列,API将在生成到该序列时停止,返回的文本中不包含该停止序列。',\n ),\n asControl(),\n setComponent('chip-input-list'),\n patchInputs({\n addOnBlur: true,\n }),\n ...InputWrapper,\n ),\n // top_logprobs: v.pipe(\n // v.optional(v.pipe(v.number(), v.minValue(0), v.maxValue(20))),\n // v.description(\n // '一个介于0和20之间的整数,用于指定在每个标记位置返回的最可能的标记数量,每个标记均关联对应的对数概率。若使用此参数,则必须将logprobs设置为true。',\n // ),\n // ),\n\n // verbosity: v.pipe(\n // v.optional(v.picklist(['low', 'medium', 'high'])),\n // v.description(\n // `控制模型回复的详细程度。数值越低,回复越简洁;数值越高,回复越详细。当前支持的取值为低、中和高。`,\n // ),\n // ),\n // reasoning_effort: v.pipe(\n // v.optional(v.picklist(['minimal', 'low', 'medium', 'high'])),\n // v.description(\n // `控制模型回复的详细程度。数值越低,回复越简洁;数值越高,回复越详细。当前支持的取值为低、中和高。`,\n // ),\n // ),\n }),\n componentClass('grid gap-2'),\n ),\n ]),\n componentClass('grid gap-2'),\n asVirtualGroup(),\n);\n\nexport const VendorOptionsDefine = v.pipe(\n v.optional(\n v.record(\n v.string(),\n v.pipe(\n v.intersect([\n v.object({\n /** @internal */\n extraOptions: v.pipe(\n v.optional(omitIntersect(ChatItemDefine, ['name', 'vendor'])),\n v.description(`附加配置`),\n ),\n }),\n ]),\n componentClass('grid gap-2'),\n asVirtualGroup(),\n ),\n ),\n ),\n v.description(vendorOptionsDescribe),\n setComponent('rest-chip-group'),\n patchInputs({\n optionalkeyList: VendorList.map((item) => item.value),\n placeholder: '请设置额外配置',\n }),\n v.title('厂商额外配置'),\n);\nexport const ChatParamsItemDefine = v.pipe(\n v.intersect([\n ChatItemDefine,\n v.object({ vendorOptions: VendorOptionsDefine }),\n ]),\n asVirtualGroup(),\n componentClass('grid gap-2'),\n);\n\nexport const ChatParamsListDefine = v.pipe(\n v.array(ChatParamsItemDefine),\n setComponent('label-chip-array'),\n v.description('对话模型列表,目前用于切换使用'),\n patchInputs({\n displayKey: 'name',\n placeholder: '请添加配置',\n }),\n);\nexport type ChatModelOptions = v.InferOutput<typeof ChatParamsItemDefine>;\nexport type ChatModelOptionsInput = v.InferInput<typeof ChatParamsItemDefine>;\n\nexport const InputChatOptionsDefine = omitIntersect(ChatParamsItemDefine, [\n 'name',\n]);\nexport type CreateChatModelOptions = v.InferInput<\n typeof InputChatOptionsDefine\n>;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AACZ,IAAM,+BAAiC,SAAO;AAAA,EACnD,MAAQ,SAAO;AAAA,EACf,MAAQ,WAAW,UAAQ,MAAM,GAAG,MAAM;AAC5C,CAAC;AAKM,IAAM,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,cAAgB;AAAA,cACZ,gBAAS,oCAAc,gBAAgB,CAAC,QAAQ,QAAQ,CAAC,CAAC;AAAA,cAC1D,eAAY,MAAM;AAAA,YACtB;AAAA,UACF,CAAC;AAAA,QACH,CAAC;AAAA,YACD,yCAAe,YAAY;AAAA,YAC3B,qCAAe;AAAA,MACjB;AAAA,IACF;AAAA,EACF;AAAA,EACE,eAAY,qBAAqB;AAAA,MACnC,uCAAa,iBAAiB;AAAA,MAC9B,sCAAY;AAAA,IACV,iBAAiB,WAAW,IAAI,CAAC,SAAS,KAAK,KAAK;AAAA,IACpD,aAAa;AAAA,EACf,CAAC;AAAA,EACC,SAAM,QAAQ;AAClB;AACO,IAAM,uBAAyB;AAAA,EAClC,aAAU;AAAA,IACV;AAAA,IACE,UAAO,EAAE,eAAe,oBAAoB,CAAC;AAAA,EACjD,CAAC;AAAA,MACD,qCAAe;AAAA,MACf,yCAAe,YAAY;AAC7B;AAEO,IAAM,uBAAyB;AAAA,EAClC,SAAM,oBAAoB;AAAA,MAC5B,uCAAa,kBAAkB;AAAA,EAC7B,eAAY,iBAAiB;AAAA,MAC/B,sCAAY;AAAA,IACV,YAAY;AAAA,IACZ,aAAa;AAAA,EACf,CAAC;AACH;AAIO,IAAM,6BAAyB,oCAAc,sBAAsB;AAAA,EACxE;AACF,CAAC;",
6
6
  "names": ["v"]
7
7
  }
package/define/index.mjs CHANGED
@@ -209,15 +209,13 @@ var ChatItemDefine = v2.pipe(
209
209
  v2.description("大语言模型提供的厂商"),
210
210
  v2.title("对话厂商"),
211
211
  v2.metadata({
212
- enumOptions: VendorList.map((item) => {
213
- return {
214
- label: item.label,
215
- description: [
216
- item.options.description ? item.options.description : "",
217
- item.options.baseURL ? `链接: ${item.options.baseURL}` : ""
218
- ].filter(Boolean).join("\n")
219
- };
220
- })
212
+ enumOptions: VendorList.map((item) => ({
213
+ label: item.label,
214
+ description: [
215
+ item.options.description ? item.options.description : "",
216
+ item.options.baseURL ? `链接: ${item.options.baseURL}` : ""
217
+ ].filter(Boolean).join("\n")
218
+ }))
221
219
  }),
222
220
  patchInputs({
223
221
  options: VendorList