chore: update chat input hint

This commit is contained in:
nathan 2024-07-30 17:40:58 +08:00
parent a14ced458c
commit d52a04a9e3

View File

@ -52,7 +52,7 @@ class ChatInputBloc extends Bloc<ChatInputEvent, ChatInputState> {
); );
}, },
updateState: (aiState) { updateState: (aiState) {
if (aiState.enabled) { if (aiState.pluginState.state == RunningStatePB.Running) {
emit(const ChatInputState(aiType: _LocalAI())); emit(const ChatInputState(aiType: _LocalAI()));
} else { } else {
emit(const ChatInputState(aiType: _AppFlowyAI())); emit(const ChatInputState(aiType: _AppFlowyAI()));