Commit be41efbd authored by Your Name's avatar Your Name

Add debug output for api_key and api_base in litellm

parent a52a56e7
...@@ -427,6 +427,16 @@ class LiteLLMBackend: ...@@ -427,6 +427,16 @@ class LiteLLMBackend:
litellm.api_key = "sk-fakekey" litellm.api_key = "sk-fakekey"
print("DEBUG litellm: HuggingFace model - using fake key") 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:
print(f"DEBUG litellm: api_key={litellm.api_key}, api_base={self.base_url}, model={use_model}")
except:
pass
# Convert messages to litellm format # Convert messages to litellm format
litellm_messages = self._convert_messages(messages) litellm_messages = self._convert_messages(messages)
......
This diff is collapsed.
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