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

Unable to set OpenRouter.ai as provider #2765

Closed
GratefulDave opened this issue Jan 3, 2025 · 1 comment
Closed

Unable to set OpenRouter.ai as provider #2765

GratefulDave opened this issue Jan 3, 2025 · 1 comment
Labels
question Further information is requested

Comments

@GratefulDave
Copy link

GratefulDave commented Jan 3, 2025

Issue

I'm trying to set an api token with aider.

Python 3.13.1
Poetry 1.8.5
Aider 0.70.0

Install

Using Pycharm Plugin:
python -m pip install aider-install aider-install
``
% pipx install --python python3.12 aider-
chat
Fatal error from pip prevented installation. Full pip output in file:
/Users/{my_username}/.local/pipx/logs/cmd_2025-01-03_11.33.20_pip_errors.log

Some possibly relevant errors from pip install:
ModuleNotFoundError: No module named 'distutils'

Error installing aider-chat.
``

Steps to reproduce

  1. OpenRouter API key works with curl.

  2. Tried custom configuration file (.aider.conf.yml):

  • openrouter_api_key: {api_key}
  • model: deepseek/deepseek-chat (and others)

Error: aider: error: unrecognized arguments: --openrouter_api_key {api_key}

  1. Tried .env:
  • OPENROUTER_API_KEY: {api_key}
  • OPENROUTER_BASE_URL: https://openrouter.ai/api/v1
  • MODEL=deepseek/deepseek-chat

Tried all variations of aider_api_key, aider_base_url, api_base/api_url.

All errors are unrecognized arg.

ERROR:

aider: error: unreocgnized arguments .... permutation above.

### Version and model info

Aider version 0.70.0
Model OpenRouter: deepseek/deepseek-chat (and others)
@paul-gauthier
Copy link
Collaborator

Thanks for trying aider and filing this issue. This doc may be helpful:

https://aider.chat/docs/config/api-keys.html

@github-actions github-actions bot added the question Further information is requested label Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants