OpenAIChatAPI
The OpenAIChatAPI class provides an interface to interact with OpenAI's chat based functionality, leveraging completion and vision capabilities.
Propriedades
| Propriedade | Tipo | Descrição | 
|---|---|---|
completions | OpenAIChatCompletionsAPI | An instance that handles chat completions requests. | 
vision | OpenAIVision | A helper instance that handles vision-related requests. | 
Function
create()
create(systemPrompt : Text) : OpenAIChatHelper
| Parâmetro | Tipo | Descrição | 
|---|---|---|
| systemPrompt | Text | The system prompt to initialize the chat. | 
| Resultado | OpenAIChatHelper | A helper instance for managing chat interactions. | 
Exemplo de uso
var $chatHelper:=$client.chat.create("You are a helpful assistant.")