simonw / llm-claude-3

LLM plugin for interacting with the Claude 3 family of models
Apache License 2.0
254 stars 23 forks source link

Error: 'Message' object has no attribute '__pydantic_serializer__' #9

Open skybrian opened 5 months ago

skybrian commented 5 months ago

I've used the 'llm' for a while, but this is my first time trying it on anything other than openai models.

After installing this plugin, creating a new API key at Anthropic, I registered it using 'llm keys set claude'. However, it doesn't work:

(llm) % llm -m claude-3-5-sonnet-20240620 hi
Error: 'Message' object has no attribute '__pydantic_serializer__'

(llm) % llm --version
llm, version 0.14

(llm) % python --version
Python 3.11.4

This is on a Mac Mini. I used 'conda' to set up an environment last year and then 'pip install' to install llm. So far it's worked, using other models.

I don't normally develop code in Python. Is there an easy way to get a stack trace?