File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -510,12 +510,22 @@ class InputSubmitUtil {
510
510
questionInputController.update ();
511
511
} else if (aiModel.aiType == AiType .bard) {
512
512
logger.d ("bard type" );
513
+ if (settingsServerController.defaultServer.provider == "geekerchat" ) {
514
+ oldChatFunction (chatSessionController, chatMessageController,
515
+ settingsServerController, questionInputController);
516
+ questionInputController.clear ();
517
+ questionInputController.update ();
518
+ } else {
519
+ errorHander (
520
+ chatSessionController,
521
+ chatMessageController,
522
+ settingsServerController,
523
+ questionInputController,
524
+ "The current server does not support this model. If you need to use all models, it is recommended to use the Geeker Chat server."
525
+ .tr);
526
+ }
513
527
514
528
/// add old bard supported
515
- oldChatFunction (chatSessionController, chatMessageController,
516
- settingsServerController, questionInputController);
517
- questionInputController.clear ();
518
- questionInputController.update ();
519
529
} else {
520
530
/// process error
521
531
errorHander (
You can’t perform that action at this time.
0 commit comments