Skip to content

Commit

Permalink
fix bugs crashes app when use system_instruction in plugin
Browse files Browse the repository at this point in the history
Signed-off-by: cbh778899 <[email protected]>
  • Loading branch information
cbh778899 committed Aug 25, 2024
1 parent 2065d07 commit 90fabd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/inference.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export async function chatCompletion(req, res) {
request_body.prompt = formatOpenAIContext(value);
break;
case "system_instruction":
messages.push(value);
messages.push({role:"system", content: value});
break;
case "normal": default:
break;
Expand Down

0 comments on commit 90fabd3

Please sign in to comment.