Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdk/ai/azopenai/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
### Breaking Changes

### Bugs Fixed
- Fixed a problem that filename would be empty if not explicitly specified in the `UploadFile` operation. (PR#24171)

### Other Changes

Expand Down
2 changes: 1 addition & 1 deletion sdk/ai/azopenai/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "go",
"TagPrefix": "go/ai/azopenai",
"Tag": "go/ai/azopenai_0efed71611"
"Tag": "go/ai/azopenai_4a8ededa66"
}
2 changes: 1 addition & 1 deletion sdk/ai/azopenai/client_custom_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (client *Client) uploadFileCreateRequest(ctx context.Context, file io.ReadS
return nil, err
}
req.Raw().Header["Accept"] = []string{"application/json"}
fileName := ""
fileName := "file.txt"

if options != nil && options.Filename != nil {
fileName = *options.Filename
Expand Down