Hi everyone, I was trying to use Claude 3 but fail. The error is "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". I updated llama-index to lastest version: 0.10.20. I test claude-2.1, my code run and return result but it take too long compare too gpt-3.5.
When i import Anthropic with legacy, i can not use claude 3. Without legacy, i face a problem about call_back: "ValueError: Cannot use llm_chat_callback on an instance without a callback_manager attribute."
I import all from legacy, except Anthropic. When I import Anthropic with legacy and use claude-3 version like haiku, i face error: {'type': 'invalid_request_error', 'message': '"claude-3-haiku-20240307" is not supported on this API. Please use the Messages API instead.'} bot when i call chat/ complete. I didnot face this error when import without legacy. Which message api should i use - i only see api message to prompt ... here.
from llama_index.legacy.llms.anthropic import Anthropic llm = Anthropic( model="claude-3-haiku-20240307", ) resp = llm.complete("What is meaning of life?")
I migrate my code out of legacy and can call API to gemini, claude 3 with chat mode now. But i need to install each package, then i face conflict package problem, pip install try to solve dependencies and take a while.