TsgcAIChat › Properties › ChatOptions

ChatOptions Property

Connection and sampling options shared by every provider.

Syntax

property ChatOptions: TsgcAIChatOptions read FChatOptions write SetChatOptions;

Default Value

—

Remarks

Published sub-properties used regardless of the selected Provider:

 

Each provider receives structured output in its own shape, and ChatJSON is the call that reads the answer back. See TsgcAIChat Structured Output.

Example

oChat.ChatOptions.ApiKey := 'API_KEY';
oChat.ChatOptions.Model := 'gpt-4o-mini';
oChat.ChatOptions.MaxTokens := 2048;
oChat.ChatOptions.Temperature := 0.7;

Back to Properties