Skip to content

Commit

Permalink
dont import litellm
Browse files Browse the repository at this point in the history
  • Loading branch information
bboynton97 committed Aug 14, 2024
1 parent 7e4d4c3 commit be8fcb8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions agentops/llms/litellm.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import pprint
from typing import Optional

import litellm.utils

from ..log_config import logger
from ..event import LLMEvent, ErrorEvent
from ..session import Session
Expand Down Expand Up @@ -99,7 +97,7 @@ def generator():
return generator()

Check warning on line 97 in agentops/llms/litellm.py

View check run for this annotation

Codecov / codecov/patch

agentops/llms/litellm.py#L97

Added line #L97 was not covered by tests

# litellm uses a CustomStreamWrapper
if isinstance(response, litellm.utils.CustomStreamWrapper):
if response.__class__.__name__ == "CustomStreamWrapper":

def generator():

Check warning on line 102 in agentops/llms/litellm.py

View check run for this annotation

Codecov / codecov/patch

agentops/llms/litellm.py#L102

Added line #L102 was not covered by tests
for chunk in response:
Expand Down

0 comments on commit be8fcb8

Please sign in to comment.