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

Is there a way to see existing Assistants in ChatGPT? #30

Open
mledwards opened this issue May 12, 2024 · 3 comments
Open

Is there a way to see existing Assistants in ChatGPT? #30

mledwards opened this issue May 12, 2024 · 3 comments

Comments

@mledwards
Copy link

I was hoping that by adding my API key I would be able to see list of existing Assistants, do you know if this is possible?

@Anil-matcha
Copy link
Contributor

Currently it only shows the assistants created from this app, but we can look at providing an option for the same

@mledwards
Copy link
Author

mledwards commented May 13, 2024

Hi @Anil-matcha. I forked the project to have a play around. I got a list outputting by...

Creating an API route to get the list

const list = await openai.beta.assistants.list();
return NextResponse.json(list.data);

Then fetching that API route on the home page

const listResponse = await fetch("/api/openai/list");
const list = await listResponse.json();

This has the added benefit of hiding the OpenAI API key in the server side API routes, so I'm using this method to share embeds. I'll share you on my fork when it's done.

Let me know if you wanted to chat through any of it.

@Anil-matcha
Copy link
Contributor

@Anil-matcha Please go ahead and create a pull request and I will merge the changes

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

2 participants