forked from phoenix/litellm-mirror
remove unused pkg resources + docs update
This commit is contained in:
parent
d394c77623
commit
6f48f7ab6e
2 changed files with 18 additions and 14 deletions
|
@ -5,7 +5,6 @@ import litellm, openai
|
|||
import random, uuid, requests
|
||||
import datetime, time
|
||||
import tiktoken
|
||||
from pkg_resources import DistributionNotFound, VersionConflict
|
||||
encoding = tiktoken.get_encoding("cl100k_base")
|
||||
from .integrations.helicone import HeliconeLogger
|
||||
from .integrations.aispend import AISpendLogger
|
||||
|
@ -111,7 +110,7 @@ class ModelResponse:
|
|||
choices_str = ",\n".join(str(choice) for choice in self.choices)
|
||||
result = f"{{\n 'choices': [\n{choices_str}\n ],\n 'created': {self.created},\n 'model': '{self.model}',\n 'usage': {self.usage}\n}}"
|
||||
return result
|
||||
|
||||
############################################################
|
||||
def print_verbose(print_statement):
|
||||
if litellm.set_verbose:
|
||||
print(f"LiteLLM: {print_statement}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue