Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Setting "\n" for stop causes failure #36

Open
austintackaberry opened this issue Feb 20, 2023 · 1 comment
Open

Setting "\n" for stop causes failure #36

austintackaberry opened this issue Feb 20, 2023 · 1 comment

Comments

@austintackaberry
Copy link

austintackaberry commented Feb 20, 2023

SyntaxError: Unexpected token in JSON at position 1
 at JSON.parse (<anonymous>)
 at unescapeStopTokens (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/promptable/dist/index.js:644:17)
 at OpenAI.generate (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/promptable/dist/index.js:688:24)
 at runCompletion (/usr/src/app/dist/src/lib/promptable.js:13:33)
"promptable": "^0.0.10"
const options = {
    model: "text-davinci-003",
    temperature: 0,
    max_tokens: 5,
    top_p: 1,
    stop: "\n",
  };
@cfortuner
Copy link
Owner

Thanks for reporting. Will take a look today

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants