VictorTaelin / AI-scripts

Some handy AI scripts
330 stars 26 forks source link

Claude token support #2

Open knoel99 opened 3 weeks ago

knoel99 commented 3 weeks ago

I wanted to test Claude Sonnet 3.5 like you showed on X, but I got an error:

echo "YOUR_ANTHROPIC_TOKEN" > ~/.config/anthropic.token
$ chatsh s
Error: openai.token file not found in ~/.config/
Please make sure the file exists and contains your OpenAI API token.

I tried to select Claude model based on this code, but it didn't work. Could you add the commands to do so.

https://github.com/VictorTaelin/AI-scripts/blob/3cf202212426bed5f94b47242d4d23513dd74978/Chat.mjs#L15

Thanks a lot.

abdulhdr1 commented 1 week ago

it seems like this is an old issue, claude-3-5-sonnet-20240620 is the new default.

try to:

  1. pull the repo
  2. run npm i to update the packages
  3. check if you got your anthropic token set in ~/.config/anthropic.token
  4. run ./chatsh.mjs or just chatsh if you already have it linked, you don't need to pass the model param if you want to use the default one