fix: Improve reply prompt (#7588)

Co-authored-by: Sojan Jose <sojan@chatwoot.com>
This commit is contained in:
Muhsin Keloth
2023-08-09 10:25:37 +05:30
committed by GitHub
parent b5dec067a1
commit c1c3a62412
5 changed files with 24 additions and 45 deletions

View File

@@ -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 }
]