Skip to content

Commit

Permalink
Updated minimum supported litellm version
Browse files Browse the repository at this point in the history
  • Loading branch information
HowieG committed Apr 26, 2024
1 parent fed4de6 commit 273b43f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agentops/llm_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class LlmTracker:
SUPPORTED_APIS = {
'litellm': {'1.0.0': ("openai_chat_completions.completion",)}, # TODO
'litellm': {'1.3.1': ("openai_chat_completions.completion",)}, # TODO
'openai': {
'1.0.0': (
"chat.completions.create",
Expand Down Expand Up @@ -298,11 +298,11 @@ def override_api(self):
module = import_module(api)
if api == 'litellm':
module_version = version(api)
if Version(module_version) >= parse('1.0.0'):
if Version(module_version) >= parse('1.3.1'):
self.override_litellm_completion()
self.override_litellm_async_completion()
else:
logging.warning(f'🖇 AgentOps: Only litetllm v1.0.0+ supported. v{module_version} found.')
logging.warning(f'🖇 AgentOps: Only litetllm v1.3.1+ supported. v{module_version} found.')
return # If using an abstraction like litellm, do not patch the underlying LLM APIs

if api == 'openai':
Expand Down

0 comments on commit 273b43f

Please sign in to comment.