Skip to content

Commit

Permalink
[Fix] logger.error -> logger.debug in OpenAI wrapper (#1050)
Browse files Browse the repository at this point in the history
* logger.error -> logger.info in OpenAI

* logger.info -> logger.debug in OpenAI
  • Loading branch information
Leymore authored Apr 15, 2024
1 parent a00e572 commit 7a41951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opencompass/models/openai_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def _generate(self, input: PromptType, max_out_len: int,
self.logger.error('JsonDecode error, got',
str(raw_response.content))
continue
self.logger.error(str(response))
self.logger.debug(str(response))
try:
if self.logprobs:
return response['choices']
Expand Down

0 comments on commit 7a41951

Please sign in to comment.