Skip to content

OpenAI.ChatCompletionData.AddMessage

Andrew Lambert edited this page Dec 25, 2023 · 2 revisions

Method signatures

Sub AddMessage(Role As String, Content As String)
Sub AddMessage(Role As String, Content As String, Images() As Picture)
Sub AddMessage(Role As String, Content As String, Image As Picture)
Sub AddMessage(Role As String, Content As String, ImageURLs() As String)
Sub AddMessage(Role As String, Content As String, ImageURL As String)

Parameters

AddMessage(String, String)

Name Type Comment
Role String One of "user", "assistant", or "system", identifying the speaker of the message.
Content String The message that the speaker is adding to the chat.

AddMessage(String, String, Picture())

Name Type Comment
Role String One of "user", "assistant", or "system", identifying the speaker of the message.
Content String The message that the speaker is adding to the chat.
Images Picture array One or more images that the speaker is adding to the chat.

AddMessage(String, String, Picture)

Name Type Comment
Role String One of "user", "assistant", or "system", identifying the speaker of the message.
Content String The message that the speaker is adding to the chat.
Image Picture A single image that the speaker is adding to the chat.

AddMessage(String, String, String())

Name Type Comment
Role String One of "user", "assistant", or "system", identifying the speaker of the message.
Content String The message that the speaker is adding to the chat.
ImageURLs String array One or more image URLs that the speaker is adding to the chat.

AddMessage(String, String, String)

Name Type Comment
Role String One of "user", "assistant", or "system", identifying the speaker of the message.
Content String The message that the speaker is adding to the chat.
ImageURL String A single image URL that the speaker is adding to the chat.

Remarks

Adds a new message to the end of the chat log. ImageRecognition chat sessions can include images with messages.

See also

Clone this wiki locally