RepositoryPascal
AliDehbansiahkarbon

AliDehbansiahkarbon/FusionAI

A ChatGPT, Gemini, Claude, and Ollama(offline) plug-in for Embarcadero RAD Studio IDE XE5 to 12.1

279sao
58fork
5issue
1lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: chatgpt-api

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: radstudio

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: expert

#1 Repository của tháng

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:

  • Ask free-form questions in a chat window
  • Run inline questions directly from the editor
  • Use predefined right-click actions such as explain, optimize, add comments, add tests, and find bugs
  • Work with class/type-based prompts from a dedicated Class View
  • Compare answers across multiple AI providers
  • Keep a searchable local history database
  • Use local file logging for diagnostics when needed

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:

  • RAD Studio 10.x
    • 10.1 Berlin
    • 10.2 Tokyo
    • 10.3 Rio
    • 10.4 Sydney
  • RAD Studio 11.x
    • 11 Alexandria

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:

  • OpenAI ChatGPT
  • Google Gemini
  • Anthropic Claude
  • Ollama

Notes

  • ChatGPT, Gemini, and Claude require valid API credentials.
  • Ollama can be used locally without a cloud API key.
  • You can choose a default AI service in the settings.
  • Available models can be refreshed and cached per provider.

Main Features

  • Unified FusionAI chat window
  • Dockable assistant UI when the IDE version supports it
  • Inline editor prompts with the cpt: ... :cpt format
  • Right-click editor actions for selected code
  • Class View with prompt actions and code conversion helpers
  • Provider-aware answer tabs
  • Provider-aware SQLite history
  • History filtering by provider and model
  • Proxy configuration
  • File-based diagnostic logging
  • Configurable timeouts and provider-specific parameters

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:

  • code explanation
  • refactoring ideas
  • architecture questions
  • debugging help
  • ad hoc snippets
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:
  • Ask
  • Add Test
  • Find Bugs
  • Optimize
  • Add Comments
  • Complete Code
  • Explain Code
  • Refactor Code
  • Convert to Assembly

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:

  • Ask
  • Add Test
  • Find Bugs
  • Optimize
  • Add Comments
  • Complete Code
  • Explain Code
  • Refactor Code
  • Convert to Assembly

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:

  • explain a type
  • optimize a type
  • add tests for a type
  • run custom prompts against the selected type
  • convert a type to another language

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:

  • enable/disable state
  • base URL
  • access key
  • model
  • timeout
  • max tokens
  • temperature
  • top-p
  • top-k
  • API version fields when required by the provider

ChatGPT

  • Uses the OpenAI Chat Completions API
  • Works with current GPT-4 and GPT-5 style models

Gemini

  • Uses the Google Generative Language API

Claude

  • Uses the Anthropic API

Ollama

  • Uses a local or remote Ollama endpoint
  • Suitable for offline or private workflows

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:

  • provider
  • model
  • status
  • timestamps
  • duration

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:

  • request URL
  • request JSON
  • response JSON
  • provider status transitions
  • timeout and inline-flow diagnostics

API keys are not written to the log file.

Notes And Limitations

  • Some providers are paid services or have usage limits.
  • Generated content is sent directly to the configured AI provider.
  • You are responsible for reviewing generated code and text before using it.
  • Class View parsing is best-effort and may not perfectly represent every source shape.
  • Very large prompts or very large type bodies may still hit provider-side token limits.

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:

  • provider is enabled
  • base URL is correct
  • access key is valid
  • model is available for that provider
  • timeout is high enough for the selected model

Class View issues

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

  • switch away from Class View and back again
  • reopen the assistant window
  • verify the current unit is the one you expect

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:

  • RAD Studio version
  • provider name
  • active model
  • exact steps to reproduce
  • log output if file logging is enabled

License

MIT. See LICENSE.

Support

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


Delphi

Made with :heart: on Delphi

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJupyter Notebook
openai/openai-cookbook

Examples and guides for using the OpenAI API

77.6k
Nov 25, 2026
RepositoryPython
xtekky/gpt4free

The official gpt4free repository | various collection of powerful language models | opus 4.6 gpt 5.3 kimi 2.5 deepseek v3.2 gemini 3

67.1k
Nov 30, 2026
RepositoryPython
mouredev/Hello-Python

Curso para aprender el lenguaje de programación Python desde cero y para principiantes. 100 clases, 44 horas en vídeo, código, proyectos y grupo de chat. Fundamentos, frontend, backend, testing, IA...

38.2k
Aug 11, 2025
RepositoryJavaScript
songquanpeng/one-api

LLM API 管理 & 分发系统,支持 OpenAI、Azure、Anthropic Claude、Google Gemini、DeepSeek、字节豆包、ChatGLM、文心一言、讯飞星火、通义千问、360 智脑、腾讯混元等主流模型,统一 API 适配,可用于 key 管理与二次分发。单可执行文件,提供 Docker 镜像,一键部署,开箱即用。LLM API management & key redistribution system, unifying multiple providers under a single API. Single binary, Docker-ready, with an English UI.

37.5k
Jan 9, 2026
RepositoryPython
langchain-ai/langchain

The agent engineering platform.

150.1k
Nov 29, 2026
RepositoryPython
microsoft/markitdown

Python tool for converting files and office documents to Markdown.

199.5k
Dec 2, 2026
RepositoryPython
langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

162.3k
Dec 2, 2026
RepositoryJupyter Notebook
microsoft/generative-ai-for-beginners

21 Lessons, Get Started Building with Generative AI

124.7k
Dec 2, 2026
RepositoryPython
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

188.2k
Nov 29, 2026