Spaces:
Configuration error
Configuration error
|
Download docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/openrouter.md from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 720 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/openrouter.md
- Command line
-
hf download hf://spaces/flyingdarkdev/README/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/openrouter.md
-
curl -L -o openrouter.md https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current/usage/llms/openrouter.md
720 Bytes
以下是翻译后的内容:
OpenRouter
OpenHands 使用 LiteLLM 调用 OpenRouter 上的聊天模型。你可以在这里找到他们关于使用 OpenRouter 作为提供者的文档。
配置
运行 OpenHands 时,你需要在设置中设置以下内容:
LLM Provider设置为OpenRouterLLM Model设置为你将使用的模型。 访问此处查看 OpenRouter 模型的完整列表。 如果模型不在列表中,请切换Advanced Options,并在Custom Model中输入(例如 openrouter/<model-name> 如openrouter/anthropic/claude-3.5-sonnet)。API Key设置为你的 OpenRouter API 密钥。