admineral / openai-assistant-api-chat Goto Github PK
View Code? Open in Web Editor NEWOpenAI Assistant API Template: Customize your Assistant and chat with your files.
Home Page: https://open-ai-assistant-api-chat.vercel.app
OpenAI Assistant API Template: Customize your Assistant and chat with your files.
Home Page: https://open-ai-assistant-api-chat.vercel.app
Hi just wondering how the size, and type of files uploaded affect the performance of the assistants API.
i have an assistant ID than i added in the .env and when i ask assistant "who are you" it is correct. But When i start/load the promp it always state in the terminal text: { value: 'You are a Pirate! introduce yourself', annotations: [] }
i have looked at OpenAI, Assistant and what i can see/know i have nothing naming a pirate. Is there something im missing or how can i remove this and make the prompt act like it should when loading?
Regarding OpenAI Assistants creation, should we split them with different permission?
Please add a possibility to upload a file into the running conversation, not just at the moment the assistant is initialized.
Would love to see a CLI version for this, im not really in to the upload file, just send a question with a specific Assistan role. but to not use a webbrowser and use the CLI instead would be perfect if possible :)
Hi when I deploy to vercel with my OPENAI_API_KEY and ASSISTANT_ID I got the error "Failed to run assistant"
I see runAssistant()
just post a request but how do I fix this error ?
export const runAssistant = async (assistantId, threadId) => {
console.log('Running assistant...');
const response = await fetch('/api/runAssistant', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ assistantId, threadId }),
});
if (!response.ok) {
console.error('Failed to run assistant');
throw new Error('Failed to run assistant');
}
From the console I saw Thread ID: undefined, maybe this is the reason.
Chat thread created successfully. Thread ID: undefined
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.
How should I go about bypassing this screen so it defaults to a new chat window?
Thanks
How to create multiple assistants
Would you consider changing the chat introduction from Pirate to Professional or adding a choice for the user to specify as a parameter?
I am interested in help using this repo.
Currently, this project doesn't support to use assistant running gpt-4o
model because it requires Assistant API V2.
Error in -runAssistant: Error: 400 The requested model 'gpt-4o' cannot be used with the Assistants API in v1. Follow the migration guide to upgrade to v2: https://platform.openai.com/docs/assistants/migration.
Not an issue, just don't know where to ask. I really could use the TTS from eleven labs and Whisper put in this, dunno if you'd be willing to add it for a fee or something but we have some folks here in that don't type too well and it would sure be cool. Please shoot me an email and let me know [email protected] I really hope it's possible cuz the last proton in the universe would decay before I could even think of being able to do that lol. Sorry for the intrusion.
Currently this works amazingly! However, I'd like to be able to show a list of existing assistants that have been created already and then allow someone to choose which assistant to chat with. Would this be something that could be done easily? I don't know node.js very well, I'm normally a PHP HTML CSS developer lol
Great repo, thanks! Do you take on private clients to implement the above and other projects?
plz check your vercel demo site.
I can't send any message.
https://open-ai-assistant-api-chat.vercel.app/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.