Echoshard / Gemini_Discordbot

A Gemini Discord bot that can accept images and has conversation memory
MIT License
67 stars 38 forks source link

Message History not Working #8

Closed Sarthak-07 closed 8 months ago

Sarthak-07 commented 8 months ago

It is not saving the history in message_history = {} (i havent disabled it in .env it is more than 0)

Echoshard commented 8 months ago

Are you talking to it in Images? And did you debug the message_history to check?

Sarthak-07 commented 8 months ago

Are you talking to it in Images? And did you debug the message_history to check?

no its not in images, and i tried to debug it but it doesnt save the history anywhere (this is console debug screenshot) image_2023-12-28_094417556

Echoshard commented 8 months ago

I think you miss understand message history is for sending back to the LLM like a conversation. The history is saved inside of message history per user, it does not output to any file. But that's pretty easy to do.

Here is an example of how the history works I get two facts about cats dogs and lizards without needing to reprompt it. image

Sarthak-07 commented 8 months ago

ohh, i thought maybe as like context in VertexAI i can same some promts in it

Echoshard commented 8 months ago

Not to worry, You should be able to easily output it to a file if you want however.