feat: improve prompts

This commit is contained in:
Udhay-Adithya
2025-09-05 16:41:35 +05:30
parent 7e13a48199
commit 6bbbe6ccc3
5 changed files with 175 additions and 211 deletions

View File

@@ -7,7 +7,6 @@ import 'package:apidash/models/models.dart';
import 'package:nanoid/nanoid.dart';
import '../../../core/constants/dashbot_prompts.dart' as dash;
import '../view/widgets/chat_bubble.dart';
import '../models/chat_models.dart';
import '../repository/chat_remote_repository.dart';
@@ -47,7 +46,7 @@ class ChatViewmodel extends StateNotifier<ChatState> {
if (ai == null) {
debugPrint('[Chat] No AI model configured');
_appendSystem(
'AI model is not configured. Please set one in AI Request tab.',
'AI model is not configured. Please set one.',
type,
);
return;
@@ -261,7 +260,7 @@ class ChatViewmodel extends StateNotifier<ChatState> {
body: http?.body,
);
case ChatMessageType.general:
return null;
return prompts.generalInteractionPrompt();
}
}
}