Skip to content

Commit

Permalink
fix systemPrompt option (#88)
Browse files Browse the repository at this point in the history
* fix systemPrompt option

* up version
  • Loading branch information
kevin-btc authored Oct 17, 2023
1 parent 9469fb8 commit 6193927
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/midjourney.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { generate } from "../lib/index";
"i want a Swiss white beger dog",
{
systemPromptId: "f4a1f732-9c38-4bdb-b9e4-3baa7971286a",
infos: true,
},
{
endpoint: "http://localhost:8080",
Expand Down
1 change: 1 addition & 0 deletions lib/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ function stream(
stop: genOptions.stop || [],
infos: true,
system_prompt_id: genOptions.systemPromptId,
system_prompt: genOptions.systemPrompt,
temperature: genOptions.temperature,
chat_id: genOptions.chatId,
web: genOptions.web,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polyfire-js",
"version": "0.2.4",
"version": "0.2.5",
"main": "index.js",
"types": "index.d.ts",
"author": "Lancelot Owczarczak <lancelot@owczarczak.fr>",
Expand Down

0 comments on commit 6193927

Please sign in to comment.