Skip to content

Commit

Permalink
update sdk version
Browse files Browse the repository at this point in the history
  • Loading branch information
redevrx committed Sep 25, 2024
1 parent 89ecf32 commit ec2b01d
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider_foundation","path":"/Users/redev.rx/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"path_provider_android","path":"/Users/redev.rx/.pub-cache/hosted/pub.dev/path_provider_android-2.2.10/","native_build":true,"dependencies":[]}],"macos":[{"name":"path_provider_foundation","path":"/Users/redev.rx/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/redev.rx/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/redev.rx/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[]}],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2024-09-25 20:31:58.039746","version":"3.24.3","swift_package_manager_enabled":false}
1 change: 1 addition & 0 deletions example_app/openai_app/lib/screen/chatbot/chatbot.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class _ChatBotScreenState extends State<ChatBotScreen> {
///setup openai sdk
void initOpenAISDK() {
Future.delayed(const Duration(milliseconds: 200), () {
if (!mounted) return;
BlocProvider.of<OpenAIBloc>(context, listen: false).initOpenAISdk();
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class SplashScreen extends StatefulWidget {
class _SplashScreenState extends State<SplashScreen> {
void countDownTime({required BuildContext context}) {
Future.delayed(const Duration(seconds: 3), () {
if (!context.mounted) return;
BlocProvider.of<OpenAIBloc>(context, listen: false).isFirstSetting(
success: () {
///navigate to preview screen
Expand Down
2 changes: 1 addition & 1 deletion lib/chat_gpt_sdk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ export 'src/model/run/response/message_creation.dart';
export 'src/model/run/response/step_detail.dart';
export 'src/model/audio/request/speech_request.dart';
export 'src/model/audio/enum/audio_format.dart';
export 'src/model/message/response/ContentV2.dart';
export 'src/model/message/response/content_v2.dart';
export 'src/model/message/response/create_message_v2_response.dart';
export 'src/model/message/response/message_data_response.dart';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:chat_gpt_sdk/src/model/message/response/ContentV2.dart';
import 'package:chat_gpt_sdk/src/model/message/response/content_v2.dart';

class CreateMessageV2Response {
String id;
Expand Down

0 comments on commit ec2b01d

Please sign in to comment.