aider icon indicating copy to clipboard operation
aider copied to clipboard

Problems finding model in the metadata file

Open MehrCurry opened this issue 1 year ago • 0 comments

Issue

aider --model "openai/aws/claude-3.5-sonnet" --openai-api-base https://api.xyz.com/v1 --openai-api-key $MY_API_KEY

Loaded /Users/gzo/wrk/paperless/.env
Loaded 1 model settings file(s)
  - /Users/gzo/.aider.model.settings.yml
Loaded 1 model metadata file(s)
  - /Users/gzo/.aider.model.metadata.json
Model openai/aws/claude-3.5-sonnet: Unknown context window size and costs, using sane 
defaults.
Did you mean one of these?
- aws/openai/aws/claude-3.5-sonnet
- openai/aws/claude-3.5-sonnet
For more info, see: https://aider.chat/docs/llms/warnings.html

Aider v0.47.1
Model: openai/aws/claude-3.5-sonnet with diff edit format
Git repo: .git with 78 files
Repo-map: using 1024 tokens
VSCode terminal detected, pretty output has been disabled.
Use /help <question> for help, run "aider --help" to see cmd line args

The message says that it could not find metadata for "openai/aws/claude-3.5-sonnet". A few lines later it suggests exactly that "openai/aws/claude-3.5-sonnet".

I double checked that the file exisits and the entry is there.

  "openai/aws/claude-3.5-sonnet": {
    "max_tokens": 200000,
    "max_input_tokens": 200000,
    "max_output_tokens": 4096,
    "input_cost_per_token": 0.000003,
    "output_cost_per_token": 0.000015,
    "litellm_provider": "aws",
    "mode": "chat"
  },

Version and model info

Aider v0.47.1 Model: openai/aws/claude-3.5-sonnet with diff edit format Git repo: .git with 78 files Repo-map: using 1024 tokens VSCode terminal detected, pretty output has been disabled.

MehrCurry avatar Aug 01 '24 08:08 MehrCurry