Comments (6)
The AttributeError: 'Anthropic' object has no attribute 'beta'
suggests that the Anthropic
class is being accessed in a way that expects an attribute named beta
, which does not exist in the class definition.
The Anthropic
class in the llama_index.llms.anthropic
module defines the following attributes and methods, but beta
is not one of them [1][2]:
Attributes:
model
temperature
max_tokens
base_url
timeout
max_retries
additional_kwargs
_client
_aclient
Methods:
__init__
class_name
metadata
tokenizer
_model_kwargs
_get_all_kwargs
_get_content_and_tool_calls
chat
complete
stream_chat
stream_complete
achat
acomplete
astream_chat
astream_complete
chat_with_tools
achat_with_tools
get_tool_calls_from_response
To resolve this issue, ensure that your code does not reference a non-existent attribute beta
. If you need further assistance, please provide more context or check if there are any custom modifications or extensions to the Anthropic
class in your environment.
To continue talking to Dosu, mention @dosu.
from llama_index.
@rinmy23 @clstaudt anthropic recently moved their tools api from beta to GA, and updated their latest client SDK
Downgrade the client SDK if you need it to work right now, but will have a new version published in 30 mins or so
from llama_index.
I have the same problem. My code can run correctly before yesterday and i didn't change my code, but now it have the same AttributeError: 'Anthropic' object has no attribute 'beta'
from llama_index.
The dosu bot isn't even smart enough to recognize that it's not my code triggering the error.
from llama_index.
@logan-markewich How to install the fix?
from llama_index.
Downgrade the client SDK if you need it to work right now,
@logan-markewich What is the client SDK here? I am a bit confused about the many sub-packages and how they relate to the main llama_index package.
from llama_index.
Related Issues (20)
- [Bug]: TypeError: ColbertIndex._build_index_from_nodes() got an unexpected keyword argument 'index_name' HOT 3
- [Question]: Getting corresponding retrieved document information (metadata, text...) from a KnowledgeGraphRAGRetriever Query HOT 8
- [Question]: Where do I calculate the similarity between nodes in query and vector db when using faiss? HOT 1
- [Bug]: model_name vs. model in BedrockEmbedding doesn't throw an error HOT 3
- [Bug]: Perplexity LLM integration incorrectly recognizes chat model as a completion model HOT 1
- [Bug]: poetry version incompatibility between llama-index and core HOT 3
- [Question]: How do I load a KnowledgeGraphIndex from an existing Neptune Knowledge Graph without from_documents()? HOT 4
- [Bug]: FunctionCallingProgram ignores tool_choice parameter HOT 2
- [Bug]: Example for JSONalyze Query Engine fails with OperationalError: near "sql": syntax error HOT 3
- Inconsistent Embedding Reuse Behavior in VectorStoreIndex with DenseXRetrievalPack HOT 1
- [Question]: Benchmarking time it takes to chunk , embed documents , insert into vector database HOT 1
- [Question]: Inconsistency in Node Usage Between ElasticSearch and ChromaDB for VectorStoreIndex in Dense_x Retrieval HOT 2
- [Question]: multiple-PDF with local LLM llama3 HOT 3
- Multi Document Retriever not retrieving all information HOT 7
- [Bug]: ElasticSearch Vector Store : Timeout context manager should be used inside a task HOT 2
- [Bug]: KnowledgeGraphIndex.from_documents ignoring set llm HOT 8
- [Question]: How were the prompts and scoring logic define for AnswerRelevancyEvaluator, ContextRelevancyEvaluator, AnswerRelevancyEvaluator and FaithfulnessEvaluator HOT 1
- [Feature Request]: Opensearch efficient filtering HOT 1
- [Question]: Index created from a LanceDBVectorStore is not returning all nodes? HOT 14
- [Bug]: HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llama_index.