From 638de041cb72ee023d297ff6ee45f83fb2fad0c5 Mon Sep 17 00:00:00 2001
From: FlutterFlow <140657486+FlutterFlowEng@users.noreply.github.com>
Date: Sat, 2 Mar 2024 13:57:54 +0000
Subject: [PATCH] Updating to latest FlutterFlow output.
---
README.md | 2 +
android/app/src/main/AndroidManifest.xml | 1 +
ios/Runner.xcodeproj/project.pbxproj | 12 +-
ios/Runner/Info.plist | 3 +-
ios/Runner/en.lproj/InfoPlist.strings | 2 +-
lib/app_state.dart | 6 +
lib/backend/api_requests/api_calls.dart | 1528 +++++++++++++++++
.../create_task_edit_model.dart | 2 -
.../create_task_edit_widget.dart | 2 -
.../create_task_new_model.dart | 2 -
.../create_task_new_widget.dart | 2 -
.../empty_list_tasks_model.dart | 2 -
.../empty_list_tasks_widget.dart | 2 -
.../actions/fetch_speech_and_play.dart | 2 +-
lib/flutter_flow/flutter_flow_util.dart | 20 +
lib/flutter_flow/internationalization.dart | 5 +
lib/flutter_flow/nav/nav.dart | 2 +-
lib/main.dart | 6 +-
.../change_password_model.dart | 2 -
.../change_password_widget.dart | 11 -
lib/pages/chat/chat_model.dart | 2 -
lib/pages/chat/chat_widget.dart | 11 -
.../completed_tasks_model.dart | 2 -
.../completed_tasks_widget.dart | 25 +-
.../edit_profile/edit_profile_model.dart | 2 -
.../edit_profile/edit_profile_widget.dart | 18 +-
lib/pages/login/login_model.dart | 2 -
lib/pages/login/login_widget.dart | 11 -
lib/pages/my_profile/my_profile_model.dart | 2 -
lib/pages/my_profile/my_profile_widget.dart | 20 +-
lib/pages/my_tasks/my_tasks_model.dart | 2 -
lib/pages/my_tasks/my_tasks_widget.dart | 25 +-
lib/pages/register/register_model.dart | 3 -
lib/pages/register/register_widget.dart | 19 -
.../splash_screen/splash_screen_model.dart | 2 -
.../splash_screen/splash_screen_widget.dart | 11 -
.../task_details/task_details_model.dart | 2 -
.../task_details/task_details_widget.dart | 31 +-
pubspec.yaml | 3 +-
39 files changed, 1612 insertions(+), 195 deletions(-)
diff --git a/README.md b/README.md
index cc5b5cf..54b1e85 100644
--- a/README.md
+++ b/README.md
@@ -2,4 +2,6 @@
A new Flutter project.
+## Getting Started
+FlutterFlow projects are built to run on the Flutter _stable_ release.
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index db6d8f2..678475f 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -3,6 +3,7 @@
xmlns:tools="http://schemas.android.com/tools">
+
-
+ NSMicrophoneUsageDescription
+ Allow microphone to use voice assistant
UILaunchStoryboardName
diff --git a/ios/Runner/en.lproj/InfoPlist.strings b/ios/Runner/en.lproj/InfoPlist.strings
index 8b13789..4e0c704 100644
--- a/ios/Runner/en.lproj/InfoPlist.strings
+++ b/ios/Runner/en.lproj/InfoPlist.strings
@@ -1 +1 @@
-
+NSMicrophoneUsageDescription = "Allow microphone to use voice assistant";
diff --git a/lib/app_state.dart b/lib/app_state.dart
index d47631f..b431f47 100644
--- a/lib/app_state.dart
+++ b/lib/app_state.dart
@@ -41,4 +41,10 @@ class FFAppState extends ChangeNotifier {
set timerValue(int _value) {
_timerValue = _value;
}
+
+ String _apiKey = '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';
+ String get apiKey => _apiKey;
+ set apiKey(String _value) {
+ _apiKey = _value;
+ }
}
diff --git a/lib/backend/api_requests/api_calls.dart b/lib/backend/api_requests/api_calls.dart
index 0b0ff6e..294572b 100644
--- a/lib/backend/api_requests/api_calls.dart
+++ b/lib/backend/api_requests/api_calls.dart
@@ -8,6 +8,1534 @@ export 'api_manager.dart' show ApiCallResponse;
const _kPrivateApiFunctionName = 'ffPrivateApiCall';
+/// Start OpenAI API Group Code
+
+class OpenAIAPIGroup {
+ static String baseUrl = 'https://api.openai.com/v1';
+ static Map headers = {};
+ static CreateChatCompletionCall createChatCompletionCall =
+ CreateChatCompletionCall();
+ static CreateCompletionCall createCompletionCall = CreateCompletionCall();
+ static CreateImageCall createImageCall = CreateImageCall();
+ static CreateImageEditCall createImageEditCall = CreateImageEditCall();
+ static CreateImageVariationCall createImageVariationCall =
+ CreateImageVariationCall();
+ static CreateEmbeddingCall createEmbeddingCall = CreateEmbeddingCall();
+ static CreateSpeechCall createSpeechCall = CreateSpeechCall();
+ static CreateTranscriptionCall createTranscriptionCall =
+ CreateTranscriptionCall();
+ static CreateTranslationCall createTranslationCall = CreateTranslationCall();
+ static ListFilesCall listFilesCall = ListFilesCall();
+ static CreateFileCall createFileCall = CreateFileCall();
+ static DeleteFileCall deleteFileCall = DeleteFileCall();
+ static RetrieveFileCall retrieveFileCall = RetrieveFileCall();
+ static DownloadFileCall downloadFileCall = DownloadFileCall();
+ static CreateFineTuningJobCall createFineTuningJobCall =
+ CreateFineTuningJobCall();
+ static ListPaginatedFineTuningJobsCall listPaginatedFineTuningJobsCall =
+ ListPaginatedFineTuningJobsCall();
+ static RetrieveFineTuningJobCall retrieveFineTuningJobCall =
+ RetrieveFineTuningJobCall();
+ static ListFineTuningEventsCall listFineTuningEventsCall =
+ ListFineTuningEventsCall();
+ static CancelFineTuningJobCall cancelFineTuningJobCall =
+ CancelFineTuningJobCall();
+ static ListModelsCall listModelsCall = ListModelsCall();
+ static RetrieveModelCall retrieveModelCall = RetrieveModelCall();
+ static DeleteModelCall deleteModelCall = DeleteModelCall();
+ static CreateModerationCall createModerationCall = CreateModerationCall();
+ static ListAssistantsCall listAssistantsCall = ListAssistantsCall();
+ static CreateAssistantCall createAssistantCall = CreateAssistantCall();
+ static GetAssistantCall getAssistantCall = GetAssistantCall();
+ static ModifyAssistantCall modifyAssistantCall = ModifyAssistantCall();
+ static DeleteAssistantCall deleteAssistantCall = DeleteAssistantCall();
+ static CreateThreadCall createThreadCall = CreateThreadCall();
+ static GetThreadCall getThreadCall = GetThreadCall();
+ static ModifyThreadCall modifyThreadCall = ModifyThreadCall();
+ static DeleteThreadCall deleteThreadCall = DeleteThreadCall();
+ static ListMessagesCall listMessagesCall = ListMessagesCall();
+ static CreateMessageCall createMessageCall = CreateMessageCall();
+ static GetMessageCall getMessageCall = GetMessageCall();
+ static ModifyMessageCall modifyMessageCall = ModifyMessageCall();
+ static CreateThreadAndRunCall createThreadAndRunCall =
+ CreateThreadAndRunCall();
+ static ListRunsCall listRunsCall = ListRunsCall();
+ static CreateRunCall createRunCall = CreateRunCall();
+ static GetRunCall getRunCall = GetRunCall();
+ static ModifyRunCall modifyRunCall = ModifyRunCall();
+ static SubmitToolOuputsToRunCall submitToolOuputsToRunCall =
+ SubmitToolOuputsToRunCall();
+ static CancelRunCall cancelRunCall = CancelRunCall();
+ static ListRunStepsCall listRunStepsCall = ListRunStepsCall();
+ static GetRunStepCall getRunStepCall = GetRunStepCall();
+ static ListAssistantFilesCall listAssistantFilesCall =
+ ListAssistantFilesCall();
+ static CreateAssistantFileCall createAssistantFileCall =
+ CreateAssistantFileCall();
+ static GetAssistantFileCall getAssistantFileCall = GetAssistantFileCall();
+ static DeleteAssistantFileCall deleteAssistantFileCall =
+ DeleteAssistantFileCall();
+ static ListMessageFilesCall listMessageFilesCall = ListMessageFilesCall();
+ static GetMessageFileCall getMessageFileCall = GetMessageFileCall();
+}
+
+class CreateChatCompletionCall {
+ Future call({
+ String? apiKeyAuth = '',
+ }) async {
+ final ffApiRequestBody = '''
+{
+ "messages": [
+ ""
+ ],
+ "model": "gpt-3.5-turbo",
+ "frequency_penalty": 0,
+ "logit_bias": {},
+ "logprobs": false,
+ "top_logprobs": 0,
+ "max_tokens": 0,
+ "n": 1,
+ "presence_penalty": 0,
+ "response_format": {
+ "type": "json_object"
+ },
+ "seed": 0,
+ "stop": "",
+ "stream": false,
+ "temperature": 1,
+ "top_p": 1,
+ "tools": [
+ {
+ "type": "function",
+ "function": {
+ "description": "",
+ "name": "",
+ "parameters": {}
+ }
+ }
+ ],
+ "tool_choice": "",
+ "user": "user-1234",
+ "function_call": "",
+ "functions": [
+ {
+ "description": "",
+ "name": "",
+ "parameters": {}
+ }
+ ]
+}''';
+ return ApiManager.instance.makeApiCall(
+ callName: 'createChatCompletion',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/chat/completions',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ body: ffApiRequestBody,
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CreateCompletionCall {
+ Future call({
+ String? apiKeyAuth = '',
+ }) async {
+ final ffApiRequestBody = '''
+{
+ "model": "",
+ "prompt": "",
+ "best_of": 0,
+ "echo": false,
+ "frequency_penalty": 0,
+ "logit_bias": {},
+ "logprobs": 0,
+ "max_tokens": 16,
+ "n": 1,
+ "presence_penalty": 0,
+ "seed": 0,
+ "stop": "",
+ "stream": false,
+ "suffix": "test.",
+ "temperature": 1,
+ "top_p": 1,
+ "user": "user-1234"
+}''';
+ return ApiManager.instance.makeApiCall(
+ callName: 'createCompletion',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/completions',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ body: ffApiRequestBody,
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CreateImageCall {
+ Future call({
+ String? apiKeyAuth = '',
+ }) async {
+ final ffApiRequestBody = '''
+{
+ "prompt": "A cute baby sea otter",
+ "model": "dall-e-3",
+ "n": 1,
+ "quality": "standard",
+ "response_format": "url",
+ "size": "1024x1024",
+ "style": "vivid",
+ "user": "user-1234"
+}''';
+ return ApiManager.instance.makeApiCall(
+ callName: 'createImage',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/images/generations',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ body: ffApiRequestBody,
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CreateImageEditCall {
+ Future call({
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'createImageEdit',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/images/edits',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ bodyType: BodyType.MULTIPART,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CreateImageVariationCall {
+ Future call({
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'createImageVariation',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/images/variations',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ bodyType: BodyType.MULTIPART,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CreateEmbeddingCall {
+ Future call({
+ String? apiKeyAuth = '',
+ }) async {
+ final ffApiRequestBody = '''
+{
+ "input": "The quick brown fox jumped over the lazy dog",
+ "model": "text-embedding-3-small",
+ "encoding_format": "float",
+ "dimensions": 0,
+ "user": "user-1234"
+}''';
+ return ApiManager.instance.makeApiCall(
+ callName: 'createEmbedding',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/embeddings',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ body: ffApiRequestBody,
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CreateSpeechCall {
+ Future call({
+ String? apiKeyAuth = '',
+ }) async {
+ final ffApiRequestBody = '''
+{
+ "model": "",
+ "input": "",
+ "voice": "alloy",
+ "response_format": "mp3",
+ "speed": 0
+}''';
+ return ApiManager.instance.makeApiCall(
+ callName: 'createSpeech',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/audio/speech',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ body: ffApiRequestBody,
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CreateTranscriptionCall {
+ Future call({
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'createTranscription',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/audio/transcriptions',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ bodyType: BodyType.MULTIPART,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CreateTranslationCall {
+ Future call({
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'createTranslation',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/audio/translations',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ bodyType: BodyType.MULTIPART,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class ListFilesCall {
+ Future call({
+ String? purpose = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'listFiles',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/files',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {
+ 'purpose': purpose,
+ },
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CreateFileCall {
+ Future call({
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'createFile',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/files',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ bodyType: BodyType.MULTIPART,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class DeleteFileCall {
+ Future call({
+ String? fileId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'deleteFile',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/files/${fileId}',
+ callType: ApiCallType.DELETE,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class RetrieveFileCall {
+ Future call({
+ String? fileId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'retrieveFile',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/files/${fileId}',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class DownloadFileCall {
+ Future call({
+ String? fileId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'downloadFile',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/files/${fileId}/content',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CreateFineTuningJobCall {
+ Future call({
+ String? apiKeyAuth = '',
+ }) async {
+ final ffApiRequestBody = '''
+{
+ "model": "gpt-3.5-turbo",
+ "training_file": "file-abc123",
+ "hyperparameters": {
+ "batch_size": "",
+ "learning_rate_multiplier": "",
+ "n_epochs": ""
+ },
+ "suffix": "",
+ "validation_file": "file-abc123"
+}''';
+ return ApiManager.instance.makeApiCall(
+ callName: 'createFineTuningJob',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/fine_tuning/jobs',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ body: ffApiRequestBody,
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class ListPaginatedFineTuningJobsCall {
+ Future call({
+ String? after = '',
+ int? limit,
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'listPaginatedFineTuningJobs',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/fine_tuning/jobs',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {
+ 'after': after,
+ 'limit': limit,
+ },
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class RetrieveFineTuningJobCall {
+ Future call({
+ String? fineTuningJobId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'retrieveFineTuningJob',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/fine_tuning/jobs/${fineTuningJobId}',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class ListFineTuningEventsCall {
+ Future call({
+ String? fineTuningJobId = '',
+ String? after = '',
+ int? limit,
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'listFineTuningEvents',
+ apiUrl:
+ '${OpenAIAPIGroup.baseUrl}/fine_tuning/jobs/${fineTuningJobId}/events',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {
+ 'after': after,
+ 'limit': limit,
+ },
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CancelFineTuningJobCall {
+ Future call({
+ String? fineTuningJobId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'cancelFineTuningJob',
+ apiUrl:
+ '${OpenAIAPIGroup.baseUrl}/fine_tuning/jobs/${fineTuningJobId}/cancel',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class ListModelsCall {
+ Future call({
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'listModels',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/models',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class RetrieveModelCall {
+ Future call({
+ String? model = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'retrieveModel',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/models/${model}',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class DeleteModelCall {
+ Future call({
+ String? model = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'deleteModel',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/models/${model}',
+ callType: ApiCallType.DELETE,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CreateModerationCall {
+ Future call({
+ String? apiKeyAuth = '',
+ }) async {
+ final ffApiRequestBody = '''
+{
+ "input": "",
+ "model": "text-moderation-stable"
+}''';
+ return ApiManager.instance.makeApiCall(
+ callName: 'createModeration',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/moderations',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ body: ffApiRequestBody,
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class ListAssistantsCall {
+ Future call({
+ int? limit,
+ String? order = '',
+ String? after = '',
+ String? before = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'listAssistants',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/assistants',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {
+ 'limit': limit,
+ 'order': order,
+ 'after': after,
+ 'before': before,
+ },
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CreateAssistantCall {
+ Future call({
+ String? apiKeyAuth = '',
+ }) async {
+ final ffApiRequestBody = '''
+{
+ "model": "",
+ "name": "",
+ "description": "",
+ "instructions": "",
+ "tools": [
+ ""
+ ],
+ "file_ids": [
+ ""
+ ],
+ "metadata": {}
+}''';
+ return ApiManager.instance.makeApiCall(
+ callName: 'createAssistant',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/assistants',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ body: ffApiRequestBody,
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class GetAssistantCall {
+ Future call({
+ String? assistantId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'getAssistant',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/assistants/${assistantId}',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class ModifyAssistantCall {
+ Future call({
+ String? assistantId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ final ffApiRequestBody = '''
+{
+ "model": "",
+ "name": "",
+ "description": "",
+ "instructions": "",
+ "tools": [
+ ""
+ ],
+ "file_ids": [
+ ""
+ ],
+ "metadata": {}
+}''';
+ return ApiManager.instance.makeApiCall(
+ callName: 'modifyAssistant',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/assistants/${assistantId}',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ body: ffApiRequestBody,
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class DeleteAssistantCall {
+ Future call({
+ String? assistantId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'deleteAssistant',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/assistants/${assistantId}',
+ callType: ApiCallType.DELETE,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CreateThreadCall {
+ Future call({
+ String? apiKeyAuth = '',
+ }) async {
+ final ffApiRequestBody = '''
+{
+ "messages": [
+ {
+ "role": "user",
+ "content": "",
+ "file_ids": [
+ ""
+ ],
+ "metadata": {}
+ }
+ ],
+ "metadata": {}
+}''';
+ return ApiManager.instance.makeApiCall(
+ callName: 'createThread',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/threads',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ body: ffApiRequestBody,
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class GetThreadCall {
+ Future call({
+ String? threadId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'getThread',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/threads/${threadId}',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class ModifyThreadCall {
+ Future call({
+ String? threadId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ final ffApiRequestBody = '''
+{
+ "metadata": {}
+}''';
+ return ApiManager.instance.makeApiCall(
+ callName: 'modifyThread',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/threads/${threadId}',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ body: ffApiRequestBody,
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class DeleteThreadCall {
+ Future call({
+ String? threadId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'deleteThread',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/threads/${threadId}',
+ callType: ApiCallType.DELETE,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class ListMessagesCall {
+ Future call({
+ String? threadId = '',
+ int? limit,
+ String? order = '',
+ String? after = '',
+ String? before = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'listMessages',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/threads/${threadId}/messages',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {
+ 'limit': limit,
+ 'order': order,
+ 'after': after,
+ 'before': before,
+ },
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CreateMessageCall {
+ Future call({
+ String? threadId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ final ffApiRequestBody = '''
+{
+ "role": "user",
+ "content": "",
+ "file_ids": [
+ ""
+ ],
+ "metadata": {}
+}''';
+ return ApiManager.instance.makeApiCall(
+ callName: 'createMessage',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/threads/${threadId}/messages',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ body: ffApiRequestBody,
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class GetMessageCall {
+ Future call({
+ String? threadId = '',
+ String? messageId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'getMessage',
+ apiUrl:
+ '${OpenAIAPIGroup.baseUrl}/threads/${threadId}/messages/${messageId}',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class ModifyMessageCall {
+ Future call({
+ String? threadId = '',
+ String? messageId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ final ffApiRequestBody = '''
+{
+ "metadata": {}
+}''';
+ return ApiManager.instance.makeApiCall(
+ callName: 'modifyMessage',
+ apiUrl:
+ '${OpenAIAPIGroup.baseUrl}/threads/${threadId}/messages/${messageId}',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ body: ffApiRequestBody,
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CreateThreadAndRunCall {
+ Future call({
+ String? apiKeyAuth = '',
+ }) async {
+ final ffApiRequestBody = '''
+{
+ "assistant_id": "",
+ "thread": {
+ "messages": [
+ {
+ "role": "user",
+ "content": "",
+ "file_ids": [
+ ""
+ ],
+ "metadata": {}
+ }
+ ],
+ "metadata": {}
+ },
+ "model": "",
+ "instructions": "",
+ "tools": [
+ ""
+ ],
+ "metadata": {}
+}''';
+ return ApiManager.instance.makeApiCall(
+ callName: 'createThreadAndRun',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/threads/runs',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ body: ffApiRequestBody,
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class ListRunsCall {
+ Future call({
+ String? threadId = '',
+ int? limit,
+ String? order = '',
+ String? after = '',
+ String? before = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'listRuns',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/threads/${threadId}/runs',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {
+ 'limit': limit,
+ 'order': order,
+ 'after': after,
+ 'before': before,
+ },
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CreateRunCall {
+ Future call({
+ String? threadId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ final ffApiRequestBody = '''
+{
+ "assistant_id": "",
+ "model": "",
+ "instructions": "",
+ "additional_instructions": "",
+ "tools": [
+ ""
+ ],
+ "metadata": {}
+}''';
+ return ApiManager.instance.makeApiCall(
+ callName: 'createRun',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/threads/${threadId}/runs',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ body: ffApiRequestBody,
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class GetRunCall {
+ Future call({
+ String? threadId = '',
+ String? runId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'getRun',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/threads/${threadId}/runs/${runId}',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class ModifyRunCall {
+ Future call({
+ String? threadId = '',
+ String? runId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ final ffApiRequestBody = '''
+{
+ "metadata": {}
+}''';
+ return ApiManager.instance.makeApiCall(
+ callName: 'modifyRun',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/threads/${threadId}/runs/${runId}',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ body: ffApiRequestBody,
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class SubmitToolOuputsToRunCall {
+ Future call({
+ String? threadId = '',
+ String? runId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ final ffApiRequestBody = '''
+{
+ "tool_outputs": [
+ {
+ "tool_call_id": "",
+ "output": ""
+ }
+ ]
+}''';
+ return ApiManager.instance.makeApiCall(
+ callName: 'submitToolOuputsToRun',
+ apiUrl:
+ '${OpenAIAPIGroup.baseUrl}/threads/${threadId}/runs/${runId}/submit_tool_outputs',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ body: ffApiRequestBody,
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CancelRunCall {
+ Future call({
+ String? threadId = '',
+ String? runId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'cancelRun',
+ apiUrl:
+ '${OpenAIAPIGroup.baseUrl}/threads/${threadId}/runs/${runId}/cancel',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class ListRunStepsCall {
+ Future call({
+ String? threadId = '',
+ String? runId = '',
+ int? limit,
+ String? order = '',
+ String? after = '',
+ String? before = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'listRunSteps',
+ apiUrl:
+ '${OpenAIAPIGroup.baseUrl}/threads/${threadId}/runs/${runId}/steps',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {
+ 'limit': limit,
+ 'order': order,
+ 'after': after,
+ 'before': before,
+ },
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class GetRunStepCall {
+ Future call({
+ String? threadId = '',
+ String? runId = '',
+ String? stepId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'getRunStep',
+ apiUrl:
+ '${OpenAIAPIGroup.baseUrl}/threads/${threadId}/runs/${runId}/steps/${stepId}',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class ListAssistantFilesCall {
+ Future call({
+ String? assistantId = '',
+ int? limit,
+ String? order = '',
+ String? after = '',
+ String? before = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'listAssistantFiles',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/assistants/${assistantId}/files',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {
+ 'limit': limit,
+ 'order': order,
+ 'after': after,
+ 'before': before,
+ },
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class CreateAssistantFileCall {
+ Future call({
+ String? assistantId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ final ffApiRequestBody = '''
+{
+ "file_id": ""
+}''';
+ return ApiManager.instance.makeApiCall(
+ callName: 'createAssistantFile',
+ apiUrl: '${OpenAIAPIGroup.baseUrl}/assistants/${assistantId}/files',
+ callType: ApiCallType.POST,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ body: ffApiRequestBody,
+ bodyType: BodyType.JSON,
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class GetAssistantFileCall {
+ Future call({
+ String? assistantId = '',
+ String? fileId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'getAssistantFile',
+ apiUrl:
+ '${OpenAIAPIGroup.baseUrl}/assistants/${assistantId}/files/${fileId}',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class DeleteAssistantFileCall {
+ Future call({
+ String? assistantId = '',
+ String? fileId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'deleteAssistantFile',
+ apiUrl:
+ '${OpenAIAPIGroup.baseUrl}/assistants/${assistantId}/files/${fileId}',
+ callType: ApiCallType.DELETE,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class ListMessageFilesCall {
+ Future call({
+ String? threadId = '',
+ String? messageId = '',
+ int? limit,
+ String? order = '',
+ String? after = '',
+ String? before = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'listMessageFiles',
+ apiUrl:
+ '${OpenAIAPIGroup.baseUrl}/threads/${threadId}/messages/${messageId}/files',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {
+ 'limit': limit,
+ 'order': order,
+ 'after': after,
+ 'before': before,
+ },
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+class GetMessageFileCall {
+ Future call({
+ String? threadId = '',
+ String? messageId = '',
+ String? fileId = '',
+ String? apiKeyAuth = '',
+ }) async {
+ return ApiManager.instance.makeApiCall(
+ callName: 'getMessageFile',
+ apiUrl:
+ '${OpenAIAPIGroup.baseUrl}/threads/${threadId}/messages/${messageId}/files/${fileId}',
+ callType: ApiCallType.GET,
+ headers: {
+ 'Authorization': 'Bearer ${apiKeyAuth}',
+ },
+ params: {},
+ returnBody: true,
+ encodeBodyUtf8: false,
+ decodeUtf8: false,
+ cache: false,
+ alwaysAllowBody: false,
+ );
+ }
+}
+
+/// End OpenAI API Group Code
+
class GetResponseCall {
static Future call({
String? apiKeyAuth = '',
diff --git a/lib/components/create_task_edit/create_task_edit_model.dart b/lib/components/create_task_edit/create_task_edit_model.dart
index ab481f8..77e9c8c 100644
--- a/lib/components/create_task_edit/create_task_edit_model.dart
+++ b/lib/components/create_task_edit/create_task_edit_model.dart
@@ -8,8 +8,6 @@ import 'create_task_edit_widget.dart' show CreateTaskEditWidget;
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
-import 'package:flutter/services.dart';
-import 'package:flutter_spinkit/flutter_spinkit.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:provider/provider.dart';
diff --git a/lib/components/create_task_edit/create_task_edit_widget.dart b/lib/components/create_task_edit/create_task_edit_widget.dart
index b8bd272..5b5058c 100644
--- a/lib/components/create_task_edit/create_task_edit_widget.dart
+++ b/lib/components/create_task_edit/create_task_edit_widget.dart
@@ -7,8 +7,6 @@ import 'dart:ui';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
-import 'package:flutter/services.dart';
-import 'package:flutter_spinkit/flutter_spinkit.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:provider/provider.dart';
import 'create_task_edit_model.dart';
diff --git a/lib/components/create_task_new/create_task_new_model.dart b/lib/components/create_task_new/create_task_new_model.dart
index b77a59a..06ac864 100644
--- a/lib/components/create_task_new/create_task_new_model.dart
+++ b/lib/components/create_task_new/create_task_new_model.dart
@@ -8,8 +8,6 @@ import 'create_task_new_widget.dart' show CreateTaskNewWidget;
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
-import 'package:flutter/services.dart';
-import 'package:flutter_spinkit/flutter_spinkit.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:provider/provider.dart';
diff --git a/lib/components/create_task_new/create_task_new_widget.dart b/lib/components/create_task_new/create_task_new_widget.dart
index 9b6f529..a88ef03 100644
--- a/lib/components/create_task_new/create_task_new_widget.dart
+++ b/lib/components/create_task_new/create_task_new_widget.dart
@@ -7,8 +7,6 @@ import 'dart:ui';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
-import 'package:flutter/services.dart';
-import 'package:flutter_spinkit/flutter_spinkit.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:provider/provider.dart';
import 'create_task_new_model.dart';
diff --git a/lib/components/empty_list_tasks/empty_list_tasks_model.dart b/lib/components/empty_list_tasks/empty_list_tasks_model.dart
index aa7d96c..893064f 100644
--- a/lib/components/empty_list_tasks/empty_list_tasks_model.dart
+++ b/lib/components/empty_list_tasks/empty_list_tasks_model.dart
@@ -4,8 +4,6 @@ import '/flutter_flow/flutter_flow_util.dart';
import '/flutter_flow/flutter_flow_widgets.dart';
import 'empty_list_tasks_widget.dart' show EmptyListTasksWidget;
import 'package:flutter/material.dart';
-import 'package:flutter/services.dart';
-import 'package:flutter_spinkit/flutter_spinkit.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:provider/provider.dart';
diff --git a/lib/components/empty_list_tasks/empty_list_tasks_widget.dart b/lib/components/empty_list_tasks/empty_list_tasks_widget.dart
index 6f11299..e42ac34 100644
--- a/lib/components/empty_list_tasks/empty_list_tasks_widget.dart
+++ b/lib/components/empty_list_tasks/empty_list_tasks_widget.dart
@@ -3,8 +3,6 @@ import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/flutter_flow/flutter_flow_widgets.dart';
import 'package:flutter/material.dart';
-import 'package:flutter/services.dart';
-import 'package:flutter_spinkit/flutter_spinkit.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:provider/provider.dart';
import 'empty_list_tasks_model.dart';
diff --git a/lib/custom_code/actions/fetch_speech_and_play.dart b/lib/custom_code/actions/fetch_speech_and_play.dart
index 181d74a..9f83347 100644
--- a/lib/custom_code/actions/fetch_speech_and_play.dart
+++ b/lib/custom_code/actions/fetch_speech_and_play.dart
@@ -29,7 +29,7 @@ Future fetchSpeechAndPlay(
// Set up the POST request body.
String body = json.encode(
- {'model': 'tts-1', 'input': promptText, 'voice': 'onyx', 'speed': '1.1'});
+ {'model': 'tts-1', 'input': promptText, 'voice': 'nova', 'speed': '1'});
// Make the POST request to fetch the speech audio.
final response = await http.post(
diff --git a/lib/flutter_flow/flutter_flow_util.dart b/lib/flutter_flow/flutter_flow_util.dart
index e1f5c05..4239c9c 100644
--- a/lib/flutter_flow/flutter_flow_util.dart
+++ b/lib/flutter_flow/flutter_flow_util.dart
@@ -3,6 +3,7 @@ import 'dart:io';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:flutter/material.dart';
+import 'package:flutter/services.dart';
import 'package:collection/collection.dart';
import 'package:from_css_color/from_css_color.dart';
import 'package:intl/intl.dart';
@@ -348,3 +349,22 @@ extension StatefulWidgetExtensions on State {
}
}
}
+
+// For iOS 16 and below, set the status bar color to match the app's theme.
+// https://github.com/flutter/flutter/issues/41067
+Brightness? _lastBrightness;
+void fixStatusBarOniOS16AndBelow(BuildContext context) {
+ if (!isiOS) {
+ return;
+ }
+ final brightness = Theme.of(context).brightness;
+ if (_lastBrightness != brightness) {
+ _lastBrightness = brightness;
+ SystemChrome.setSystemUIOverlayStyle(
+ SystemUiOverlayStyle(
+ statusBarBrightness: brightness,
+ systemStatusBarContrastEnforced: true,
+ ),
+ );
+ }
+}
diff --git a/lib/flutter_flow/internationalization.dart b/lib/flutter_flow/internationalization.dart
index 3edccb7..1b74972 100644
--- a/lib/flutter_flow/internationalization.dart
+++ b/lib/flutter_flow/internationalization.dart
@@ -565,6 +565,11 @@ final kTranslationsMap =