Move logging to a central location for all AI Handlers

This commit is contained in:
zmeir
2024-01-04 16:08:50 +02:00
parent ac7aaa0cd3
commit ba3f22d81e
2 changed files with 5 additions and 5 deletions

View File

@ -101,11 +101,6 @@ class LiteLLMAIHandler(BaseAiHandler):
"""
try:
deployment_id = self.deployment_id
if get_settings().config.verbosity_level >= 2:
get_logger().debug(
f"Generating completion with {model}"
f"{(' from deployment ' + deployment_id) if deployment_id else ''}"
)
if self.azure:
model = 'azure/' + model
messages = [{"role": "system", "content": system}, {"role": "user", "content": user}]