litellm_config.yaml
model_list: - model_name: deepseek-chat #调用 LiteLLM 的模型名词 litellm_params: model: openai/deepseek-chat #`openai/` 前缀表示该模型与 openai 格式兼容 api_key: api_base: https://api.deepseek.com/ - model_name: gpt-4 litellm_params: model: azure/chatgpt-v-2 api_base: https://openai-gpt-4-test-v-1.openai.azure.com/ api_version: "2023-05-15" api_key: - model_name: gpt-4 litellm_params: model: azure/gpt-4 api_key: api_base: https://openai-gpt-4-test-v-2.openai.azure.com/
docker run \ -v $(pwd)/litellm_config.yaml:/app/config.yaml \ -p 4000:4000 \ ghcr.io/berriai/litellm:main-latest \ --config /app/config.yaml --detailed_debug
http://localhost:4000
设置 > 模型供应商 > OpenAI-API-compatible
保存
Was this page helpful?