Skip to content

Commit

Permalink
fix issue #109
Browse files Browse the repository at this point in the history
  • Loading branch information
redevrx committed Apr 28, 2024
1 parent c766eac commit 9e39b4e
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 11 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,9 @@
- Update Generate Image Request

## 3.0.5
- Fix Assistant Data Json parsing bug
- Fix Assistant Data Json parsing bug

## 3.0.6
- Fix list run case id is null
- Message add runId
- Add fix for assistant_data json parsing
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ supervised and reinforcement learning techniques.

## Install Package
```dart
chat_gpt_sdk: 3.0.5
chat_gpt_sdk: 3.0.6
```

## Create OpenAI Instance
Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ packages:
path: ".."
relative: true
source: path
version: "3.0.4"
version: "3.0.6"
clock:
dependency: transitive
description:
Expand Down Expand Up @@ -477,5 +477,5 @@ packages:
source: hosted
version: "1.0.4"
sdks:
dart: ">=3.3.0 <4.0.0"
dart: ">=3.3.4 <4.0.0"
flutter: ">=3.19.0"
4 changes: 2 additions & 2 deletions example_app/openai_app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ packages:
path: "../.."
relative: true
source: path
version: "3.0.4"
version: "3.0.5"
clock:
dependency: transitive
description:
Expand Down Expand Up @@ -581,5 +581,5 @@ packages:
source: hosted
version: "1.0.0"
sdks:
dart: ">=3.3.0 <4.0.0"
dart: ">=3.3.4 <4.0.0"
flutter: ">=3.10.0"
2 changes: 1 addition & 1 deletion example_app/openai_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.1+6

environment:
sdk: '>=3.3.0 <4.0.0'
sdk: '>=3.3.4 <4.0.0'

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
Expand Down
4 changes: 2 additions & 2 deletions lib/src/model/run/response/list_run.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ class ListRun {
String object;

factory ListRun.fromJson(Map<String, dynamic> json) => ListRun(
firstId: json["first_id"],
firstId: json["first_id"] ?? '',
data: json["data"] == null
? []
: List<CreateRunResponse>.from(
json["data"].map((x) => CreateRunResponse.fromJson(x)),
),
lastId: json["last_id"],
lastId: json["last_id"] ?? '',
hasMore: json["has_more"],
object: json["object"],
);
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: chat_gpt_sdk
description: create chat bot and other bot with ChatGPT SDK Support GPT-4 , 3.5 and SSE Generate Prompt (Stream)
version: 3.0.5
version: 3.0.6
homepage: https://www.facebook.com/REDEVRX
repository: https://github.com/redevRx/Flutter-ChatGPT

environment:
sdk: '>=3.3.0 <4.0.0'
sdk: '>=3.3.4 <4.0.0'

dependencies:
dio: ^5.4.1
Expand Down

0 comments on commit 9e39b4e

Please sign in to comment.