fix: Handle OpenAI API errors (#9560)
This commit is contained in:
@@ -56,7 +56,7 @@ class Integrations::Hook < ApplicationRecord
|
||||
when 'openai'
|
||||
Integrations::Openai::ProcessorService.new(hook: self, event: event).perform if app_id == 'openai'
|
||||
else
|
||||
'No processor found'
|
||||
{ error: 'No processor found' }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user