-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error running Module 3 - Lesson 3: Editing State and Human Feedback with Gemini: 400 Please ensure that function call turn comes immediately after a user turn or after a function response turn. #28
Error running Module 3 - Lesson 3: Editing State and Human Feedback with Gemini: 400 Please ensure that function call turn comes immediately after a user turn or after a function response turn. #28
Comments
ah, this is likely an issue w/ gemini -
related to requirements on message order. i will need to look into it (have not worked extensively w/ Gemin). |
Thanks for the upadate. I am also trying to investigate the message order, but have not founded nothing documentated about it so far. |
@lucasmaraal could you elaborate/clarify what you're trying to understand regarding message order? Do you mean in what order are the messages being put into the state? |
@shiv248, I am trying to undestarding what i have to tweak in the graph from lesson to have it working with Gemni. I don't know if this is out scope, but I am think my doubt can be realated to the course. |
Ya, I got Vertex credentials and confirmed that I can repro this - Here's the commit - It's specific to adding the breakpoint -
For example, if you compile w/o the breakpoint it works as expected. Checking w/ some folks on our side in case it's an issue w/ the integration. (Obviously, course is tested w/ OpenAI and Anthropic, so use those to unblock. But this is good confirm no issue w/ Gemini.) |
I asked folks from Google.
|
We do this at the bottom section of the ntbk, |
I think i am getting a similar error using gpt-4o-mini in Module 5: Lesson 5 #59 |
Steps to reproduce:
Running the follow snippets will reproduce the issue:
Full trace:
Expected Behavior:
The graph executes and returns an AIMessage, like in the tutorial.
Environment*:
python: 3.12.3
langgraph-checkpoint-sqlite: 1.0.3
langgraph: 0.2.22
langchain-google-vertexai: 2.0.0
vertexai: 1.67.0
langchain-openai: 0.2.0
The text was updated successfully, but these errors were encountered: