7
7
using ManagedCode . OpenAI . API . File ;
8
8
using ManagedCode . OpenAI . API . Image ;
9
9
using ManagedCode . OpenAI . API . Moderation ;
10
-
11
10
namespace ManagedCode . OpenAI . API ;
12
11
13
12
internal class OpenAiWebClient : IOpenAiWebClient
@@ -24,7 +23,6 @@ internal class OpenAiWebClient : IOpenAiWebClient
24
23
private const string URL_IMAGE_GENERATION = "images/generations" ;
25
24
private const string URL_IMAGE_EDIT = "images/edits" ;
26
25
private const string URL_IMAGE_VARIATION = "images/variations" ;
27
-
28
26
private const string URL_FILES = "files" ;
29
27
private const string URL_FILE = "files/{0}" ;
30
28
private const string URL_FILE_CONTEXT = "files/{0}/content" ;
@@ -148,11 +146,6 @@ private TModel JsonDeserialize<TModel>(string jsonStr)
148
146
?? throw new NullReferenceException ( ) ;
149
147
}
150
148
151
- private string JsonSerialize < TModel > ( TModel model )
152
- {
153
- return JsonSerializer . Serialize ( model ) ;
154
- }
155
-
156
149
private Dictionary < StringContent , string > ToImageRequestParameters ( BaseImageRequestDto request )
157
150
{
158
151
var result = new Dictionary < StringContent , string > ( ) ;
@@ -235,8 +228,6 @@ public async Task<FileInfoDto> FileInfoAsync(string fileId)
235
228
return await ReadAsync < FileInfoDto > ( httpResponseMessage ) ;
236
229
}
237
230
238
-
239
-
240
231
// TODO: It is not known what the result of the query returns
241
232
public async Task < string > GetContentFromFileAsync ( string fileId )
242
233
{
0 commit comments