Skip to content

Commit

Permalink
support gpt-3.5-turbo-16k
Browse files Browse the repository at this point in the history
1. Support gpt-3.5-turbo-16k
2. bump version to 1.0.9
  • Loading branch information
hahastudio committed Jun 15, 2023
1 parent e4c8ab2 commit 8634fb7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ A new Flutter project which communicates with [OpenAI API](https://platform.open
- Support [requesting organization](https://platform.openai.com/docs/api-reference/requesting-organization)
- Support [system message](https://platform.openai.com/docs/guides/chat/introduction)
- Support [streaming message](https://platform.openai.com/docs/api-reference/chat/create#chat/create-stream) like ChatGPT
- Support to choose GPT models (gpt-3.5-turbo, gpt-4, gpt-4-32k)
- Support to choose GPT models (gpt-3.5-turbo, gpt-3.5-turbo-16k, gpt-4, gpt-4-32k)
- Support to limit the count of conversation history when sending
- Support to show token usage in real time
- Support customized API Host
Expand Down
4 changes: 4 additions & 0 deletions lib/screens/setting_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ class _SettingsScreenState extends State<SettingsScreen> {
value: 'gpt-3.5-turbo',
child: Text('gpt-3.5-turbo'),
),
PopupMenuItem(
value: 'gpt-3.5-turbo-16k',
child: Text('gpt-3.5-turbo-16k'),
),
PopupMenuItem(
value: 'gpt-4',
child: Text('gpt-4'),
Expand Down
1 change: 1 addition & 0 deletions lib/services/token_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'local_storage_service.dart';
class TokenService {
static const Map<String, int> _tokenLimit = {
'gpt-3.5-turbo': 4096,
'gpt-3.5-turbo-16k': 16384,
'gpt-4': 8192,
'gpt-4-32k': 32768
};
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.0.8+1
version: 1.0.9+1

environment:
sdk: '>=2.19.3 <3.0.0'
Expand Down

0 comments on commit 8634fb7

Please sign in to comment.