You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Changelog.md
+61Lines changed: 61 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,64 @@
1
+
#### 2025, October 19 version 1.3.0
2
+
3
+
**Deprecation of Assistants API units**
4
+
5
+
OpenAI announced the deprecation of the Assistants API on August 26, 2025, with permanent removal scheduled for August 26, 2026.
6
+
The following units are now marked as deprecated within the wrapper:
7
+
8
+
-`GenAI.Messages.pas`
9
+
-`GenAI.Threads.pas`
10
+
-`GenAI.Run.pas`
11
+
-`GenAI.RunSteps.pas`
12
+
13
+
These remain functional for backward compatibility but should no longer be used for new developments. Migration to the `v1/conversations` and `v1/responses` endpoints is strongly recommended.
14
+
A dedicated Assistants-to-Conversations migration guide has been added to the documentation.
15
+
16
+
<br>
17
+
18
+
**New API endpoint: `v1/conversations`**
19
+
20
+
- Implements the new Conversations API introduced by OpenAI in March 2025.
21
+
- Enables persistent conversation management and structured context building for use with `v1/responses`.
22
+
- New Delphi types (`TConversation`, `TConversationMessage`, etc.) for creating, updating and listing conversation threads.
-[Responses vs. Chat Completions](#responses-vs-chat-completions)
@@ -34,6 +38,7 @@ ___
34
38
-[How to execute multiple background requests to process a batch of responses?](#how-to-execute-multiple-background-requests-to-process-a-batch-of-responses)
35
39
-[How to structure a chain of thought and develop advanced processing with GenAI?](#how-to-structure-a-chain-of-thought-and-develop-advanced-processing-with-genai)
36
40
-[How do you structure advanced reasoning using Promises and pipelines?](#how-do-you-structure-advanced-reasoning-using-promises-and-pipelines)
41
+
-[Deprecated](#deprecated)
37
42
-[Contributing](#contributing)
38
43
-[License](#license)
39
44
@@ -45,7 +50,7 @@ ___
45
50
46
51
> **Built with Delphi 12 Community Edition** (v12.1 Patch 1)
47
52
>The wrapper itself is MIT-licensed.
48
-
>You can compile and test it free of charge with Delphi CE; any recent commercial Delphi edition works as well.
53
+
>You can compile and test it **free of charge with Delphi CE**; any recent commercial Delphi edition works as well.
49
54
50
55
**DelphiGenAI** is a full OpenAI wrapper for Delphi, covering the entire platform: text, vision, audio, image generation, video (Sora-2), embeddings, conversations, containers, and the latest `v1/responses` agentic workflows. It offers a unified interface with sync/async/await support across major Delphi platforms, making it easy to leverage modern multimodal and tool-based AI capabilities in Delphi applications.
To streamline the use of the API wrapper, the process for declaring units has been simplified. Regardless of which methods you use, you only need to reference the following two core units:
99
+
`GenAI` and `GenAI.Types`.
100
+
101
+
<br>
102
+
103
+
>[!TIP]
104
+
> To effectively use the examples in this tutorial, particularly when working with asynchronous methods, it is recommended to define the client interfaces with the broadest possible scope. For optimal implementation, these clients should be declared in the application's `OnCreate` method.
105
+
>
106
+
107
+
<br>
108
+
109
+
## Code examples
110
+
111
+
The **OpenAI API** lets you plug advanced models into your applications and production workflows in just a few lines of code. Once billing is enabled on your account, your API keys become active and you can start making requests — including your first call to the chat endpoint within seconds.
To streamline the use of the API wrapper, the process for declaring units has been simplified. Regardless of the methods being utilized, you only need to reference the following two core units:
121
-
`GenAI` and `GenAI.Types`.
122
-
123
-
<br>
124
-
125
-
>[!TIP]
126
-
> To effectively use the examples in this tutorial, particularly when working with asynchronous methods, it is recommended to define the client interfaces with the broadest possible scope. For optimal implementation, these clients should be declared in the application's `OnCreate` method.
127
-
>
128
-
129
-
<br>
130
-
131
219
___
132
220
133
221
# GenAI functional coverage
134
222
135
223
Below, the table succinctly summarizes all OpenAI endpoints supported by the GenAI.
@@ -239,7 +331,7 @@ Alternatively, you can access it via the `HttpMonitoring` function, declared in
239
331
240
332
**Usage Example**
241
333
242
-
```Delphi
334
+
```pascal
243
335
//uses GenAI;
244
336
245
337
procedure TForm1.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
@@ -263,7 +355,7 @@ Among the method's parameters, you can specify the model to be used for the enti
263
355
264
356
**Usage Example**
265
357
266
-
```Delphi
358
+
```pascal
267
359
//uses GenAI, GenAI.Types, GenAI.Tutorial.VCL;
268
360
269
361
Client.Chat.CreateParallel(
@@ -323,7 +415,22 @@ Orchestrate AI thought chains elegantly and efficiently. By leveraging a dynamic
323
415
324
416
___
325
417
418
+
# Deprecated
419
+
420
+
## Deprecation of the OpenAI Assistants API
326
421
422
+
OpenAI announced the deprecation of the Assistants API on **August 26, 2025**, with permanent removal scheduled for **August 26, 2026**.
423
+
This API is being replaced by the new ***Responses API*** and ***Conversations API***, launched in March 2025, which integrate and simplify all functionality previously provided by the Assistants API.
424
+
425
+
To ensure future compatibility, it is strongly recommended to migrate your integrations to the Responses and Conversations APIs as soon as possible.
426
+
See the [Assistants-to-Conversations migration guide](https://platform.openai.com/docs/assistants/migration) for more details.
0 commit comments