Convert context to chat history in gemini model #10472
yukikwi
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Instead of raise error Gemini model don't support system messages (using to set model's context).
Inspired from https://www.googlecloudcommunity.com/gc/AI-ML/Gemini-Pro-Context-Option/m-p/684917
Maybe set context via chat history is a good idea isn't it?
This also solve error when execute
query_engine.query
with gemini-pro as llm.from
to
Beta Was this translation helpful? Give feedback.
All reactions