TsgcAIOpenAIChatBotProperties › ChatBotOptions

ChatBotOptions Property

ChatBot behaviour: Transcription (Whisper model/language) and ChatCompletion (model, Enabled flag).

Syntax

property ChatBotOptions: TsgcHTTPOpenAIChatBot_Options read FChatBotOptions write SetChatBotOptions;

Default Value

Two nested sub-sections:

Remarks

Set ChatCompletion.Enabled to false when you only want transcription (for example, dictation) without an AI reply. Changing Transcription.Language at runtime is allowed and takes effect on the next Stop.

Example

sgcChatBot.ChatBotOptions.Transcription.Model := 'whisper-1';
sgcChatBot.ChatBotOptions.Transcription.Language := 'en';
sgcChatBot.ChatBotOptions.ChatCompletion.Model := 'gpt-4o-mini';
sgcChatBot.ChatBotOptions.ChatCompletion.Enabled := True;

Back to Properties