Hi,
I wanted to showcase a prototype here and am open to any contributions… still Alpha Zero version
1 messages · Page 1 of 1 (latest)
Hi,
I wanted to showcase a prototype here and am open to any contributions… still Alpha Zero version
I have been looking for an Assistants UI. Any plans to allow the user to provide file attachments in the query? My assistant helps users format documents they attach.
This project is the next step of the starter template: https://github.com/admineral/OpenAI-Assistant-API-Chat
Added multi file upload today and now working on attaching files during chat.
Next step is merging both … as soon as Assistant UI basic works
Awesome! Yours would be the first I know of that could do that. I'm sure there are a lot of people working on UIs for the Assistant API but I haven't seen much out there yet
updated the "OpenAI-Assistant-API-Chat" you can now upload files during chat
You work fast! Starred and hopefully will get a chance to test it soon.
I did some quick experimenting running OpenAI-Assistant-API-Chat locally. Here are a few notes as you continue to build:
const path = /tmp/${file.name}; in route.ts and the error was fixed after I created a 'tmp' directory.const [initialThreadMessage, setInitialThreadMessage] = useState('You are a Pirate! introduce yourself');' However, setting this to null or an empty string crashes the app.const [assistantModel, setAssistantModel] = useState('gpt-3.5-turbo-1106'); in useChatState.ts, does the model need to be redefined to match the model of my assistant? Or does that get detected and overridden? I tried putting in 'gpt-4-1106-preview' (what I'm using) and nothing seemed to change.I know JS but not TS, and limited React, so my ability to fix/tinker with this stuff on my own is limited at best 😆
Thanks for building this!
Hi, thank you for the input, will check every point later.
The problem with the Assistant and fileUplpad is, that openai needs time to index. Thats the biggest problem. I can fix that maybe by directly uploading as soon as selected. (Like in the Assistant Builder project)
---> tmp file: i tested the webapp (hosted on vercel) on different devices , so this bug is new for me.
----->remove the initial message: its not crashing, it just does not have a message to run on. We need a Message in a thread to get an answer. i did that because i didnt want to hardcode a welcome message from the assistant and its like a test if openai server are online
---> const [assistantModel, setAssistantModel] = useState('gpt-3.5-turbo-1106'); ...means that the default model is the 3.5 . if you change it to 4, its the new default.... you can check the assistant model in the OpenAI Assistant Playground. it should work. (100% tested it rn)
--->Route for posting in chat ... soon, its on my list
---> token usage of each run. .... i dont know if thats possible... knowledge retrieval is input tokens as i understand it...they are handling everything so i cannot keep track of
I recomment this ai assistant: https://cursor.sh
You can chat with the whole codebase
I see, I guess I could set the initial message to something like "Hello. Please respond 'ready for input' when you are ready" which would be pretty minimal cost. My concern was the token usage every time the page is refreshed.
Ah, so I would need to attach the file and send something like "please confirm when this file is ready for reference". Then make the request about it. I will try this later.
Update: I tried this and the Assistant still gives an error about reading the document. However, if I wait some arbitrary time like a minute, it can then read the document. So I guess they need to add some sort of event for when the file is ready. I wonder why it works in the Playground though...
Got it. I thought their API might return that info with each post. Not a big deal, I can work with an estimation. Maybe OpenAI will add something like this eventually.
I will fix this soon by uploading immediately, so we have a few seconds to index.
Hey friend, just wondering, are you still planning on adding this?
YES, but after xmas
but i added multiple file upload