feat: restore Claude provider auth field selector (AUTH_TOKEN / API_KEY)

This commit is contained in:
Jason
2026-03-09 08:56:58 +08:00
parent 55509286eb
commit dd971246be
9 changed files with 133 additions and 7 deletions
+5
View File
@@ -149,6 +149,8 @@ export interface ProviderMeta {
// - "openai_chat": OpenAI Chat Completions 格式,需要格式转换
// - "openai_responses": OpenAI Responses API 格式,需要格式转换
apiFormat?: "anthropic" | "openai_chat" | "openai_responses";
// Claude 认证字段名
apiKeyField?: ClaudeApiKeyField;
// Prompt cache key for OpenAI-compatible endpoints (improves cache hit rate)
promptCacheKey?: string;
}
@@ -162,6 +164,9 @@ export type SkillSyncMethod = "auto" | "symlink" | "copy";
// - "openai_responses": OpenAI Responses API 格式,需要格式转换
export type ClaudeApiFormat = "anthropic" | "openai_chat" | "openai_responses";
// Claude 认证字段类型
export type ClaudeApiKeyField = "ANTHROPIC_AUTH_TOKEN" | "ANTHROPIC_API_KEY";
// 主页面显示的应用配置
export interface VisibleApps {
claude: boolean;