Catalog · How the catalog works
Delphi-AI-Demos
Several Demos in Delphi that show how to use or access LLMs
- ★ 1 on GitHub
Anyone may press Interesting, signed in or not. It helps others find this project.
README
Delphi AI Demos
A collection of Delphi demo applications that show how to integrate AI and Large Language Model (LLM) APIs into Delphi projects. Each demo is self-contained in its own subdirectory with its own README.
Demos
| Demo | Description | Dependencies |
|---|---|---|
| ChatDemo | Two chat applications that connect to the OpenAI API -- a simple version using only built-in Delphi classes and an advanced version with streaming responses and Markdown rendering | Simple: none; Advanced: DelphiGenAI, MarkdownProcessor |
Getting Started
-
Clone with submodules:
git clone --recurse-submodules https://github.com/omonien/Delphi-AI-Demos.gitOr, if already cloned:
git submodule update --init --recursive -
Requirements:
- Delphi 12.x or 13 (RAD Studio Athens or later)
- An OpenAI API key (or compatible endpoint)
-
Navigate into any demo subdirectory and follow the README there for specific setup and build instructions.
Repository Structure
Delphi-AI-Demos/
ChatDemo/ Chat applications using the OpenAI API
source/ Delphi source files
source/simple/ Simple demo (no dependencies)
libs/ Git submodules (DelphiGenAI, MarkdownProcessor)
Build/ Build scripts
Chat.groupproj Project group
README.md Demo-specific documentationAPI Key Configuration
All demos look for the API key in the same way:
- A
settings.inifile next to the executable:[API] Key=sk-your-api-key-here - Or the
OPENAI_API_KEYenvironment variable as fallback.
Never commit your API key. The .gitignore already excludes settings.ini.
License
MIT License -- Copyright 2026 Olaf Monien

