跳到主要内容

请求头

LiteLLM 支持的特殊请求头。

LiteLLM 请求头

x-litellm-timeout 可选[浮点数]: 请求的超时时间(秒)。

x-litellm-enable-message-redaction: 可选[布尔值]: 不将消息内容记录到日志集成。只跟踪消费。了解更多

x-litellm-tags: 可选[字符串]: 用于基于标签的路由 消费跟踪 的逗号分隔标签列表(例如 tag1,tag2,tag3)。

Anthropic 请求头

anthropic-version 可选[字符串]: 要使用的 Anthropic API 版本。
anthropic-beta 可选[字符串]: 要使用的 Anthropic API 测试版版本。

OpenAI 请求头

openai-organization 可选[字符串]: 用于 OpenAI API 的组织。(目前需要通过 general_settings::forward_openai_org_id: true 启用)