mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-10 02:24:35 +08:00
feat: 添加工具类型和用法说明,支持自定义 API 头部设置
This commit is contained in:
@@ -198,6 +198,14 @@ export async function executeLiteLLMEndpoint(
|
||||
}
|
||||
}
|
||||
|
||||
// Set custom headers from provider advanced settings
|
||||
if (provider.advancedSettings?.customHeaders) {
|
||||
process.env['CCW_LITELLM_EXTRA_HEADERS'] = JSON.stringify(provider.advancedSettings.customHeaders);
|
||||
} else {
|
||||
// Clear any previous custom headers
|
||||
delete process.env['CCW_LITELLM_EXTRA_HEADERS'];
|
||||
}
|
||||
|
||||
// Use litellm-client to call chat
|
||||
const response = await callWithRetries(
|
||||
() => client.chat(finalPrompt, endpoint.model),
|
||||
|
||||
Reference in New Issue
Block a user