Skip to content

Commit

Permalink
Change the role to "user" in format function of ollama chat model
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijianma committed Sep 14, 2024
1 parent 6c823a9 commit 80a2157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agentscope/models/ollama_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def format(
system_content = "\n".join(system_content_template)

system_message = {
"role": "system",
"role": "user",
"content": system_content,
}

Expand Down

0 comments on commit 80a2157

Please sign in to comment.