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
905b1814
Commit
905b1814
authored
Mar 17, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(cli): Add 'all' option to --force-reasoning
Use --force-reasoning all to enable chat, stop, inject, and prompt
parent
08f64c61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
coderai
coderai
+5
-2
No files found.
coderai
View file @
905b1814
...
@@ -3068,17 +3068,20 @@ def parse_args():
...
@@ -3068,17 +3068,20 @@ def parse_args():
if
not
value
:
if
not
value
:
return
[]
return
[]
options
=
[
v
.
strip
()
.
lower
()
for
v
in
value
.
split
(
','
)]
options
=
[
v
.
strip
()
.
lower
()
for
v
in
value
.
split
(
','
)]
valid
=
{
'chat'
,
'stop'
,
'inject'
,
'prompt'
}
valid
=
{
'chat'
,
'stop'
,
'inject'
,
'prompt'
,
'all'
}
invalid
=
[
o
for
o
in
options
if
o
not
in
valid
]
invalid
=
[
o
for
o
in
options
if
o
not
in
valid
]
if
invalid
:
if
invalid
:
raise
argparse
.
ArgumentTypeError
(
f
"Invalid choices: {invalid}. Valid options: {valid}"
)
raise
argparse
.
ArgumentTypeError
(
f
"Invalid choices: {invalid}. Valid options: {valid}"
)
# Expand 'all' to all options
if
'all'
in
options
:
options
=
[
'chat'
,
'stop'
,
'inject'
,
'prompt'
]
return
options
return
options
parser
.
add_argument
(
parser
.
add_argument
(
"--force-reasoning"
,
"--force-reasoning"
,
type
=
reasoning_choices
,
type
=
reasoning_choices
,
default
=
None
,
default
=
None
,
help
=
"Force reasoning/thinking mode. Options: 'chat' (API reasoning
param), 'stop' (add stop tokens), 'inject' (system prompt), 'prompt' (prompt seeding). Combine with commas: --force-reasoning chat,inject,promp
t"
,
help
=
"Force reasoning/thinking mode. Options: 'chat' (API reasoning
), 'stop' (stop tokens), 'inject' (system prompt), 'prompt' (prompt seeding), 'all' (all features). Combine: --force-reasoning chat,injec
t"
,
)
)
return
parser
.
parse_args
()
return
parser
.
parse_args
()
def
main
():
def
main
():
...
...
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