feat: add domestic model provider presets
This commit is contained in:
@@ -5668,7 +5668,7 @@ components:
|
||||
id: { type: string, format: uuid }
|
||||
tenant_id: { type: string, format: uuid }
|
||||
display_name: { type: string, minLength: 1, maxLength: 120 }
|
||||
provider: { type: string, enum: [ark, openai_compatible] }
|
||||
provider: { $ref: '#/components/schemas/ContentModelProvider' }
|
||||
base_url: { type: string, format: uri }
|
||||
model_id: { type: string, minLength: 1, maxLength: 200 }
|
||||
credential_hint: { type: string, description: 仅包含掩码和密钥末四位。 }
|
||||
@@ -5688,12 +5688,16 @@ components:
|
||||
required: [display_name, provider, base_url, model_id, api_key, temperature, max_tokens]
|
||||
properties:
|
||||
display_name: { type: string, minLength: 1, maxLength: 120 }
|
||||
provider: { type: string, enum: [ark, openai_compatible] }
|
||||
provider: { $ref: '#/components/schemas/ContentModelProvider' }
|
||||
base_url: { type: string, format: uri, maxLength: 500 }
|
||||
model_id: { type: string, minLength: 1, maxLength: 200 }
|
||||
api_key: { type: string, minLength: 8, maxLength: 1000, writeOnly: true }
|
||||
temperature: { type: number, minimum: 0, maximum: 2 }
|
||||
max_tokens: { type: integer, minimum: 256, maximum: 8192 }
|
||||
ContentModelProvider:
|
||||
type: string
|
||||
description: 模型厂商分类;所有类型均通过 OpenAI Chat Completions 兼容协议调用。
|
||||
enum: [ark, dashscope, deepseek, moonshot, zhipu, qianfan, hunyuan, minimax, baichuan, siliconflow, ollama, openai_compatible]
|
||||
StoryStatus:
|
||||
type: string
|
||||
enum: [CANDIDATE, IN_REVIEW, CONFIRMED, REJECTED, SUPERSEDED]
|
||||
|
||||
Reference in New Issue
Block a user