Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Add user id parameter to CompletionRequest #19

Closed
aleclarin opened this issue Jul 8, 2022 · 2 comments · Fixed by #23
Closed

Add user id parameter to CompletionRequest #19

aleclarin opened this issue Jul 8, 2022 · 2 comments · Fixed by #23

Comments

@aleclarin
Copy link

First off, thanks for putting this library together, it's super helpful!

OpenAI's App Review/Usage Guidelines require requests to include the end-user ID:

All applications are required to receive approval through an App Review and to send end-user IDs with each request

Currently there's no user ID parameter in CompletionRequest.

@gbolcer
Copy link

gbolcer commented Jul 12, 2022

Okay, read through the documentation. It should be easy to add .user("userwhatever") to the constructor. Let me see if I can do it myself and submit it.

'''
response = openai.Completion.create(
model="text-davinci-002",
prompt="This is a test",
max_tokens=5,
user="user123456"
)
'''

TheoKanning added a commit that referenced this issue Aug 19, 2022
TheoKanning added a commit that referenced this issue Aug 19, 2022
@TheoKanning
Copy link
Owner

Thanks for telling me about this!

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

Successfully merging a pull request may close this issue.

3 participants