|
| 1 | +#### 2025, August 12 version 1.2.0 |
| 2 | +**Modifications to ensure full use of the gtp-5 model** |
| 3 | + |
| 4 | +- JSON Normalization Before Deserialization |
| 5 | + - New `GenAI.API.Normalizer` module (`TJSONNormalizer`, `TWrapKind`, `TNormalizationRule`) to unify polymorphic fields (e.g., string vs. object). |
| 6 | + - Direct integration in the HTTP layer: new `Get(..., Path)` overloads allow targeted normalization of a JSON subtree before object mapping. |
| 7 | + |
| 8 | +- Canceling Background Requests |
| 9 | + - New `Responses.AsyncAwaitCancel(response_id)` method to cancel an asynchronous (`background = true`) response, with full callback support (`OnStart`, `OnSuccess`, `OnError`). |
| 10 | + |
| 11 | +- Streaming Enhancements |
| 12 | + - Extended typed coverage for streaming events and outputs (MCP, Code Interpreter, Image Generation, etc.) via new `Responses.OutputParams` classes (`TResponseOutput*`, `TResponseImageGenerationTool`, `TResponseCodeInterpreter`, etc.). |
| 13 | + |
| 14 | +- New Types and Parameters |
| 15 | + - InputParams: full coverage for computer interactions, local shell, MCP, web search, code, image generation, reasoning, text/JSON formats, tool choice/hosted tool, and file search filters. |
| 16 | + - OutputParams: states (`Created`, `InProgress`, etc.), events (`Added`, `Delta`), usage metrics, and statistics. |
| 17 | + - New enums (`TOutputIncluding`, `TReasoningGenerateSummary`, `TFidelityType`, etc.). |
| 18 | + |
| 19 | +- API `v1/chat/completions` |
| 20 | + - New parameters: |
| 21 | + - `prompt_cache_key` (prompt caching) |
| 22 | + - `safety_identifier` (stable ID for safety monitoring) |
| 23 | + - `verbosity` (low/medium/high) |
| 24 | + |
| 25 | +- API `v1/responses` |
| 26 | + - New parameters: |
| 27 | + - `max_tool_calls` |
| 28 | + - `prompt` (template reference via `TPromptParams`) |
| 29 | + - `prompt_cache_key`, `safety_identifier` |
| 30 | + - `stream_options`, `top_logprobs`, `verbosity` |
| 31 | + |
| 32 | +- Structured System and Developer Messages |
| 33 | + - New overloads: |
| 34 | + - `TMessagePayload.Developer(const Content: TArray; const Name: string = '')` |
| 35 | + - `TMessagePayload.System(const Content: TArray; const Name: string = '')` |
| 36 | + - Improves parity between plain text and structured content flows. |
| 37 | + |
| 38 | +<br> |
| 39 | + |
1 | 40 | ### 2025, June 14 version 1.1.0 (**Getit version**) |
2 | 41 | - Given the project’s rapid progress, it’s now essential to embed versioning directly into the GenAI wrapper’s source code. For any client implementing the IGenAI interface, the version number can be retrieved via the Version property, for example: |
3 | 42 | ```Delphi |
|
0 commit comments