MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

Azure Assistant cannot retrieve files belong to assistant #123206

Closed pannipasra closed 4 months ago

pannipasra commented 4 months ago

Creating an issue

We prefer that you create documentation feedback issues using the Feedback link on the published article - the feedback control on the doc page creates an issue that contains all the article details so you can focus on the feedback part.

You can also create a feedback issue here in the repo. If you do this, please make sure your issue lists:


Hi everyone I tried to use Assistant API and I on the part of retrieve files that belong to specific assistant,

My issue is when trying to get files that belongs to assistant with RestAPI it return a 404 not found

curl --location 'https://{{MY_ENDPOINT}}.openai.azure.com/openai/assistants/{{MY_ASSISTANT_ID}}/files?api-version=2024-05-01-preview' \
--header 'api-key: {{CRED}}' \
--header 'Content-Type: application/json'

or with this ref doc

error message

{
    "error": {
        "code": "404",
        "message": "Resource not found"
    }
}

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

TPavanBalaji commented 4 months ago

@pannipasra Thanks for your feedback! We will investigate and update as appropriate.

AjayBathini-MSFT commented 4 months ago

@pannipasra

MicrosoftDocs Github issue is mainly related to the document issue. I would recommend you to create a thread on the forums - Microsoft Q&A or Stack Overflow Once you post your issue on forums, it will have visibility across the community which is a better suited audience for such types of issues.

This would need one on one troubleshooting and if you have the support plan then I will suggest you to create the support requestt to engage us over one on one support request.

In case if you don't have the support plan then please create the QnA thread so we can assist you further.

We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.