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
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ partial void ProcessChatAsStreamResponse(
yield break;
}

var __streamedResponse = global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::Writer.ChatCompletionChunk>), JsonSerializerContext) as global::System.Collections.Generic.IList<global::Writer.ChatCompletionChunk> ??
var __streamedResponse = (global::System.Collections.Generic.IList<global::Writer.ChatCompletionChunk>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::Writer.ChatCompletionChunk>), JsonSerializerContext) ??
throw new global::Writer.ApiException(
message: $"Response deserialization failed for \"{__content}\" ",
statusCode: __response.StatusCode)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ partial void ProcessCompletionsAsStreamResponse(
yield break;
}

var __streamedResponse = global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::Writer.StreamingData>), JsonSerializerContext) as global::System.Collections.Generic.IList<global::Writer.StreamingData> ??
var __streamedResponse = (global::System.Collections.Generic.IList<global::Writer.StreamingData>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::Writer.StreamingData>), JsonSerializerContext) ??
throw new global::Writer.ApiException(
message: $"Response deserialization failed for \"{__content}\" ",
statusCode: __response.StatusCode)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ partial void ProcessGenerateContentAsStreamResponse(
yield break;
}

var __streamedResponse = global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::Writer.GenerateApplicationResponseChunk>), JsonSerializerContext) as global::System.Collections.Generic.IList<global::Writer.GenerateApplicationResponseChunk> ??
var __streamedResponse = (global::System.Collections.Generic.IList<global::Writer.GenerateApplicationResponseChunk>?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList<global::Writer.GenerateApplicationResponseChunk>), JsonSerializerContext) ??
throw new global::Writer.ApiException(
message: $"Response deserialization failed for \"{__content}\" ",
statusCode: __response.StatusCode)
Expand Down