v1.0.4 webapi fixes

This commit is contained in:
Tibor Bossanyi
2023-02-13 19:56:15 +01:00
parent 65e9daa273
commit 0f58f893e6
20 changed files with 199 additions and 14 deletions
-2
View File
@@ -1,5 +1,3 @@
import 'dart:convert';
import 'dart:io';
import 'package:flutter_test/flutter_test.dart';
import 'package:workouttest_util/model/cache.dart';
import 'package:workouttest_util/service/api.dart';
+1 -1
View File
@@ -14,6 +14,6 @@ void main() {
var api = OpenAIApi();
String response = await api.getOpenAICompletion("Who wrote the song 'yellow submarine'?");
print(response);
expect(response, matches(RegExp(r'Beatles')));
expect(response, matches(RegExp(r'Beatles') ));
});
}