Skip to content

allow user to specify params #6

@ezrizhu

Description

@ezrizhu

ai! prompt here ?model=modelName&temp=1&fp=1&pp=1&tp=1

fp: Frequency penalty
pp: Presence penalty
tp: top p

See available parameters here with the playground
https://platform.openai.com/playground

curl https://api.openai.com/v1/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -d '{
  "model": "text-davinci-003",
  "prompt": "hi",
  "temperature": 0,
  "max_tokens": 100,
  "top_p": 1,
  "frequency_penalty": 0.0,
  "presence_penalty": 0.0
}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions