T
Typebot4mo ago
ESchwaa

OpenAI Assistant help

Hi Type Bot Community! I need a bit of help with the OpenAI Assistant settings in the simple typebot template. I have configured my OpenAI account, and it sees my assistant, but when I test the integration, it doesn't seem to be aware of the files that I have uploaded to the assistant. Effectively I need to be able to pass in a block like the following: { "assistant_id":"asst_xxx" "additional_instructions":NULL "tool_choice":{ "type":"file_search" } } I'm trying to pass this in through the messages block like the following attached image. Is this the right way to do this? Thanks!! Image
No description
22 Replies
Baptiste
Baptiste4mo ago
No that's not what you should do There, you should pass the User message OpenAI should be aware of the file you uploaded to your assistant It has nothing to do with Typebot in theory Oh I see that it's part of their v2 API (https://platform.openai.com/docs/assistants/whats-new) But still, file retrieval should work fine in v1
ESchwaa
ESchwaa4mo ago
right that's what I thought. I shouldn't have to pass in any additional functions. but when I send a message with typebot i get an message back from the assistant that no files are uploaded. Not sure how to debug.
ESchwaa
ESchwaa4mo ago
here is the repsonse from typebot -
No description
ESchwaa
ESchwaa4mo ago
here is the response for the same assistant in the playground
No description
ESchwaa
ESchwaa4mo ago
and even when I switch to v1 in the playground it still works
Baptiste
Baptiste4mo ago
Mmmh Ok let me try it out again Ok I can reproduce the issue 🤔 Thank you for reporting. I will fix it most likely today
ESchwaa
ESchwaa4mo ago
oh you would be my hero! Moving from free to paying customer NOW! 🙂
Baptiste
Baptiste4mo ago
Took more time than expected, but I'm shipping all the v2 goodies including streaming with the bug fix! I'll most likely merge it tomorrow as it needs more testing for now
ESchwaa
ESchwaa4mo ago
oh wow you are a champion! Thank you @Baptiste ! Streaming will be legit! it's looking great @Baptiste ! will let you know if I find any issues!
MasterWise
MasterWise4mo ago
Assistants continuam com erro:
No description
MasterWise
MasterWise4mo ago
após a primeira interação com o Assistant do GPT, ele gera esse erro a não é mais possivel enviar novas mensagens ao GPT escrevo a mensagem no Typebot, e ela fica aguardando a resposta, que nunca chega
MasterWise
MasterWise4mo ago
No description
MasterWise
MasterWise4mo ago
a segunda mensagem nunca chegou a thread do assistant
Michaelvips
Michaelvips4mo ago
English man...
MasterWise
MasterWise4mo ago
Assistants continue to have an error after the first interaction with the GPT Assistant, it generates this error and it is no longer possible to send new messages to GPT I write the message in Typebot, and it is left waiting for a response, which never arrives the second message never reached the assistant's thread
MasterWise
MasterWise4mo ago
Another thing also broke with the new update. Before, the Ask Assistant provided two returns, the ThreadId and the Message. I used the ThreadId to configure the GPT Thread, but now this return no longer exists and the control became poor.
No description
MasterWise
MasterWise4mo ago
This change ended up breaking my automations and I am without a solution so far.
Baptiste
Baptiste4mo ago
Indeed, you don't have to save the Thread ID anymore, it does it automatically! Can you try deleting the ThreadId response item?
ESchwaa
ESchwaa4mo ago
Hey @Baptiste - I'm seeing an issue with long chats, the assistant starts to hallucinate. Is there a way to limit the number of messages that are appended to the chat message to say the last 5 messages? The flow that I'm using is essentially your example out of the box -
No description
Baptiste
Baptiste3mo ago
Assistant API is using OpenAI built-in memory so your Assistant Message is not in use here, you don't need it If the assistant is starting to hallucinate then the issue comes from OpenAI 🙁
ESchwaa
ESchwaa3mo ago
helpful. I will look at the prompt then! and just FYI @Baptiste in the Mesage block, I had created an instruction that looks like this:
Here is the current lecture that the user is watching: {{Video Name}} Keeping your answers focused on {{Video Name}} please answer {{User Message}}.
Only answer questions about other lectures if the user specifically asks for it. For context, here is the chat history {{Chat history}}
I believe that {{Chat history}} was creating a problem as I can't seem to reproduce now that I have taken that last bit out