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

Setting "\n" for stop causes failure #36

@austintackaberry

Description

@austintackaberry
SyntaxError: Unexpected token in JSON at position 1
 at JSON.parse (<anonymous>)
 at unescapeStopTokens (/usr/src/app/node_modules/.pnpm/promptable@0.0.10/node_modules/promptable/dist/index.js:644:17)
 at OpenAI.generate (/usr/src/app/node_modules/.pnpm/promptable@0.0.10/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",
  };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions