Replies: 2 comments 4 replies
-
To integrate history and a proper ChatPrompt for a multimodal setup in your existing code, you can follow these steps:
This setup will allow you to integrate chat history and a proper ChatPrompt for a multimodal setup in your existing code. For more advanced topics like managing large message history and streaming responses, refer to the LangChain documentation [1][2][3][4]. |
Beta Was this translation helpful? Give feedback.
-
Encountered the same problem. Waiting for a fix |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
# Code is below
Description
I'm trying to pass a user question and images to GPT-4o. The amount of images is anything between zero to 'n'. The user can decide.
This works without problems if I apply this:
and
finally
However, I want it to work with history and a proper Chatprompt. I'm not able to bring it to life.
I mean this (which is for pure text):
Any suggestions? I can't make it work.
System Info
langchain==0.2.7
langchain-anthropic==0.1.15
langchain-cohere==0.1.8
langchain-community==0.2.7
langchain-core==0.2.12
langchain-google-genai==1.0.3
langchain-openai==0.1.14
langchain-text-splitters==0.2.2
Beta Was this translation helpful? Give feedback.
All reactions