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
fee1c415
Commit
fee1c415
authored
Mar 19, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix missing global_system_prompt getter in text.py
parent
b1b0818f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
text.py
codai/api/text.py
+3
-0
No files found.
codai/api/text.py
View file @
fee1c415
...
@@ -21,7 +21,9 @@ from codai.api.state import (
...
@@ -21,7 +21,9 @@ from codai.api.state import (
set_global_args
as
_set_global_args
,
set_global_args
as
_set_global_args
,
get_global_debug
,
get_global_debug
,
set_global_debug
as
_set_global_debug
,
set_global_debug
as
_set_global_debug
,
get_global_system_prompt
,
set_global_system_prompt
as
_set_global_system_prompt
,
set_global_system_prompt
as
_set_global_system_prompt
,
get_global_tools_closer_prompt
,
set_global_tools_closer_prompt
as
_set_global_tools_closer_prompt
,
set_global_tools_closer_prompt
as
_set_global_tools_closer_prompt
,
get_grammar_guided_gen
,
get_grammar_guided_gen
,
set_grammar_guided_gen
as
_set_grammar_guided_gen
,
set_grammar_guided_gen
as
_set_grammar_guided_gen
,
...
@@ -308,6 +310,7 @@ async def chat_completions(request: ChatCompletionRequest, http_request: Request
...
@@ -308,6 +310,7 @@ async def chat_completions(request: ChatCompletionRequest, http_request: Request
# Inject system prompt if --system-prompt flag was provided
# Inject system prompt if --system-prompt flag was provided
messages
=
request
.
messages
messages
=
request
.
messages
global_system_prompt
=
get_global_system_prompt
()
if
global_system_prompt
is
not
None
:
if
global_system_prompt
is
not
None
:
# Get the custom system prompt text
# Get the custom system prompt text
if
global_system_prompt
is
True
:
if
global_system_prompt
is
True
:
...
...
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