Add method to load a conversation
See original GitHub issueIt is useful to have a method that allows to load a previous conversation:
Task<Guid> LoadConversationAsync(IEnumerable<ChatGptMessage> messages);
Task<Guid> LoadConversationAsync(Guid conversationId, IEnumerable<ChatGptMessage> messages, bool replaceHistory = true);
Consider the following guidelines:
- The first method must call the second one with
Guid.NewGuid()
asconversationId
- If
replaceHistory = false
, messages must be added to existing ones in the given conversation - The total number of messages must not exceed the message limit defined in
ChatGptOptions
Issue Analytics
- State:
- Created 5 months ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How do I add someone to a Twilio Conversation Channel?
You can use the add method from the Conversation object. You'll need to pass the identity of the user.
Read more >Exploring the Conversations JavaScript Quickstart
The React Conversation component loads the existing messages from the conversation proxy, using the getMessages() method on the Twilio SDK Conversation class.
Read more >ChatGPT Tutorial - A Crash Course on Chat GPT for Beginners
New - Teach Me OpenAI Digital Book ⭐ https://enhanceui.gumroad.com/l/teach-me-openai I've put together a easy to understand book with ~60 ...
Read more >Conversations API Quickstart
Get up and running with the Twilio Conversations Quickstart: learn how to build persistent conversations across SMS and chat.
Read more >conversations.history method
This method returns a portion of message events from the specified conversation. To read the entire history for a conversation, call the method...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You’re right, it is a typo. I have updated the description.
Thanks a lot