langchain-ai / langchain-google

MIT License
98 stars 114 forks source link

AttributeError: 'NoneType' object has no attribute 'prompt_feedback' #430

Open Puneet-Bajaj-IITM opened 1 month ago

Puneet-Bajaj-IITM commented 1 month ago

The code was working fine till yesterday now it has stopped working. even the code in official documentation is throwing this error. Please help resolve this issue

Screenshot 2024-08-09 201854

lkuligin commented 1 month ago

I'm sorry but I can't reproduce it on my side. Are all requests failing for you, or only this particular one?

And which version of langchain-google-genai do you have installed?

PsychedelicEmbassy commented 3 weeks ago

Same here. Copied from official docs and it fails. All gemini models produce the same error mentioned above. Installed langchain_google_genai today with pip so im assuming its latest.

code: from langchain_google_genai import ChatGoogleGenerativeAI

llm = ChatGoogleGenerativeAI(model="gemini-1.5-pro") llm.invoke("Write me a ballad about LangChain")

Pldesch commented 3 weeks ago

Hi I am having the same issue as well. I started having the issue using langchain-google-genai 1.0.8 and I keep having the same issue with 1.0.9. Same as everyone my code was working fine a week ago and I noticed it breaking from today

AkashBais commented 3 weeks ago

@Puneet-Bajaj-IITM did you find a solution/reason for this