@zxdream
It sounds like you're experiencing an issue where the knowledge base ID is not persisting after you publish your assistant through the UI. This could be due to a synchronization issue between the API and the UI, or it might be a bug.
To help you further, I would need to know more details about the steps you're taking and the exact API requests you're making. However, if you're confident that you're following the correct procedures and the issue persists, I recommend reaching out to the support team with detailed information about your problem.
In the meantime, if you need to ensure that your knowledge base remains linked to your assistant, you might want to manage your assistant's versions and knowledge bases strictly through the API, as it seems to be more reliable for your current workflow.
Please let me know if there's anything specific you would like assistance with or if you have any other questions!