fix: OpenAI CE specs (#7710)

This commit is contained in:
Muhsin Keloth 2023-08-21 11:24:35 +05:30 committed by GitHub
parent 355926897a
commit 0d41853b0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ RSpec.describe Integrations::Openai::ProcessorService do
let!(:customer_message) { create(:message, account: account, conversation: conversation, message_type: :incoming, content: 'hello agent') }
let!(:agent_message) { create(:message, account: account, conversation: conversation, message_type: :outgoing, content: 'hello customer') }
let!(:summary_prompt) do
if Dir.exist?('enterprise')
if ChatwootApp.enterprise?
Rails.root.join('enterprise/lib/enterprise/integrations/openai_prompts/summary.txt').read
else
'Please summarize the key points from the following conversation between support agents and customer as bullet points for the next ' \