Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Commit eaf90bc

Browse files
committed
+
1 parent 5572572 commit eaf90bc

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

ManagedCode.OpenAI/API/OpenAIWebClient.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using ManagedCode.OpenAI.API.File;
88
using ManagedCode.OpenAI.API.Image;
99
using ManagedCode.OpenAI.API.Moderation;
10-
1110
namespace ManagedCode.OpenAI.API;
1211

1312
internal class OpenAiWebClient : IOpenAiWebClient
@@ -24,7 +23,6 @@ internal class OpenAiWebClient : IOpenAiWebClient
2423
private const string URL_IMAGE_GENERATION = "images/generations";
2524
private const string URL_IMAGE_EDIT = "images/edits";
2625
private const string URL_IMAGE_VARIATION = "images/variations";
27-
2826
private const string URL_FILES = "files";
2927
private const string URL_FILE = "files/{0}";
3028
private const string URL_FILE_CONTEXT = "files/{0}/content";
@@ -148,11 +146,6 @@ private TModel JsonDeserialize<TModel>(string jsonStr)
148146
?? throw new NullReferenceException();
149147
}
150148

151-
private string JsonSerialize<TModel>(TModel model)
152-
{
153-
return JsonSerializer.Serialize(model);
154-
}
155-
156149
private Dictionary<StringContent, string> ToImageRequestParameters(BaseImageRequestDto request)
157150
{
158151
var result = new Dictionary<StringContent, string>();
@@ -235,8 +228,6 @@ public async Task<FileInfoDto> FileInfoAsync(string fileId)
235228
return await ReadAsync<FileInfoDto>(httpResponseMessage);
236229
}
237230

238-
239-
240231
// TODO: It is not known what the result of the query returns
241232
public async Task<string> GetContentFromFileAsync(string fileId)
242233
{

0 commit comments

Comments
 (0)