You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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?
The text was updated successfully, but these errors were encountered: