mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-13 16:04:05 +09:00
Add system prompt - disabled for now
This commit is contained in:
@@ -228,6 +228,14 @@
|
||||
|
||||
|
||||
const submitForm = async (recorded: boolean = false): Promise<void> => {
|
||||
// Compose the system prompt message if there are no messages yet - disabled for now
|
||||
/*
|
||||
if (chat.messages.length === 0) {
|
||||
const systemPrompt: Message = { role: 'system', content: 'You are a helpful assistant.' }
|
||||
addMessage(chatId, systemPrompt)
|
||||
}
|
||||
*/
|
||||
|
||||
// Compose the input message
|
||||
const inputMessage: Message = { role: 'user', content: input.value }
|
||||
addMessage(chatId, inputMessage)
|
||||
|
||||
Reference in New Issue
Block a user