-
-
Notifications
You must be signed in to change notification settings - Fork 7
OpenAI.ChatCompletion.Create
Andrew Lambert edited this page Mar 6, 2023
·
1 revision
OpenAI.ChatCompletion.Create
Shared Function Create(Request As OpenAI.Request) As OpenAI.ChatCompletion
Shared Function Create(Optional ChatLog As OpenAI.ChatCompletionData, Role As String, Content As String, Model As OpenAI.Model = Nil) As OpenAI.ChatCompletion
Name | Type | Comment |
---|---|---|
Request | Request | An OpenAI request object. |
Name | Type | Comment |
---|---|---|
ChatLog | ChatCompletionData | Optional. The chat conversation so far. |
Role | String | One of "user" , "assistant" , or "system" , identifying the speaker of the message. |
Content | String | The message that the speaker is sending to the chat. |
Model | Model | Optional. An AI model to use for the request. If not specified then gpt-3.5-turbo is used. |
Returns a new instance of OpenAI.ChatCompletion
containing the response to the query.
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.