GeminiAI Chat with History

GeminiAI Chat with History

Introduction to GeminiAI Chat with History recipe

Introduction to GeminiAI Chat with History recipe

The GeminiAI Chat with History recipe is initiated using an HTTP request.
The process maintains chat history in a file and uses it as context for the last user question and LLM answer. It reads input parameters to check if the file exists, retrieves the last user question and LLM answer, prepares a request, and sends it. If the file doesn't exist, it creates one and writes the user input and LLM answer to it.

0 COMMENTS

We’d like to hear from you!