Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.16 KB

File metadata and controls

27 lines (18 loc) · 1.16 KB

OpenAIChatAPI

The OpenAIChatAPI class provides an interface to interact with OpenAI's chat based functionality, leveraging completion and vision capabilities.

Properties

Property Type Description
completions OpenAIChatCompletionsAPI An instance that handles chat completions requests.
vision OpenAIVision An helper instance that handles vision-related requests.

Function

create()

create(systemPrompt : Text) : OpenAIChatHelper

Parameter Type Description
systemPrompt Text The system prompt to initialize the chat.
Function result OpenAIChatHelper A helper instance for managing chat interactions.

Example Usage

var $chatHelper:=$client.chat.create("You are a helpful assistant.")