File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
5
5
[project ]
6
6
name = " llama-cpp-agent"
7
- version = " 0.2.9 "
7
+ version = " 0.2.10 "
8
8
description = " A framework for building LLM based AI agents with llama.cpp."
9
9
10
10
readme = " ReadMe.md"
Original file line number Diff line number Diff line change @@ -382,9 +382,9 @@ def get_response_role_and_completion(
382
382
):
383
383
if len (chat_history .get_chat_messages ()) == 0 :
384
384
if system_prompt :
385
- chat_history .add_message ({"role" : " system" , "content" : system_prompt })
385
+ chat_history .add_message ({"role" : Roles . system , "content" : system_prompt })
386
386
else :
387
- chat_history .add_message ({"role" : " system" , "content" : self .system_prompt })
387
+ chat_history .add_message ({"role" : Roles . system , "content" : self .system_prompt })
388
388
389
389
if message is not None and add_message_to_chat_history :
390
390
chat_history .add_message (
You can’t perform that action at this time.
0 commit comments