Skip to content

Commit 945dd2a

Browse files
committed
fix: removed unused new HttpClient()
closes OkGoDoIt#43
1 parent e6155b4 commit 945dd2a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

OpenAI_API/Files/FilesEndpoint.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ public async Task<File> DeleteFileAsync(string fileId)
7171
/// <param name="purpose">The intendend purpose of the uploaded documents. Use "fine-tune" for Fine-tuning. This allows us to validate the format of the uploaded file.</param>
7272
public async Task<File> UploadFileAsync(string filePath, string purpose = "fine-tune")
7373
{
74-
HttpClient client = GetClient();
7574
var content = new MultipartFormDataContent
7675
{
7776
{ new StringContent(purpose), "purpose" },

0 commit comments

Comments
 (0)