Skip to content

Commit

Permalink
Merge pull request #46 from kalviumcommunity/fix/logging-openai
Browse files Browse the repository at this point in the history
Fix the logging message in case of validation failure from openAI
  • Loading branch information
shashanksingh2002 authored May 22, 2024
2 parents 995f8f4 + f1605db commit a844192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/code.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const _executePrompt = async (

const validatedData = schema.validate(openAIResponse)
if (validatedData.error || openAIResponse.points !== points) {
logger.error(`The response received from Open AI failed the validation check: ${validatedData}`)
logger.error(`The response received from Open AI failed the validation check: ${JSON.stringify(validatedData)}`)
++errorResponsesCount
} else {
allValidResponses.push(openAIResponse)
Expand Down

0 comments on commit a844192

Please sign in to comment.