Skip to content

Commit

Permalink
style: reduce httpx log level (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsorber authored Dec 8, 2024
1 parent 0c5b7b5 commit b02c5a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/raglite/_litellm.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@

from raglite._config import RAGLiteConfig

# Reduce the logging level for LiteLLM and flashrank.
# Reduce the logging level for LiteLLM, flashrank, and httpx.
os.environ["LITELLM_LOG"] = "WARNING"
logging.getLogger("LiteLLM").setLevel(logging.WARNING)
logging.getLogger("flashrank").setLevel(logging.WARNING)
logging.getLogger("httpx").setLevel(logging.WARNING)


class LlamaCppPythonLLM(CustomLLM):
Expand Down

0 comments on commit b02c5a0

Please sign in to comment.