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

Uncaught KeyError in models.py line 1107 #2358

Open
yuhuihu opened this issue Nov 13, 2024 · 0 comments
Open

Uncaught KeyError in models.py line 1107 #2358

yuhuihu opened this issue Nov 13, 2024 · 0 comments

Comments

@yuhuihu
Copy link

yuhuihu commented Nov 13, 2024

Aider version: 0.62.1
Python version: 3.10.15
Platform: macOS-14.5-arm64-arm-64bit
Python implementation: CPython
Virtual environment: No
OS: Darwin 23.5.0 (64bit)
Git version: git version 2.40.0

An uncaught exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
  File "main.py", line 638, in main
    problem = models.sanity_check_models(io, main_model)
  File "models.py", line 1046, in sanity_check_models
    problem_main = sanity_check_model(io, main_model)
  File "models.py", line 1090, in sanity_check_model
    possible_matches = fuzzy_match_models(model.name)
  File "models.py", line 1107, in fuzzy_match_models
    provider = (attrs["litellm_provider"] + "/").lower()
KeyError: 'litellm_provider'

config of .env

OPENAI_API_BASE=http://192.168.3.63:1234/v1                                                                                        
OPENAI_API_KEY=lm-studio
AIDER_MODEL=14b@q4_k_m
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

1 participant