Hi @GenixPRO,
Thank you for reaching out to Microsoft Q&A forum!
When API keys are refreshed, they invalidate the old keys, which is likely causing the issue you're experiencing with the Assistants previously created using the old keys. This would prevent them from retrieving past messages. The reason why APIs like chatCompletions
work fine is that they create a new instance each time, while the Assistants API, which creates an instance once and runs anywhere, is more dependent on the old keys.
To resolve this, ensure that all references to the old API keys in your application are updated with the new keys. If the Assistants were created with old keys, they may need to be re-deployed or re-configured with the new keys. You do not necessarily need to delete and recreate the assistants, but you should verify that all dependencies and configurations are aligned with the new keys.
Hope this helps! If it doesn't work, please let us know, and we'll work on resolving the issue.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful.