Find answers from the community

Updated 3 months ago

I am currently using LlamaIndex 0.10.5.

I am currently using LlamaIndex 0.10.5.

This does not work: llm = Anthropic(model="claude-3-opus-20240229")

Error:
Plain Text
Unexpected err=ValueError('Unknown model: claude-3-opus-20240229. Please provide a valid Anthropic model name.Known models are: claude-instant-1, claude-instant-1.2, claude-2, claude-2.0, claude-2.1'), type(err)=<class 'ValueError'>


However, the documentation here shows usage of that model: https://docs.llamaindex.ai/en/stable/examples/llm/anthropic.html

Is this because I am using an older version of LlamaIndex? Any way to get around this without updating LlamaIndex?
W
S
2 comments
You'll have to update the Anthropic package: pip install llama-index-llms-anthropic
Thank you! That worked
Add a reply
Sign up and join the conversation on Discord