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

All Playground Config Options are not available via API #2

Closed
normand1 opened this issue Jan 30, 2021 · 1 comment
Closed

All Playground Config Options are not available via API #2

normand1 opened this issue Jan 30, 2021 · 1 comment

Comments

@normand1
Copy link

There are a few config options that are available in the Playground, but not via the API. For example: Frequency Penalty, Presence Penalty, Best Of, etc. Is there a way to use these in the library now or will these eventually be added?

@schnerd
Copy link
Collaborator

schnerd commented Feb 9, 2021

@normand1 Those parameters should be supported. For instance:

response = openai.Completion.create(
  engine="davinci",
  prompt="Hello world",
  temperature=0,
  best_of=2,
  frequency_penalty=0.5,
  presence_penalty=2,
)

Pretty much anything you can pass as a part of the REST API (as defined in our API reference) should be accepted in the python API.

pull bot referenced this issue in mcx/openai-python Oct 10, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
added retriever_file_set_search endpoint
@hallacy hallacy closed this as completed Jan 4, 2022
cgayapr pushed a commit to cgayapr/openai-python that referenced this issue Dec 14, 2024
added retriever_file_set_search endpoint
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

3 participants