Comments (4)
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @trrwilson.
from azure-sdk-for-net.
I am getting the same, but I am using the library to connect to Azure OpenAI. Using Azure.AI.OpenAI.Assistants 1.0.0-beta.4
Response<OpenAIFile> uploadAssistantFileResponse = await _client.UploadFileAsync(tempFile, OpenAIFilePurpose.Assistants);
Azure.RequestFailedException: 'Additional properties are not allowed ('filename' was unexpected)
Status: 400 (Bad Request)
Content:
{
"error": {
"message": "Additional properties are not allowed ('filename' was unexpected)",
"type": "invalid_request_error",
"param": null,
"code": null
}
}Headers:
Access-Control-Allow-Origin: REDACTED
x-ms-middleware-request-id: REDACTED
X-Content-Type-Options: REDACTED
X-Request-ID: REDACTED
apim-request-id: REDACTED
Strict-Transport-Security: REDACTED
x-ms-client-request-id: efc0e964-d49f-43b4-9a01-2f99a415fc3d
x-ms-region: REDACTED
Date: Mon, 13 May 2024 22:17:22 GMT
Content-Length: 178
Content-Type: application/json'
from azure-sdk-for-net.
I'm also having issues. It seems the Files API has been updated; no longer accepts a filepath
but the actual file
.
from azure-sdk-for-net.
I created a MemoryStream and I filled it up with the binary content of the PDF, i call the method UploadFile and this time i let the default parameter value (null) for the filename but It does not work neither.
from azure-sdk-for-net.
Related Issues (20)
- DefaultAzureCredential VisualStudioCredential Requires Administrator Permissions on Developer Machine? HOT 3
- Make all credential types mockable HOT 3
- [BUG] Azure OpenAI ChatCompletionsFunctionToolCall breaking with model version 0301 (default for gpt-35-turbo) HOT 2
- [OpenAI] Update README
- [OpenAI] AudioTranscription's Write method crashes with a null reference because we customized optionality
- [OpenAI] Remove chat completions method that takes a single string as an implicit user message
- [OpenAI] Rename "User" properties in options classes to "EndUserId"
- [OpenAI] Remove uses of `required` and `init`
- [OpenAI] Remove ChatCompletionCollection
- [OpenAI] Remove doc comments
- [Feature Req] ServiceBusMessageSender should refresh maximum message size when service settings change HOT 3
- [FEATURE REQ] Controlling sample rate for specific activities HOT 2
- [QUERY] How to create a SubscriptionProperties in unit tests? HOT 3
- [OpenAI] Rename `EmbeddingOptions` to `EmbeddingGenerationOptions`
- [BUG] Update status changes to "In Progress" sometime after "Succeeded". HOT 1
- [QUERY] Azure Service Bus "Batch Receive Timeout" HOT 4
- Deployment failed; but get RequestFailedException with bad response message HOT 3
- [BUG]: CG Alert: Upgrade System.IdentityModel.Tokens.Jwt to latest version on Microsoft.Azure.WebJobs.Extensions.SignalRService namespace HOT 1
- [BUG] Using ResourceManager.CosmosDB Create container that both databaseName and containerName has space will throw DoubleEncodedException HOT 1
- OpenAI token authentication fails in AzureUSGovernment cloud HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-net.