Commit 6b297f18 authored by Your Name's avatar Your Name

Add debug output for api_key and api_base in litellm

parent be41efbd
......@@ -428,14 +428,8 @@ class LiteLLMBackend:
print("DEBUG litellm: HuggingFace model - using fake key")
# Debug: show api_key and api_base being used
try:
import sys
if 'coderai' in sys.modules:
from coderai import global_debug
if global_debug:
# Always show this debug info to help diagnose litellm configuration
print(f"DEBUG litellm: api_key={litellm.api_key}, api_base={self.base_url}, model={use_model}")
except:
pass
# Convert messages to litellm format
litellm_messages = self._convert_messages(messages)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment