Text Chat
TOX name base_txt_to_chat
Summary
A TouchDesigner component for generating synthetic text with the Google Gemini API based on a chat style exchange. The first input to the Component is used as the input text for the model. The second input can be used to provide a chat history, or context, when interacting with the model.
Controls
Refer to the Common Controls for a list of all available parameters.
| Parameter Name | Parameter | Type | Description |
|---|---|---|---|
| Clear Length | Chatlength | int | The number length of the chat history |
| Clear Chat History | Clearchathistory | pulse | Clears the chat history |
Outputs
| Output Index | Name | Type | Description |
|---|---|---|---|
| 0 | out_chat | DAT | Contains the response back from the Google Gemini API as a series of rows that contain both the user and model exchange |
| 1 | out_chat_as_block | DAT | A single text block formatted as a chat history |
| 2 | out_metadata | DAT | Contains the metadata back from the Google Gemini API, this includes data like total token count, and prompt token count |