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
17205499
Commit
17205499
authored
Mar 19, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enhance debug output to show --ggg and --tools-closer-prompt flags
parent
28b8fa4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
text.py
codai/api/text.py
+6
-0
No files found.
codai/api/text.py
View file @
17205499
...
...
@@ -363,11 +363,17 @@ async def chat_completions(request: ChatCompletionRequest, http_request: Request
# DEBUG: Print force_reasoning status when debug mode is enabled
if
get_global_debug
():
# Get ggg and tools_closer_prompt from global_args
ggg_enabled
=
getattr
(
global_args
,
'grammar_guided_gen'
,
False
)
if
global_args
else
False
tools_closer
=
getattr
(
global_args
,
'tools_closer_prompt'
,
False
)
if
global_args
else
False
print
(
f
"
\n
{'='*60}"
)
print
(
f
"=== REASONING MODE DEBUG ==="
)
print
(
f
"{'='*60}"
)
print
(
f
"force_reasoning CLI args: {force_reasoning_args}"
)
print
(
f
"enable_thinking API param: {enable_thinking_api}"
)
print
(
f
"ggg (grammar-guided-gen) CLI flag: {ggg_enabled}"
)
print
(
f
"tools-closer-prompt CLI flag: {tools_closer}"
)
# Debug stop sequences if available
if
'raw_stop_sequences'
in
locals
():
print
(
f
"stop argument for chat call: {raw_stop_sequences}"
)
...
...
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