Open mledwards opened 6 months ago
Currently it only shows the assistants created from this app, but we can look at providing an option for the same
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 Please go ahead and create a pull request and I will merge the changes
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?