fix: Improve reply prompt (#7588)
Co-authored-by: Sojan Jose <sojan@chatwoot.com>
This commit is contained in:
@@ -64,7 +64,7 @@ RSpec.describe Integrations::Openai::ProcessorService do
|
||||
'model' => 'gpt-3.5-turbo',
|
||||
'messages' => [
|
||||
{ role: 'system',
|
||||
content: 'Please suggest a reply to the following conversation between support agents and customer. Reply in the user\'s language.' },
|
||||
content: Rails.root.join('lib/integrations/openai/openai_prompts/reply.txt').read },
|
||||
{ role: 'user', content: customer_message.content },
|
||||
{ role: 'assistant', content: agent_message.content }
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user