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
916ced3b
Commit
916ced3b
authored
Mar 17, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(templates): Add 'The user requested' after thought tag in prompt seeding
parent
9c169fac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
templates.py
codai/models/templates.py
+10
-1
No files found.
codai/models/templates.py
View file @
916ced3b
...
...
@@ -128,7 +128,16 @@ class AgenticTemplateManager:
self
.
REASONING_PREFIXES
[
"generic"
]
)
return
template
.
format
(
sys
=
system_prompt
,
user
=
user_question
)
# Format the base template
prompt
=
template
.
format
(
sys
=
system_prompt
,
user
=
user_question
)
# Get the thought tag for this family
thought_tag
=
self
.
THOUGHT_TAGS
.
get
(
self
.
family_key
,
"<think>"
)
# Add "The user requested" after the thought tag to guide reasoning
prompt
+=
f
"The user requested: {user_question}
\n
"
return
prompt
def
get_stop_tokens
(
self
)
->
List
[
str
]:
"""
...
...
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