Skip to content

OpenAI.ChatCompletionData.InsertMessage

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

OpenAI.ChatCompletionData.InsertMessage

Method signatures

Sub InsertMessage(Index As Integer, Role As String, Content As String)
Sub InsertMessage(Index As Integer, Role As String, Content As String, Images() As Picture)
Sub InsertMessage(Index As Integer, Role As String, Content As String, Image As Picture)
Sub InsertMessage(Index As Integer, Role As String, Content As String, ImageURLs() As String)
Sub InsertMessage(Index As Integer, Role As String, Content As String, ImageURL As String)

Parameters

InsertMessage(Integer, String, String)

Name Type Comment
Index Integer The index to insert the message at.
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.

InsertMessage(Integer, String, String, Picture())

Name Type Comment
Index Integer The index to insert the message at.
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.

InsertMessage(Integer, String, String, Picture)

Name Type Comment
Index Integer The index to insert the message at.
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.

InsertMessage(Integer, String, String, String())

Name Type Comment
Index Integer The index to insert the message at.
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.

InsertMessage(Integer, String, String, String)

Name Type Comment
Index Integer The index to insert the message at.
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

Inserts a new message into the chat log, pushing existing messages downward. ImageRecognition chat sessions can include images with messages.

See also

Clone this wiki locally