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

Add support to add image to favorites #11

Open
charlesjlee opened this issue Jul 22, 2022 · 4 comments
Open

Add support to add image to favorites #11

charlesjlee opened this issue Jul 22, 2022 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@charlesjlee
Copy link
Contributor

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.

@ezzcodeezzlife ezzcodeezzlife added enhancement New feature or request help wanted Extra attention is needed labels Jul 22, 2022
@kv-crosstech
Copy link

Like in #10 generation id needs to be cached

the endpoint is https://labs.openai.com/api/labs/collections/private/generations

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

@kv-crosstech
Copy link

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.

@kv-crosstech
Copy link

@ezzcodeezzlife do you need PR for any of these?

@ezzcodeezzlife
Copy link
Owner

@kv-crosstech if you want to add these features feel to do so 🔥 ill merge asap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants