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 | A 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.")