Skip to content

Commit

Permalink
fix(sdk): missing symbol handle_openai_response renamed to extract_ou…
Browse files Browse the repository at this point in the history
…tput_from_response
  • Loading branch information
juskek committed Aug 24, 2023
1 parent b8b3d41 commit d6f9996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk-python/omnilogger/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def filter(self, record) -> bool:

if "message='API response body'" in msg:
try:
self.handle_openai_response(msg)
self.extract_output_from_response(msg)
except json.decoder.JSONDecodeError:
record.msg = "JSONDecodeError for OpenAI response: " + msg
return True
Expand Down

0 comments on commit d6f9996

Please sign in to comment.