chore: Fix OpenAI sentry errors (#7687)
- add check for nil condition - add logs for openAI
This commit is contained in:
@@ -13,7 +13,7 @@ module Enterprise::Integrations::OpenaiProcessorService
|
||||
# To what you ask? Sometimes, the response includes
|
||||
# "Labels:" in it's response in some format. This is a hacky way to remove it
|
||||
# TODO: Fix with with a better prompt
|
||||
response.gsub(/^(label|labels):/i, '')
|
||||
response.present? ? response.gsub(/^(label|labels):/i, '') : ''
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user