mirror of
https://github.com/foss42/apidash.git
synced 2025-12-01 18:28:25 +08:00
fix: clear chat button
This commit is contained in:
@@ -265,7 +265,11 @@ class ChatViewmodel extends StateNotifier<ChatState> {
|
|||||||
final id = _currentRequest?.id ?? 'global';
|
final id = _currentRequest?.id ?? 'global';
|
||||||
final newSessions = {...state.chatSessions};
|
final newSessions = {...state.chatSessions};
|
||||||
newSessions[id] = [];
|
newSessions[id] = [];
|
||||||
state = state.copyWith();
|
state = state.copyWith(
|
||||||
|
chatSessions: newSessions,
|
||||||
|
isGenerating: false,
|
||||||
|
currentStreamingResponse: '',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> sendTaskMessage(ChatMessageType type) async {
|
Future<void> sendTaskMessage(ChatMessageType type) async {
|
||||||
|
|||||||
Reference in New Issue
Block a user