Skip to content

Commit df63e21

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#266)
Co-authored-by: github-actions[bot] <bot@openai.com>
1 parent db7e705 commit df63e21

277 files changed

Lines changed: 3825 additions & 276 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CancelRun.g.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,25 @@ partial void ProcessCancelRunResponseContent(
149149
}
150150
catch (global::System.Exception __ex)
151151
{
152+
string? __content = null;
153+
try
154+
{
155+
__content = await __response.Content.ReadAsStringAsync(
156+
#if NET5_0_OR_GREATER
157+
cancellationToken
158+
#endif
159+
).ConfigureAwait(false);
160+
}
161+
catch (global::System.Exception)
162+
{
163+
}
164+
152165
throw new global::tryAGI.OpenAI.ApiException(
153-
message: __response.ReasonPhrase ?? string.Empty,
166+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
154167
innerException: __ex,
155168
statusCode: __response.StatusCode)
156169
{
170+
ResponseBody = __content,
157171
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
158172
__response.Headers,
159173
h => h.Key,

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateMessage.g.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,25 @@ partial void ProcessCreateMessageResponseContent(
158158
}
159159
catch (global::System.Exception __ex)
160160
{
161+
string? __content = null;
162+
try
163+
{
164+
__content = await __response.Content.ReadAsStringAsync(
165+
#if NET5_0_OR_GREATER
166+
cancellationToken
167+
#endif
168+
).ConfigureAwait(false);
169+
}
170+
catch (global::System.Exception)
171+
{
172+
}
173+
161174
throw new global::tryAGI.OpenAI.ApiException(
162-
message: __response.ReasonPhrase ?? string.Empty,
175+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
163176
innerException: __ex,
164177
statusCode: __response.StatusCode)
165178
{
179+
ResponseBody = __content,
166180
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
167181
__response.Headers,
168182
h => h.Key,

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,25 @@ partial void ProcessCreateRunResponseContent(
167167
}
168168
catch (global::System.Exception __ex)
169169
{
170+
string? __content = null;
171+
try
172+
{
173+
__content = await __response.Content.ReadAsStringAsync(
174+
#if NET5_0_OR_GREATER
175+
cancellationToken
176+
#endif
177+
).ConfigureAwait(false);
178+
}
179+
catch (global::System.Exception)
180+
{
181+
}
182+
170183
throw new global::tryAGI.OpenAI.ApiException(
171-
message: __response.ReasonPhrase ?? string.Empty,
184+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
172185
innerException: __ex,
173186
statusCode: __response.StatusCode)
174187
{
188+
ResponseBody = __content,
175189
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
176190
__response.Headers,
177191
h => h.Key,

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThread.g.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,25 @@ partial void ProcessCreateThreadResponseContent(
152152
}
153153
catch (global::System.Exception __ex)
154154
{
155+
string? __content = null;
156+
try
157+
{
158+
__content = await __response.Content.ReadAsStringAsync(
159+
#if NET5_0_OR_GREATER
160+
cancellationToken
161+
#endif
162+
).ConfigureAwait(false);
163+
}
164+
catch (global::System.Exception)
165+
{
166+
}
167+
155168
throw new global::tryAGI.OpenAI.ApiException(
156-
message: __response.ReasonPhrase ?? string.Empty,
169+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
157170
innerException: __ex,
158171
statusCode: __response.StatusCode)
159172
{
173+
ResponseBody = __content,
160174
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
161175
__response.Headers,
162176
h => h.Key,

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,25 @@ partial void ProcessCreateThreadAndRunResponseContent(
152152
}
153153
catch (global::System.Exception __ex)
154154
{
155+
string? __content = null;
156+
try
157+
{
158+
__content = await __response.Content.ReadAsStringAsync(
159+
#if NET5_0_OR_GREATER
160+
cancellationToken
161+
#endif
162+
).ConfigureAwait(false);
163+
}
164+
catch (global::System.Exception)
165+
{
166+
}
167+
155168
throw new global::tryAGI.OpenAI.ApiException(
156-
message: __response.ReasonPhrase ?? string.Empty,
169+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
157170
innerException: __ex,
158171
statusCode: __response.StatusCode)
159172
{
173+
ResponseBody = __content,
160174
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
161175
__response.Headers,
162176
h => h.Key,

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteMessage.g.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,25 @@ partial void ProcessDeleteMessageResponseContent(
149149
}
150150
catch (global::System.Exception __ex)
151151
{
152+
string? __content = null;
153+
try
154+
{
155+
__content = await __response.Content.ReadAsStringAsync(
156+
#if NET5_0_OR_GREATER
157+
cancellationToken
158+
#endif
159+
).ConfigureAwait(false);
160+
}
161+
catch (global::System.Exception)
162+
{
163+
}
164+
152165
throw new global::tryAGI.OpenAI.ApiException(
153-
message: __response.ReasonPhrase ?? string.Empty,
166+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
154167
innerException: __ex,
155168
statusCode: __response.StatusCode)
156169
{
170+
ResponseBody = __content,
157171
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
158172
__response.Headers,
159173
h => h.Key,

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.DeleteThread.g.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,25 @@ partial void ProcessDeleteThreadResponseContent(
143143
}
144144
catch (global::System.Exception __ex)
145145
{
146+
string? __content = null;
147+
try
148+
{
149+
__content = await __response.Content.ReadAsStringAsync(
150+
#if NET5_0_OR_GREATER
151+
cancellationToken
152+
#endif
153+
).ConfigureAwait(false);
154+
}
155+
catch (global::System.Exception)
156+
{
157+
}
158+
146159
throw new global::tryAGI.OpenAI.ApiException(
147-
message: __response.ReasonPhrase ?? string.Empty,
160+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
148161
innerException: __ex,
149162
statusCode: __response.StatusCode)
150163
{
164+
ResponseBody = __content,
151165
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
152166
__response.Headers,
153167
h => h.Key,

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetMessage.g.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,25 @@ partial void ProcessGetMessageResponseContent(
149149
}
150150
catch (global::System.Exception __ex)
151151
{
152+
string? __content = null;
153+
try
154+
{
155+
__content = await __response.Content.ReadAsStringAsync(
156+
#if NET5_0_OR_GREATER
157+
cancellationToken
158+
#endif
159+
).ConfigureAwait(false);
160+
}
161+
catch (global::System.Exception)
162+
{
163+
}
164+
152165
throw new global::tryAGI.OpenAI.ApiException(
153-
message: __response.ReasonPhrase ?? string.Empty,
166+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
154167
innerException: __ex,
155168
statusCode: __response.StatusCode)
156169
{
170+
ResponseBody = __content,
157171
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
158172
__response.Headers,
159173
h => h.Key,

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetRun.g.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,25 @@ partial void ProcessGetRunResponseContent(
149149
}
150150
catch (global::System.Exception __ex)
151151
{
152+
string? __content = null;
153+
try
154+
{
155+
__content = await __response.Content.ReadAsStringAsync(
156+
#if NET5_0_OR_GREATER
157+
cancellationToken
158+
#endif
159+
).ConfigureAwait(false);
160+
}
161+
catch (global::System.Exception)
162+
{
163+
}
164+
152165
throw new global::tryAGI.OpenAI.ApiException(
153-
message: __response.ReasonPhrase ?? string.Empty,
166+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
154167
innerException: __ex,
155168
statusCode: __response.StatusCode)
156169
{
170+
ResponseBody = __content,
157171
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
158172
__response.Headers,
159173
h => h.Key,

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.GetRunStep.g.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,25 @@ partial void ProcessGetRunStepResponseContent(
164164
}
165165
catch (global::System.Exception __ex)
166166
{
167+
string? __content = null;
168+
try
169+
{
170+
__content = await __response.Content.ReadAsStringAsync(
171+
#if NET5_0_OR_GREATER
172+
cancellationToken
173+
#endif
174+
).ConfigureAwait(false);
175+
}
176+
catch (global::System.Exception)
177+
{
178+
}
179+
167180
throw new global::tryAGI.OpenAI.ApiException(
168-
message: __response.ReasonPhrase ?? string.Empty,
181+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
169182
innerException: __ex,
170183
statusCode: __response.StatusCode)
171184
{
185+
ResponseBody = __content,
172186
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
173187
__response.Headers,
174188
h => h.Key,

0 commit comments

Comments
 (0)