Skip to content

Commit

Permalink
Merge pull request #119 from kondo0602/feature/add-gpt-4o-mini-model
Browse files Browse the repository at this point in the history
Add new model gpt-4o-mini
  • Loading branch information
redevrx committed Jul 30, 2024
2 parents c8b7690 + 8e1010d commit 921a360
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +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.4/","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.2.1/","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-05-27 22:13:31.855917","version":"3.22.1"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider_foundation","path":"/Users/kondoushun/.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/kondoushun/.pub-cache/hosted/pub.dev/path_provider_android-2.2.8/","native_build":true,"dependencies":[]}],"macos":[{"name":"path_provider_foundation","path":"/Users/kondoushun/.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/kondoushun/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/kondoushun/.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-07-28 15:57:01.524743","version":"3.22.2"}
8 changes: 8 additions & 0 deletions lib/src/model/assistant/enum/assistant_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ class Gpt4O2024Model extends AssistantModel {
Gpt4O2024Model() : super(model: kGpt4O2024);
}

class Gpt4oMiniModel extends AssistantModel {
Gpt4oMiniModel() : super(model: kGpt4oMini);
}

class Gpt4oMini2024Model extends AssistantModel {
Gpt4oMini2024Model() : super(model: kGpt4oMini2024);
}

class AssistantModelFromValue extends AssistantModel {
AssistantModelFromValue({required super.model});
}
8 changes: 8 additions & 0 deletions lib/src/model/chat_complete/enum/chat_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ class Gpt4O2024ChatModel extends ChatModel {
Gpt4O2024ChatModel() : super(model: kGpt4O2024);
}

class Gpt4oMiniChatModel extends ChatModel {
Gpt4oMiniChatModel() : super(model: kGpt4oMini);
}

class Gpt4oMini2024ChatModel extends ChatModel {
Gpt4oMini2024ChatModel() : super(model: kGpt4oMini2024);
}

class Gpt41106PreviewChatModel extends ChatModel {
Gpt41106PreviewChatModel() : super(model: kGpt41106Preview);
}
Expand Down
2 changes: 2 additions & 0 deletions lib/src/utils/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ const kGpt41106Preview = 'gpt-4-1106-preview';
const kGpt4VisionPreview = 'gpt-4-vision-preview';
const kGpt4o = 'gpt-4o';
const kGpt4O2024 = 'gpt-4o-2024-05-13';
const kGpt4oMini = 'gpt-4o-mini';
const kGpt4oMini2024 = 'gpt-4o-mini-2024-07-18';

///edits
// using gpt 4
Expand Down

0 comments on commit 921a360

Please sign in to comment.