Skip to content
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] Azure.AI.OpenAI.Assistants - I'm not able to ask question about the content of a file uploaded in the Storage #44197

Closed
Freddeb opened this issue May 22, 2024 · 2 comments
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team OpenAI question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@Freddeb
Copy link

Freddeb commented May 22, 2024

Library name and version

Azure.AI.OpenAI.Assistants 1.0.0-beta.4

Describe the bug

Hello,
I've developed a chatbot in .net c# and I use the library Azure.AI.OpenAI.Assistants.
I have pre-created my Assistant in the web interface of OpenAI (I didn't attached any document directly to the assistant).
In my application, I upload a document (role=assistant) on the Store of OpenAI and I get back its identifier (file-wXz...) then I create a message and I pass the collection of file_ids (actually I've only one id) in the following function:

Response<ThreadMessage> messageResponse = await client.CreateMessageAsync(thread.Id, MessageRole.User, userMessage, **file_ids**, null, cancellationToken);

I submit my message with a question about the file content by creating a run.
The answer of the model is still something similar to:
I am unable to access the content of the file you uploaded. Could you please try uploading it again so that I can assist you in understanding what the document is about?

What I do wrong? Can you please help ?

Expected behavior

The model answers with information retrieved from the document.

Actual behavior

I receive the following message from the model:
I am unable to access the content of the file you uploaded. Could you please try uploading it again so that I can assist you in understanding what the document is about?

Reproduction Steps

  1. Upload a file in the store (role=assistant)
  2. Create a small .net app with a reference to the library Azure.AI.OpenAI.Assistants 1.0.0-beta.4
  3. Create an instance of an assistant client
  4. Create a thread
  5. Create a message and associate with it the file id of document uploaded in point 1.
  6. Submit the message in a Run and get the response from the model.

Environment

Windows Server 2019 , .NET runtime version 6, Visual Studio 2022

@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team OpenAI question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. labels May 22, 2024
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @trrwilson.

@Freddeb
Copy link
Author

Freddeb commented Jun 17, 2024

My mistake, I mixed API calls with Assistant V1 and V2.

@Freddeb Freddeb closed this as completed Jun 17, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team OpenAI question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

1 participant