Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
coderai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
coderai
Commits
6b297f18
Commit
6b297f18
authored
Mar 16, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debug output for api_key and api_base in litellm
parent
be41efbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
litellm.py
codai/openai/litellm.py
+2
-8
No files found.
codai/openai/litellm.py
View file @
6b297f18
...
...
@@ -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
:
print
(
f
"DEBUG litellm: api_key={litellm.api_key}, api_base={self.base_url}, model={use_model}"
)
except
:
pass
# 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}"
)
# Convert messages to litellm format
litellm_messages
=
self
.
_convert_messages
(
messages
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment