Spaces:
Configuration error
Configuration error
|
Download docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.md from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 970 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.md
- Command line
-
hf download hf://spaces/flyingdarkdev/README/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.md
-
curl -L -o litellm-proxy.md https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/litellm-proxy.md
970 Bytes
以下是翻译后的内容:
LiteLLM 代理
OpenHands 支持使用 LiteLLM 代理来访问各种 LLM 提供商。
配置
要在 OpenHands 中使用 LiteLLM 代理,你需要:
- 设置一个 LiteLLM 代理服务器(参见 LiteLLM 文档)
- 运行 OpenHands 时,你需要在 OpenHands UI 的设置中设置以下内容:
- 启用
高级选项 - 将
自定义模型设置为前缀litellm_proxy/+ 你将使用的模型(例如litellm_proxy/anthropic.claude-3-5-sonnet-20241022-v2:0) - 将
Base URL设置为你的 LiteLLM 代理 URL(例如https://your-litellm-proxy.com) - 将
API Key设置为你的 LiteLLM 代理 API 密钥
支持的模型
支持的模型取决于你的 LiteLLM 代理配置。OpenHands 支持你的 LiteLLM 代理配置的任何模型。
有关可用模型及其名称的列表,请参阅你的 LiteLLM 代理配置。