Skip to content

Commit 457ff13

Browse files
committed
chore(release): prepare 6.0.0
- Bump version to 6.0.0 in pubspec.yaml - Update CHANGELOG for 6.0.0 major release - README: refresh API coverage timestamps; fix Files usage example; clean minor typos - Files: refactor query building using BaseApiUrlBuilder.buildWithQuery; move upload above for readability; keep expires_after placeholder - Remove obsolete example: create_audio_transcription_with_chunking_strategy.dart - File model: add toMap for OpenAIFileExpiresAfter
1 parent ac1416a commit 457ff13

File tree

9 files changed

+122
-224
lines changed

9 files changed

+122
-224
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Changelog
22

3-
## NEXT
3+
## 6.0.0
44

5-
- Support for logprobs in the chat completions API.
5+
- Complete rewrite, retest and implementation for the package to match latest API changes from OpenAI including all new features and endpoints.
66

77
- Bug fixes.
88

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,21 +104,21 @@ print(chatCompletion.choices.first.message.content);
104104
| **📊 [Embeddings](#-embeddings)** | ✅ Complete | All | 11-08-2025 17:56:30 |
105105
| **⚖️ [Evals](#️-evals)** | ✅ Complete | All | 11-08-2025 21:04:36 |
106106
| **🔧 [Fine-tuning](#-fine-tuning)** | 🧩 70% Complete | missing newer endpoints ||
107-
| **📊 [Graders](#-graders)** | ✅ Complete | All ||
107+
| **📊 [Graders](#-graders)** | ✅ Complete | All | 11-08-2025 21:46:48 |
108108
| **📦 [Batch](#-batch)** | 🗓️ planned | - ||
109-
| **📁 [Files](#-files)** | ✅ Complete | All ||
109+
| **📁 [Files](#-files)** | ✅ Complete | All | 11-08-2025 21:51:34|
110110
| **📤 [Uploads](#-uploads)** | 🗓️ planned | - ||
111-
| **🤖 [Models](#-models)** | ✅ Complete | All ||
112-
| **🛡️ [Moderation](#️-moderation)** | ✅ Complete | All||
111+
| **🤖 [Models](#-models)** | ✅ Complete | All | 11-08-2025 21:53:13 |
112+
| **🛡️ [Moderation](#️-moderation)** | ✅ Complete | All | 11-08-2025 21:54:01 |
113113
| **🗃️ [Vector Stores](#️-vector-stores)** | 🗓️ planned | - ||
114114
| **💬 ChatKit** | ❌ NOt planned | Beta feature ||
115115
| **📦 [Containers](#-containers)** | 🗓️ planned | - ||
116116
| **🕛 [Real-time](#-real-time)** | 🗓️ planned | - ||
117117
| **💬 [Chat Completions](#-chat-completions)** | ✅ Complete | excluding stream functionality ||
118118
| **🤖 Assistants** | NOt planned | beta feature ||
119119
| **🤖 [Administration](#-administration)** | 🗓️ planned | - ||
120-
| **📝 Completions (Legacy)** | ✅ Complete | Create, Stream, Log probabilities ||
121-
| **✏️ Edits (Legacy)** | ✅ Complete | Text editing (deprecated by OpenAI) ||
120+
| **📝 Completions (Legacy)** | ✅ Complete | All ||
121+
| **✏️ Edits (Legacy)** | ✅ Complete | All ||
122122

123123
---
124124

@@ -432,7 +432,7 @@ final isValid = OpenAI.instance.graders.validateGrader(
432432
// Upload file
433433
OpenAIFileModel file = await OpenAI.instance.files.upload(
434434
file: File("path/to/file.jsonl"),
435-
purpose: OpenAIFilePurpose.fineTune,
435+
purpose: "assistants",
436436
);
437437
438438
// List files
@@ -474,7 +474,6 @@ bool deleted = await OpenAI.instance.model.delete("fine-tuned-model-id");
474474
#### 🛡️ Moderation
475475

476476
```dart
477-
// Create moderation
478477
OpenAIModerationModel moderation = await OpenAI.instance.moderation.create(
479478
input: ["Text to classify for moderation"],
480479
model: "omni-moderation-latest",

example/lib/create_audio_transcription_with_chunking_strategy.dart

Lines changed: 0 additions & 97 deletions
This file was deleted.

example/lib/env/env.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// lib/env/env.dart
22
import 'package:envied/envied.dart';
33

4-
part 'env.g.dart';
4+
// part 'env.g.dart';
55

6-
@Envied(path: ".env")
6+
@envied
77
abstract class Env {
88
@EnviedField(varName: 'OPEN_AI_API_KEY')
9-
static const String apiKey = _Env.apiKey;
9+
static const String apiKey = "_";
1010
}

0 commit comments

Comments
 (0)