FusionAI

FusionAI logo

AI assistance for Embarcadero RAD Studio 10.x and 11.x, directly inside the IDE.

License Stars Forks Last commit

Buy Me A Coffee

FusionAI is the current evolution of the original ChatGPTWizard project.

What It Is

FusionAI is a Delphi plug-in for RAD Studio that brings AI-assisted workflows into the IDE:

The project is intended for RAD Studio versions that do not have the newer built-in AI workflow as the primary path.

Supported IDE Versions

This repository currently targets:

This repository is not the main target for RAD Studio 12.2+.

For older IDEs, use the separate branch/repository:

Supported AI Providers

FusionAI currently supports:

Notes

Main Features

Installation

Option 1: Delphinus

Install through Delphinus.

Option 2: Direct package install

  1. Open FusionAI.dproj in RAD Studio.
  2. Build the package.
  3. Install the generated package from the IDE.

Quick Start

  1. Open FusionAI Settings.
  2. Go to AI Services.
  3. Enable at least one provider.
  4. Fill in the provider settings:
    • Base URL
    • Access key if required
    • Default model
    • Optional provider-specific parameters
  5. Save and reopen the assistant if needed.

How To Use

Chat Window

Open FusionAI from the IDE menu and ask a normal question.

Use this for:

FusionAI main form FusionAI answer view

Inline Questions

There are two main inline workflows:

  1. Use direct inline prompt markers:
cpt: Explain what this method does. :cpt

Then run the Ask action from the editor popup menu or use its shortcut.

  1. Select code and use a predefined action from the popup menu:

The response is inserted back into the editor as a multiline comment after the selected code.

Context Menu

For selected text or a code block, FusionAI can insert the result after the selection as a multiline Delphi comment block.

Available actions include:

Context menu

Context menu actions

Selected Code Without Inline Markers

If you select code and trigger the first Ask action without the cpt: ... :cpt format, FusionAI opens the chat window and prepares a draft question for you.

Class View

The Class View tab lets you work with types parsed from the current Delphi unit.

Typical uses:

The parser has been improved to better tolerate newer Delphi syntax, but Class View is still best treated as a practical helper rather than a full compiler-grade parser.

Class View

Provider Configuration

Each provider has its own configuration tab under AI Services.

Depending on the provider, you can configure:

ChatGPT

Gemini

Claude

Ollama

Settings UI

Provider settings are managed from the AI Services page. image image

Ollama Setup

  1. Install Ollama from ollama.com.
  2. Make sure the server is running.
  3. Pull at least one model, for example:
ollama run llama3.2
  1. In FusionAI settings, enable Ollama.
  2. Set the base URL, usually:
http://localhost:11434
  1. Choose or enter the model name.

Legacy setup screenshot:

Ollama local server

History

FusionAI can store requests and responses in a local SQLite database.

History includes provider-aware metadata such as:

You can filter the history by provider and model, and use text or fuzzy search to find older conversations.

History grid

History detail

Search In History

History supports text and fuzzy filtering with extra search options.

History search 1

History search 2

History search 3

Logging

FusionAI supports optional file-based logging for troubleshooting.

When enabled, logs can include:

API keys are not written to the log file.

Notes And Limitations

Troubleshooting

SSL / HTTP issues

If HTTPS requests fail inside the IDE, make sure the required SSL libraries are available in the environment used by bds.exe.

Empty or invalid provider results

Check:

Class View issues

If Class View looks stale after switching units or reopening the assistant:

Demo Videos

Short 1 (all features)
Short 2 (multi-provider demo)
Long demo

Legacy Name

This repository still uses the historical GitHub repository name ChatGPTWizard, but the current plug-in and package name is FusionAI.

Contributing

Issues, pull requests, and discussions are welcome.

Please include:

License

MIT. See LICENSE.

Support

If you find the project useful, starring the repository helps a lot.


Delphi

Made with :heart: on Delphi