Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to use OpenRouter Models #80

Open
PierrunoYT opened this issue Aug 1, 2024 · 2 comments
Open

Option to use OpenRouter Models #80

PierrunoYT opened this issue Aug 1, 2024 · 2 comments

Comments

@PierrunoYT
Copy link

Option to use OpenRouter Models

@bpawnzZ
Copy link

bpawnzZ commented Aug 19, 2024

Did you ever figure this out?? I just found this project and it's unclear if we can see a base URL. If so openrouter can handle

@bpawnzZ
Copy link

bpawnzZ commented Aug 21, 2024

PS.. Its easy to get this going with Openrouter running a proxy on LiteLLM.

#create a config.toml for models with generic openai format for LiteLLM and run a litellm proxy in a container with taht config and good to

model_list:
  - model_name: meta-llama/llama-3-70b-instruct:nitro
    litellm_params:
      model: openai/meta-llama/llama-3-70b-instruct:nitro
      api_base: https://openrouter.ai/api/v1
      api_key: 
  - model_name: anthropic/claude-3.5-sonnet
    litellm_params:
      model: openai/anthropic/claude-3.5-sonnet       
      api_base: https://openrouter.ai/api/v1                  
      api_key: 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants