Delphi SDK for OpenAI APIs (plus DeepSeek, Azure OpenAI, YandexGPT)
Top 94.9% on sourcepulse
This repository provides an unofficial Delphi wrapper for the OpenAI API, enabling developers to integrate services like ChatGPT, DALL-E, and Whisper into their Delphi applications. It supports a wide range of OpenAI functionalities, including text generation, image creation, audio processing, and function calling, with ongoing development for Assistants API features.
How It Works
The library offers a direct implementation of OpenAI's RESTful API endpoints using Delphi's native HTTP client components. It abstracts the complexities of JSON serialization/deserialization and request/response handling, providing a Pascal-native interface for interacting with models like GPT-3.5-turbo and GPT-4. The design emphasizes ease of use with anonymous methods for parameter configuration and includes robust error handling for API-specific exceptions.
Quick Start & Requirements
Highlighted Details
Maintenance & Community
The project is maintained by HemulGM. Further community engagement details (e.g., Discord/Slack) are not specified in the README.
Licensing & Compatibility
Limitations & Caveats
The Assistants, Threads, and Messages APIs are marked as "In progress." The library is unofficial, meaning it is not supported or endorsed by OpenAI. Exposing API keys in client applications poses a security risk.
6 days ago
1 day