Skip to content

Commit

Permalink
[ Edit ] formateed all dart code
Browse files Browse the repository at this point in the history
  • Loading branch information
anasfik committed Feb 17, 2023
1 parent e2e113c commit d0d2652
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 8 deletions.
2 changes: 0 additions & 2 deletions example/lib/completion_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import 'package:dart_openai/openai.dart';
import 'package:example/env/env.dart';

Future<void> main() async {


// Set the OpenAI API key from the .env file.
OpenAI.apiKey = Env.apiKey;

Expand Down
1 change: 0 additions & 1 deletion example/lib/image_variation_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:dart_openai/openai.dart';
import 'env/env.dart';

Future<void> main() async {

// Set the OpenAI API key from the .env file.
OpenAI.apiKey = Env.apiKey;

Expand Down
1 change: 0 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'package:dart_openai/openai.dart';
import 'env/env.dart';

Future<void> main() async {

// Set the OpenAI API key from the .env file.
OpenAI.apiKey = Env.apiKey;

Expand Down
1 change: 0 additions & 1 deletion example/lib/moderation_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'package:dart_openai/openai.dart';
import 'env/env.dart';

Future<void> main() async {

// Set the OpenAI API key from the .env file.
OpenAI.apiKey = Env.apiKey;

Expand Down
4 changes: 2 additions & 2 deletions lib/src/instance/fine_tunes/fine_tunes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ class OpenAIFineTunes implements OpenAIFineTunesBase {
}

/// Streams all events of a fine-tune job by its id, as they happen.
///
///
///
///
/// This is a long-running operation that will not return until the fine-tune job is terminated.
/// The stream will emit an event every time a new event is available.
/// The stream will emit an [RequestFailedException] if the fine-tune job is terminated with an error.
Expand Down
2 changes: 1 addition & 1 deletion test/openai_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void main() async {
} catch (e) {
expect(e, isA<MissingApiKeyException>());
}
});
});
test('with setting a key', () {
OpenAI.apiKey = "YOUR API KEY FROM ENVIRONMENT VARIABLE";

Expand Down

0 comments on commit d0d2652

Please sign in to comment.