TsgcAIChat is a single component that works with any AI provider.
TsgcAIChat is a single component that works with any AI provider. Switch providers by changing one property. The component includes built-in conversation history management, making it easy to build chat applications without manually tracking messages.
Set ChatOptions.ResponseFormat to rfJSON or to rfJSONSchema and call ChatJSON to get the answer as a JSON document, whichever provider is selected. TsgcAIChat Structured Output describes the options, what each provider receives and the one combination that is refused.
Send PDF documents and images with a message using ChatWithDocument, ChatWithDocumentBase64, ChatWithAttachments and ChatJSONWithAttachments. PDF input is accepted by OpenAI, Anthropic and Gemini; DeepSeek, Grok, Mistral and Ollama accept images only. TsgcAIChat Documents and PDF describes the methods and the attachments list, and TsgcAIDocumentExtractor turns documents into validated structured data.