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
e654c9f4
Commit
e654c9f4
authored
Mar 16, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix litellm debug mode check to use runtime global_debug
parent
c52d2e2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
litellm.py
codai/openai/litellm.py
+3
-6
No files found.
codai/openai/litellm.py
View file @
e654c9f4
...
...
@@ -751,15 +751,12 @@ default_litellm_backend: Optional[LiteLLMBackend] = None
# Turn on litellm debug mode if global debug is enabled
def
_setup_litellm_debug
():
"""Turn on litellm debug mode if global debug is enabled."""
global
global_debug
try
:
# Import global_args from coderai
import
sys
import
os
# Try to get global_args from the coderai module
# Check if global_debug is True in coderai module at runtime
if
'coderai'
in
sys
.
modules
:
from
coderai
import
global_debug
as
coderai_debug
if
coderai
_debug
:
from
coderai
import
global_debug
if
global
_debug
:
import
litellm
litellm
.
_turn_on_debug
()
print
(
"DEBUG litellm: Debug mode enabled"
)
...
...
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