Skip to content

Commit

Permalink
Clean up commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
kxtran committed May 21, 2024
1 parent 204e56c commit 1d85176
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions log10/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,11 +374,8 @@ class AnthropicStreamingResponseWrapper:
Wraps a streaming response object to log the final result and duration to log10.
"""

text_stream = None

def __enter__(self):
self.response = self.response.__enter__()
# self.text_stream = self.response
return self

def __exit__(self, exc_type, exc_value, traceback):
Expand Down Expand Up @@ -904,11 +901,6 @@ def log10(module, DEBUG_=False, USE_ASYNC_=True):
method = getattr(attr, "create")
setattr(attr, "create", intercepting_decorator(method))

# anthropic Messages stream function
# attr = module.resources.messages.Messages
# method = getattr(attr, "stream")
# setattr(attr, "stream", intercepting_decorator(method))

attr = module.resources.beta.tools.Messages
method = getattr(attr, "stream")
setattr(attr, "stream", intercepting_decorator(method))
Expand Down

0 comments on commit 1d85176

Please sign in to comment.