You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But if I set echo to none then it is successfully captured:
chat <- chat_gemini(
model = "gemini-1.5-flash",
echo = "none" # echo text or all results in only the beginning of the response being captured
)
chat1.gemini1.5flash <- chat$chat(ch1)
> chat1.gemini1.5flash
[1] "The Moon doesn't have a capital city because it's not a country or a political entity with a government. It's a natural satellite of Earth.\n"
Its only for gemini, no issue capturing the text for openai, claude, or llama
I was asked to add this - Joe says merge_dicts is not working correctly for Gemini, and Google’s implementation is here
The text was updated successfully, but these errors were encountered:
If you print the chat1 object you'll also see that the message that's saved in the conversation history only includes the one "The" word. So this will also cause Gemini to have no idea what you're talking about in subsequent exchanges.
I'm trying to capture the response and save it as a variable. Default streaming (text or all) results in only the first word being captured.
But if I set echo to none then it is successfully captured:
Its only for gemini, no issue capturing the text for openai, claude, or llama
I was asked to add this - Joe says merge_dicts is not working correctly for Gemini, and Google’s implementation is here
The text was updated successfully, but these errors were encountered: