@KiKiN
Hello,
I'm delighted to hear that you've successfully integrated the gpt-3.5-turbo-instruct model into your application and are looking to enhance it with conversation history capabilities.
To implement conversation history within the Vapi framework, you can follow these steps:
1. **Assign Unique Identifiers**: Assign a unique identifier to each user or conversation session. This ID will be used to track and store the conversation history.
2. **Store Conversations**: After each interaction, store the conversation data along with the unique identifier in your system. This can be done in a database or any persistent storage system you prefer.
3. **Retrieve History**: When a new conversation starts, retrieve the previous conversation history using the unique identifier before making a call to the LLM.
4. **Pass Context**: Include the retrieved conversation history as context when making requests to the LLM. This will allow the model to maintain the context of the conversation.
5. **Update Context**: After each response from the LLM, update the stored conversation history with the new interaction to keep the context current.
If you need to pass custom data or unique identifiers during conversations, you can typically do so by including them in the payload of your API requests to the LLM. Ensure that your system is designed to handle these identifiers securely and efficiently.
For more specific guidance or if you encounter any issues, please provide additional details about your current setup, and we'll be happy to assist you further.
Best regards,
Vapi Support Team