mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-15 17:46:10 +02:00
Update src/llm/prompt/builder.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
6691e7cc9e
commit
5736b3b684
1 changed files with 1 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ class PromptBuilder:
|
|||
|
||||
if messages[0].role == Role.SYSTEM:
|
||||
system_parts.insert(0, messages[0].content)
|
||||
result.insert(0, Message(role=Role.SYSTEM, content="\n\n".join(system_parts)))
|
||||
result.extend(messages[1:])
|
||||
else:
|
||||
if system_parts:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue