-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: OpenAi Assistant usage removes function #8640
Comments
Hey @demsr, Thanks for the report, I have followed the steps you have provided and I have not been able to reproduce this. When you say "Use Assistant with n8n Block" what do you mean? For my test I created a new Assistant and used the I have just quickly checked the code for the OpenAI node and we technically lack the code to delete a function from an Assitant but we can delete the entire assistant so it sounds like maybe something is happening outside of n8n. |
Hey @Joffcom, thanks for the reply. My setup looks like the following, and the "function" is just gone after i run the workflow and refresh the openai assistant page... |
After updating to prerelease version 1.29.0 the function is no longer removed. But it also isn't running my function or any other function like "get weather" at all... just responding with text... |
How are you calling the function? Have you tested the same prompt in the playground and in n8n? |
Hey @demsr, That looks right to me as you don't have a tool in the output to process the function. You can find an example on how to use the assistant here: https://n8n.io/workflows/2098-chat-with-openai-assistant-by-adding-a-memory/ |
Hey @Joffcom Seems that the original function in the Assistant is "updated", once the workflow is triggered. Here is the original function in the Open AI playground before the workflow in n8n is triggered And here is the same function after the workflow in n8n is triggered Here is the workflow used: Hope this helps! |
Can you share the json for the workflow? We should lack the code to make the change so I suspect OpenAI is changing it to match |
Hi @Joffcom sure here it is:
|
Could this be related? https://platform.openai.com/docs/api-reference/assistants/modifyAssistant |
Hey @pausanchez, That could be it, Looking at the updated node again and it looks lime we might actually only use code_interpreter and retrieval rather than functions. I have created |
Fix got released with |
Bug Description
Using the "OpenAi Assistant" Block with an existing assistant which has a custom function has the result of this function being deleted/removed.
To Reproduce
Expected behavior
Using the n8n block should not alter the assistant
Operating System
Ubuntu 22.04
n8n Version
1.27.2
Node.js Version
18.19.0
Database
SQLite (default)
Execution mode
main (default)
The text was updated successfully, but these errors were encountered: