Aller au contenu principal
Version: Suivant

OpenAIChatAPI

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

Propriétés

PropriétéTypeDescription
completionsOpenAIChatCompletionsAPIAn instance that handles chat completions requests.
visionOpenAIVisionAn helper instance that handles vision-related requests.

Function

create()

create(systemPrompt : Text) : OpenAIChatHelper

ParamètresTypeDescription
systemPromptTextThe system prompt to initialize the chat.
RésultatOpenAIChatHelperA helper instance for managing chat interactions.