Overview
Nearly every Delphi shop with a line-of-business application is being asked to "add AI" —
chat, summarisation, extraction, classification, document Q&A. The demand is large, the budgets are
already allocated, and until now there has been no first-class native option.
AI4Delphi closes that gap. Each pack is a set of Delphi units plus a self-contained .NET facade
assembly that collapses the heavily async / IAsyncEnumerable / Span<T>
surface of the modern AI SDKs into a flat, bridge-friendly API: plain properties, blocking calls, and
standard .NET events that the bridge maps straight onto Delphi event properties. You write ordinary
Delphi; the AI runs on .NET.
Why AI4Delphi?
- Token-by-token streaming surfaced as Delphi events — not a blocking call that freezes your UI.
- Provider neutral. Anthropic, OpenAI and Azure OpenAI behind one
IChatClient, selected at construction.
- Runs locally too. Ollama, LM Studio and Foundry Local speak the OpenAI protocol, so the same code reaches an offline model with no API key.
- Production hardened. Retry with backoff honouring
Retry-After, cost and token telemetry, cancellation, response caching and UI-thread marshalling are built in.
- Your Delphi code becomes a tool the model can call — the capability no other Delphi product offers.
- Royalty-free deployment. The licence gates the developer seat at design time; shipped executables run free, exactly like the base bridge.