-
-
Notifications
You must be signed in to change notification settings - Fork 8
OpenAI.ChatCompletionData
Andrew Lambert edited this page Mar 12, 2023
·
8 revisions
OpenAI.ChatCompletionData
Protected Class ChatCompletionData
This class represents sequence of zero or more chat messages, which provide the context for the AI in ChatCompletion requests.
Messages may be attributed to one of three entities: "user"
, "assistant"
, and "system"
. A chat conversation is typically, but not necessarily, initiated with the "system"
providing guidance to the AI "assistant"
as to how to respond to the "user"
.
Dim chatlog As New OpenAI.ChatCompletionData
chatlog.AddMessage("system", "You are a helpful assistant.")
Dim reply As OpenAI.ChatCompletion = OpenAI.ChatCompletion.Create(chatlog, "user", "Who won the world series in 2020?")
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2023-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.