mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-02 02:05:57 +08:00
feat: add authHeader field to OpenClawProviderConfig and reuse type in form state
Add optional `authHeader` boolean to support vendor-specific auth headers (e.g. Longcat). Refactor `resetOpenclawState` to use the shared `OpenClawProviderConfig` type instead of an inline duplicate definition.
This commit is contained in:
@@ -523,6 +523,7 @@ export interface OpenClawProviderConfig {
|
||||
api?: string; // API 协议类型(如 "openai-completions"、"anthropic")
|
||||
models?: OpenClawModel[]; // 可用模型列表
|
||||
headers?: Record<string, string>; // 自定义请求头(如 User-Agent)
|
||||
authHeader?: boolean; // 供应商自定义认证开关(如 Longcat)
|
||||
}
|
||||
|
||||
// OpenClaw agents.defaults 完整配置
|
||||
|
||||
Reference in New Issue
Block a user