接入 LiteLLM 代理的模型
快速集成
步骤 1. 启动 LiteLLM Proxy 服务器
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/步骤 2. 启动 LiteLLM 代理
步骤 3. 在 Dify 中集成 LiteLLM Proxy

Last updated