Spaces:
Configuration error
Configuration error
|
Download docs/modules/usage/llms/openrouter.md from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 703 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/docs/modules/usage/llms/openrouter.md
- Command line
-
hf download hf://spaces/flyingdarkdev/README/docs/modules/usage/llms/openrouter.md
-
curl -L -o openrouter.md https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/docs/modules/usage/llms/openrouter.md
703 Bytes
OpenRouter
OpenHands uses LiteLLM to make calls to chat models on OpenRouter. You can find their documentation on using OpenRouter as a provider here.
Configuration
When running OpenHands, you'll need to set the following in the OpenHands UI through the Settings:
LLM ProvidertoOpenRouterLLM Modelto the model you will be using. Visit here to see a full list of OpenRouter models. If the model is not in the list, toggleAdvancedoptions, and enter it inCustom Model(e.g. openrouter/<model-name> likeopenrouter/anthropic/claude-3.5-sonnet).API Keyto your OpenRouter API key.