How can I disable the Chat history on my API

I’ve been making a Roblox game about generating tools with Luau code via a user’s request, but I noticed that it seems to be building up a chat history.
Example:
Request 1: “Make a sword”
Answer: (Luau code)
Request 2: “What was my previous request?”
Answer: (the same Luau code as before)
I don’t want the AI to have a chat history, and I can’t figure out how to disable it.
I’m pretty new to using Gemini so I’m not really sure what to do. Any help is appreciated!

3 Likes

Hi @HeroDevv , Welcome to the forum.

You can use the generate_content method instead of the start_chat method. You can check out our quickstart tutorial notebook for more information.

1 Like