-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add support to add image to favorites #11
Comments
Like in #10 generation id needs to be cached the endpoint is import requests
auth_header = "Bearer sess-......"
payload = {"generation_ids": ["generation-ExyZNQNG5xzIkYqmPfOejUzP"]}
ret = requests.post(
f"https://labs.openai.com/api/labs/collections/private/generations",
headers={"Authorization": auth_header},
json=payload,
)
print(ret.json()) generation_ids seems to be accepting a list of IDS, but i didn't test what happens if you actually put here multiple generations |
Off topic: I'm actually quite shocked, that no one has done what I just did. This library can be (and probably will be) very helpful for developers before OpenAI releases actual API with documentation. |
@ezzcodeezzlife do you need PR for any of these? |
@kv-crosstech if you want to add these features feel to do so 🔥 ill merge asap |
The DALL·E UI allows you to mark an image as a "favorite", which just saves a reference to a collection. It would be nice to do this programatically.
The text was updated successfully, but these errors were encountered: