Skip to main content
Version: Next

OpenAIChatAPI

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

Properties

PropertyTypeDescription
completionsOpenAIChatCompletionsAPIAn instance that handles chat completions requests.
visionOpenAIVisionAn helper instance that handles vision-related requests.

Function

create()

create(systemPrompt : Text) : OpenAIChatHelper

ParameterTypeDescription
systemPromptTextThe system prompt to initialize the chat.
Function resultOpenAIChatHelperA helper instance for managing chat interactions.