From ee34720d8fa53c64a957363dc221d842e6807128 Mon Sep 17 00:00:00 2001 From: Jacob Date: Mon, 22 May 2023 08:48:02 -0700 Subject: [PATCH] adding support of gpt-4-32k --- app/lib/ai_settings_dialog.dart | 5 +++++ app/lib/openai_api.dart | 1 + 2 files changed, 6 insertions(+) diff --git a/app/lib/ai_settings_dialog.dart b/app/lib/ai_settings_dialog.dart index f2deed4..71aefd1 100644 --- a/app/lib/ai_settings_dialog.dart +++ b/app/lib/ai_settings_dialog.dart @@ -267,6 +267,11 @@ Human: You choose anything you like. Direction comes from the next message. One value: 'gpt-4', child: Text('GPT-4 (Advanced, Limited Beta)'), ), + /*DropdownMenuItem( + value: 'gpt-4-32k', + child: Text('GPT-4-32k (Advanced, Limited Beta)'), + ),*/ + // uncomment the following lines to enable an extended 32,000 token context-length model gpt-4-32k ], onChanged: (value) { setState(() { diff --git a/app/lib/openai_api.dart b/app/lib/openai_api.dart index 8ef093a..22d05cf 100644 --- a/app/lib/openai_api.dart +++ b/app/lib/openai_api.dart @@ -314,6 +314,7 @@ class OpenAI_API { if (kDebugMode) { print('Error: $e'); } + break; } } }