Powered by
How to send chat histories with Google Vertex
# ❓|questions
s
stkim03_96161
10/04/2024, 4:41 AM
Hi! I'm trying to send chat histories with Google Vertex (following OpenAI examples:
https://github.com/promptfoo/promptfoo/tree/main/examples/openai-chat-history
). But the response doesn't looks like it understood chat histories that I sent. In the image, OpenAI response looks like they understood which message is user's and assistant's. but Google Vertex Gemini's response doesn't look like they understood where the message came from. Is there another way of sending chat histories with Google Vertex? + additional information: Google Vertex uses 'user' and 'model' as a role. so I tried with 'model' beside 'assistant', but the result is same.
https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#contents
https://cdn.discordapp.com/attachments/1291621190959366154/1291621191131463703/chat_histories_test.png?ex=6700c379&is=66ff71f9&hm=8e50eb736bf3d5f211d29ffc3f059ec7ee6bcaa066ef3dd2ccc23cf2861f8b0a&
Previous
Next