Skip to content

Commit

Permalink
chore: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
lollipopkit committed Jul 12, 2024
1 parent f7a9810 commit 21f7d67
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"type": "dart",
"env": {
// Comment this line to use the default display
//"DISPLAY": ":1"
"DISPLAY": ":1"
}
},
{
Expand Down
6 changes: 3 additions & 3 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 242;
CURRENT_PROJECT_VERSION = 245;
DEVELOPMENT_TEAM = BA88US33G6;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
Expand Down Expand Up @@ -512,7 +512,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 242;
CURRENT_PROJECT_VERSION = 245;
DEVELOPMENT_TEAM = BA88US33G6;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
Expand All @@ -537,7 +537,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 242;
CURRENT_PROJECT_VERSION = 245;
DEVELOPMENT_TEAM = BA88US33G6;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
Expand Down
2 changes: 1 addition & 1 deletion lib/data/res/build.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

class Build {
static const String name = "GPTBox";
static const int build = 242;
static const int build = 245;
}
1 change: 1 addition & 0 deletions lib/data/res/openai.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ abstract final class OpenAICfg {
if (model.isEmpty) return false;
return _modelsUseToolReExp?.hasMatch(model) ?? false;
}

static bool get canUseToolNow => canUseTool(current.model);

static Future<bool> updateModels({bool force = false}) async {
Expand Down
11 changes: 2 additions & 9 deletions lib/view/page/home/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,6 @@ class _HomePageState extends State<HomePage>
});
}
}

// void _checkInvalidModels() {
// final validModels =
// }
}

final class _Body extends StatelessWidget {
Expand All @@ -162,13 +158,10 @@ final class _Body extends StatelessWidget {
if (isWide) {
return LayoutBuilder(
builder: (context, cons) {
final width = cons.maxWidth;
final height = cons.maxHeight;
final historyWidth =
math.max(200.0, math.min(400.0, width * 0.3));
final w = math.max(200.0, math.min(400.0, cons.maxWidth * 0.3));
return Row(
children: [
SizedBox(width: historyWidth, height: height, child: history),
SizedBox(width: w, height: cons.maxHeight, child: history),
const Expanded(child: chat),
],
);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: gpt_box
description: "A third-party GPT Client for OpenAI API."
publish_to: 'none'
version: 1.0.242+242
version: 1.0.245+245

environment:
sdk: '>=3.3.0 <4.0.0'
Expand Down

0 comments on commit 21f7d67

Please sign in to comment.