Replies: 1 comment 2 replies
-
after adding
to _convert_messages_to_ollama_messages in chat_models/ollama.py I got the message ValueError: Ollama call failed with status code 400. Details: invalid role: function, role must be one of [system, user, assistant] where do I have to adapt the code? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked
Feature request
support FunctionMessage, ToolMessage and the role function, tool
Motivation
when using Ollama with Langgraph, I got the following error.
ValueError: Received unsupported message type for Ollama.
Proposal (If applicable)
No response
Beta Was this translation helpful? Give feedback.
All reactions