question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add method to load a conversation

See original GitHub issue

It 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() as conversationId
  • 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:closed
  • Created 5 months ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
marcominervacommented, Apr 17, 2023

You’re right, it is a typo. I have updated the description.

1reaction
InomjonIsmaylovcommented, Apr 17, 2023

Thanks a lot

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found