跳转到主要内容
PATCH
Set preferred LLM config

请求头

X-Workspace-Id
string

Workspace ID

路径参数

id
string
必填

LLM config ID

响应

200 - application/json
id
string
必填
provider
enum<string>
必填
可用选项:
openai,
anthropic,
gemini,
openrouter,
vercel,
deepseek,
kilo_code,
opencode_go,
custom
model
string
必填
isPreferred
boolean
必填
apiKeyMasked
string
必填

Masked API key (shows last 4 chars)

createdAt
string<date-time>
必填
updatedAt
string<date-time>
必填
name
string
apiUrl
string
contextWindow
number