第八節 模型 Provider

[!ref] 詳解見使用者手冊「模型與參數」節。

8.1 Provider 欄位

欄位 類型 必填 說明
name string Provider 識別
display_name string 顯示名
base_url string API 基礎地址
api_key string 憑證(共享額度走系統下發,無需填寫)
protocol enum openai-compat / anthropic / gemini / custom
models array 模型列表;空時啟動後非同步拉取
priority int 100 兜底排序
enabled bool true 是否啟用
api.headers map[string]string 自定義請求標頭(僅自定義 Provider 可編輯;逐條 Header.Set,可覆蓋內置;空 key 與含 CR/LF 的條目自動跳過;Host 頭不生效)

8.2 內置 Provider 佔位

name 說明
AVL-Zero 共享額度入口;登入後自動下發 key
OpenAI 標準 OpenAI 協議
Anthropic Claude 系列
Aliyun 阿裡雲通義系列
Volcengine 火山方舟

8.3 參數命名映射

一般名 OpenAI Anthropic Aliyun
temperature temperature temperature temperature
top_p top_p top_p top_p
max_output_tokens max_tokens max_tokens max_tokens
stream stream stream stream
stop stop stop_sequences stop