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
Hello, here is a repo with a number of improvements, including image display, file downloads, loading assistants, communication history, and the ability to share assistants and conversations.
const attachments = [];
if(fileIds){
for(const fileId of fileIds){
attachments.push({
file_id: fileId,
tools: [
{
type: "file_search" as const
},
{
type: "code_interpreter" as const
}
]
})
}
}
// If input is provided, create a new message in the thread using the OpenAI API
if (input) {
await openai.beta.threads.messages.create(threadId, {
role: "user",
content: input,
attachments:attachments
});
console.log("add_Message successfully");
return NextResponse.json({ message: "Message created successfully" });
}
Hello, here is a repo with a number of improvements, including image display, file downloads, loading assistants, communication history, and the ability to share assistants and conversations.
https://github.com/Direct-Technologies-CZ/OpenAI-Assistant-API-Chat
feel free to merge it.
The text was updated successfully, but these errors were encountered: