Comments (5)
I was facing the same issue using langchain-google-genai
.
The solution was using langchain-google-genai==1.0.3
version.
Here's the full requirements I'm using:
google-ai-generativelanguage==0.6.2
google-api-core==2.19.0
google-api-python-client==2.128.0
google-auth==2.29.0
google-auth-httplib2==0.2.0
google-generativeai==0.5.2
googleapis-common-protos==1.63.0
langchain==0.1.17
langchain-community==0.0.37
langchain-core==0.1.52
langchain-google-genai==1.0.3
langchain-pinecone==0.1.0
langchain-text-splitters==0.0.1
from generative-ai-python.
Yes, you are correct. Downgrading langchain-google-genai
works for me now
from generative-ai-python.
I was facing the same issue using
langchain-google-genai
. The solution was usinglangchain-google-genai==1.0.3
version.Here's the full requirements I'm using:
google-ai-generativelanguage==0.6.2 google-api-core==2.19.0 google-api-python-client==2.128.0 google-auth==2.29.0 google-auth-httplib2==0.2.0 google-generativeai==0.5.2 googleapis-common-protos==1.63.0 langchain==0.1.17 langchain-community==0.0.37 langchain-core==0.1.52 langchain-google-genai==1.0.3 langchain-pinecone==0.1.0 langchain-text-splitters==0.0.1
Thank @bruna-calistrate !! donwgrading it works.
Maybe someone could have conflicts between langchain-google-gena and langchain-openai.
My requirements.txt had:
google-ai-generativelanguage==0.6.4
google-api-core==2.19.0
google-api-python-client==2.131.0
google-auth==2.29.0
google-auth-httplib2==0.2.0
google-generativeai==0.5.4
googleapis-common-protos==1.63.0
langchain==0.2.1
langchain-core==0.2.3
langchain-google-genai==1.0.3
langchain-openai==0.1.8
langchain-text-splitters==0.2.0
from generative-ai-python.
i also face same error
from generative-ai-python.
Same error here:
`GoogleGenerativeAIError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/langchain_google_genai/embeddings.py in embed_documents(self, texts, task_type, titles, output_dimensionality)
148 )
149 except Exception as e:
--> 150 raise GoogleGenerativeAIError(f"Error embedding content: {e}") from e
151 return [e.values for e in result.embeddings]
152
GoogleGenerativeAIError: Error embedding content: 504 Deadline Exceeded`
from generative-ai-python.
Related Issues (20)
- BlockedPromptException: block_reason: OTHER HOT 3
- chat_session.send_message throw exception while using proxy config: raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='generativelanguage.googleapis.com', port=443) HOT 2
- glm.FileData issue? with uris HOT 2
- It appears as though `helper_types` is not included in the types file in the `v0.5.4` tag, but exists in `main` HOT 2
- Problem no attribute 'GenerativeModel' HOT 5
- [Bugs] protobuf bugs when importing generativeai module. HOT 3
- Unclear finish_reason HOT 3
- Can’t pip install python package in NVIDIA Omniverse
- The count tokens function generates an `google.api_core.exceptions.PermissionDenied` error when using an uploaded file in the prompt using the files api HOT 2
- Allow to modify multiple request options in Python SDK (similar to JavaScript SDK) HOT 1
- Tuned models return no content! HOT 4
- Finish reason should be text not a number HOT 3
- Can I live stream my web cam or live video ( HLS, RTSP and RTMP) to gemini vision api? HOT 3
- The `response.text` quick accessor only works when the response contains a valid `Part`, but none was returned. Check the `candidate.safety_ratings` to see if the response was blocked. HOT 10
- Google Gemini does not provide response if tools are given
- GenerativeModel does not support multiple grounding tools
- No PDF support for files API. HOT 7
- TypeError Could not create `Blob`, expected `Blob`, `dict` or an `Image` type(`PIL.Image.Image` or `IPython.display.Image`) HOT 1
- [Bug]: SQLTalk demo is using VertexAI SDK, not Gemini SDK but is branded as GeminiAI 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 generative-ai-python.