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
08eee40c
Commit
08eee40c
authored
Mar 07, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Jinja2 template error in Vulkan backend - ensure all messages have content attribute
parent
e7e2c626
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
coderai
coderai
+2
-2
No files found.
coderai
View file @
08eee40c
...
...
@@ -1723,8 +1723,8 @@ async def chat_completions(request: ChatCompletionRequest):
messages_dict
=
[]
for
msg
in
messages
:
msg_dict
=
{
"role"
:
msg
.
role
}
if
msg
.
content
:
msg_dict
[
"content"
]
=
msg
.
content
#
Always
include
content
key
-
llama_cpp
template
expects
it
msg_dict
[
"content"
]
=
msg
.
content
if
msg
.
content
is
not
None
else
""
if
msg
.
tool_calls
:
msg_dict
[
"tool_calls"
]
=
msg
.
tool_calls
if
msg
.
name
:
...
...
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