Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kxtran committed May 23, 2024
1 parent 22ced04 commit 3cc0aed
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions log10/anthropic.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,6 @@ def create_tokens_usage(prompt: str, completion: str):
def prepare_response(
response: anthropic.types.Completion | anthropic.types.Message, input_prompt: str = ""
) -> dict:
print(type(response))

if isinstance(response, dict):
response = anthropic.types.Message(**response)

if not hasattr(response, "stop_reason"):
return None

Expand Down

0 comments on commit 3cc0aed

Please sign in to comment.