Skip to content

Commit

Permalink
[ Fix ] fixed analyser type issue, edited documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
anasfik committed Mar 8, 2023
1 parent e7c36cc commit d60f4dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ OpenAIChatCompletionModel chatCompletion = await OpenAI.instance.chat.create(
in addition to calling `OpenAI.instance.chat.create()` which is a `Future` and will resolve only after the whole chat is generated, you can get a `Stream` of results:

```dart
OpenAIStreamChatCompletionModel chatStream = OpenAI.instance.chat.createStream(
OpenAIStreamChatCompletionModel chatStream = OpenAI.instance.chat.createStream(
model: "gpt-3.5-turbo",
messages: [
OpenAIChatCompletionChoiceMessageModel(
Expand All @@ -237,7 +237,7 @@ in addition to calling `OpenAI.instance.chat.create()` which is a `Future` and w
],
);
chatStream.listen((chatStreamEvent) {
chatStream.listen((chatStreamEvent) {
print(chatStreamEvent); // ...
})
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class OpenAIStreamCompletionModelChoice {
final int? logprobs;

/// The reason the completion finished.
final finishReason;
final String finishReason;

@override
int get hashCode {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: dart_openai
description: Dart SDK for openAI Apis (GPT-3 & DALL-E), integrate easily the power of OpenAI's state-of-the-art AI models into their Dart applications.
version: 1.6.1
version: 1.6.2
homepage: https://github.com/anasfik/openai
repository: https://github.com/anasfik/openai
documentation: https://github.com/anasfik/openai/blob/main/README.md
Expand Down

0 comments on commit d60f4dd

Please sign in to comment.