Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow user to specify params #6

Open
ezrizhu opened this issue Mar 4, 2023 · 1 comment
Open

allow user to specify params #6

ezrizhu opened this issue Mar 4, 2023 · 1 comment

Comments

@ezrizhu
Copy link
Member

ezrizhu commented Mar 4, 2023

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
}'
@ezrizhu ezrizhu mentioned this issue Mar 4, 2023
@ezrizhu
Copy link
Member Author

ezrizhu commented Feb 16, 2024

should prlly just use slashcommands for this..

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

No branches or pull requests

1 participant