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
35 changes: 15 additions & 20 deletions src/libs/Groq/Generated/Groq.AudioClient.CreateSpeech.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -363,17 +363,15 @@ partial void ProcessCreateSpeechResponseContent(
{
}

throw new global::Groq.ApiException(
throw global::Groq.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}

}
Expand Down Expand Up @@ -686,16 +684,15 @@ partial void ProcessCreateSpeechResponseContent(
}
catch (global::System.Exception __ex)
{
throw new global::Groq.ApiException(
throw global::Groq.ApiException.Create(
statusCode: __response.StatusCode,
message: __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: null,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}
else
Expand Down Expand Up @@ -730,17 +727,15 @@ partial void ProcessCreateSpeechResponseContent(
{
}

throw new global::Groq.ApiException(
throw global::Groq.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}

Expand Down
24 changes: 10 additions & 14 deletions src/libs/Groq/Generated/Groq.AudioClient.CreateTranscription.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -460,17 +460,15 @@ request.Filename is null
}
catch (global::System.Exception __ex)
{
throw new global::Groq.ApiException(
throw global::Groq.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}
else
Expand Down Expand Up @@ -507,17 +505,15 @@ request.Filename is null
{
}

throw new global::Groq.ApiException(
throw global::Groq.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}

Expand Down
24 changes: 10 additions & 14 deletions src/libs/Groq/Generated/Groq.AudioClient.CreateTranslation.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -444,17 +444,15 @@ request.Filename is null
}
catch (global::System.Exception __ex)
{
throw new global::Groq.ApiException(
throw global::Groq.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}
else
Expand Down Expand Up @@ -491,17 +489,15 @@ request.Filename is null
{
}

throw new global::Groq.ApiException(
throw global::Groq.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}

Expand Down
24 changes: 10 additions & 14 deletions src/libs/Groq/Generated/Groq.BatchClient.CancelBatch.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -356,17 +356,15 @@ partial void ProcessCancelBatchResponseContent(
}
catch (global::System.Exception __ex)
{
throw new global::Groq.ApiException(
throw global::Groq.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}
else
Expand Down Expand Up @@ -403,17 +401,15 @@ partial void ProcessCancelBatchResponseContent(
{
}

throw new global::Groq.ApiException(
throw global::Groq.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}

Expand Down
24 changes: 10 additions & 14 deletions src/libs/Groq/Generated/Groq.BatchClient.CreateBatch.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,17 +367,15 @@ partial void ProcessCreateBatchResponseContent(
}
catch (global::System.Exception __ex)
{
throw new global::Groq.ApiException(
throw global::Groq.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}
else
Expand Down Expand Up @@ -414,17 +412,15 @@ partial void ProcessCreateBatchResponseContent(
{
}

throw new global::Groq.ApiException(
throw global::Groq.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}

Expand Down
24 changes: 10 additions & 14 deletions src/libs/Groq/Generated/Groq.BatchClient.ListBatches.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -347,17 +347,15 @@ partial void ProcessListBatchesResponseContent(
}
catch (global::System.Exception __ex)
{
throw new global::Groq.ApiException(
throw global::Groq.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}
else
Expand Down Expand Up @@ -394,17 +392,15 @@ partial void ProcessListBatchesResponseContent(
{
}

throw new global::Groq.ApiException(
throw global::Groq.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
h => h.Value));
}
}

Expand Down
Loading