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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,27 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js
}

var __score0 = 0;
if (__jsonProps.Contains("type")) __score0++;
if (__jsonProps.Contains("file_id")) __score0++;
if (__jsonProps.Contains("index")) __score0++;
if (__jsonProps.Contains("filename")) __score0++;
if (__jsonProps.Contains("index")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("url")) __score1++;
if (__jsonProps.Contains("start_index")) __score1++;
if (__jsonProps.Contains("end_index")) __score1++;
if (__jsonProps.Contains("start_index")) __score1++;
if (__jsonProps.Contains("title")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("url")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("type")) __score2++;
if (__jsonProps.Contains("container_id")) __score2++;
if (__jsonProps.Contains("file_id")) __score2++;
if (__jsonProps.Contains("start_index")) __score2++;
if (__jsonProps.Contains("end_index")) __score2++;
if (__jsonProps.Contains("file_id")) __score2++;
if (__jsonProps.Contains("filename")) __score2++;
if (__jsonProps.Contains("start_index")) __score2++;
if (__jsonProps.Contains("type")) __score2++;
var __score3 = 0;
if (__jsonProps.Contains("type")) __score3++;
if (__jsonProps.Contains("file_id")) __score3++;
if (__jsonProps.Contains("index")) __score3++;
if (__jsonProps.Contains("type")) __score3++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ public class AnnotationsItem3JsonConverter : global::System.Text.Json.Serializat
}

var __score0 = 0;
if (__jsonProps.Contains("type")) __score0++;
if (__jsonProps.Contains("source")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("source")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ public class ApplyPatchOperationParamJsonConverter : global::System.Text.Json.Se
}

var __score0 = 0;
if (__jsonProps.Contains("type")) __score0++;
if (__jsonProps.Contains("path")) __score0++;
if (__jsonProps.Contains("diff")) __score0++;
if (__jsonProps.Contains("path")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("path")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("type")) __score2++;
if (__jsonProps.Contains("path")) __score2++;
if (__jsonProps.Contains("diff")) __score2++;
if (__jsonProps.Contains("path")) __score2++;
if (__jsonProps.Contains("type")) __score2++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial
var __score2 = 0;
var __score3 = 0;
var __score4 = 0;
if (__jsonProps.Contains("event")) __score4++;
if (__jsonProps.Contains("data")) __score4++;
if (__jsonProps.Contains("event")) __score4++;
var __score5 = 0;
if (__jsonProps.Contains("event")) __score5++;
if (__jsonProps.Contains("data")) __score5++;
if (__jsonProps.Contains("event")) __score5++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex
var __score2 = 0;
if (__jsonProps.Contains("type")) __score2++;
var __score3 = 0;
if (__jsonProps.Contains("type")) __score3++;
if (__jsonProps.Contains("json_schema")) __score3++;
if (__jsonProps.Contains("type")) __score3++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js

var __score0 = 0;
var __score1 = 0;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("function")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ public class ChatCompletionMessageToolCallsItemJsonConverter : global::System.Te
}

var __score0 = 0;
if (__jsonProps.Contains("function")) __score0++;
if (__jsonProps.Contains("id")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
if (__jsonProps.Contains("function")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("custom")) __score1++;
if (__jsonProps.Contains("id")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("custom")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ public class ChatCompletionRequestAssistantMessageContentPartJsonConverter : glo
}

var __score0 = 0;
if (__jsonProps.Contains("type")) __score0++;
if (__jsonProps.Contains("text")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("refusal")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,32 +28,32 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso

var __score0 = 0;
if (__jsonProps.Contains("content")) __score0++;
if (__jsonProps.Contains("role")) __score0++;
if (__jsonProps.Contains("name")) __score0++;
if (__jsonProps.Contains("role")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("content")) __score1++;
if (__jsonProps.Contains("role")) __score1++;
if (__jsonProps.Contains("name")) __score1++;
if (__jsonProps.Contains("role")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("content")) __score2++;
if (__jsonProps.Contains("role")) __score2++;
if (__jsonProps.Contains("name")) __score2++;
if (__jsonProps.Contains("role")) __score2++;
var __score3 = 0;
if (__jsonProps.Contains("audio")) __score3++;
if (__jsonProps.Contains("content")) __score3++;
if (__jsonProps.Contains("function_call")) __score3++;
if (__jsonProps.Contains("name")) __score3++;
if (__jsonProps.Contains("refusal")) __score3++;
if (__jsonProps.Contains("role")) __score3++;
if (__jsonProps.Contains("name")) __score3++;
if (__jsonProps.Contains("audio")) __score3++;
if (__jsonProps.Contains("tool_calls")) __score3++;
if (__jsonProps.Contains("function_call")) __score3++;
var __score4 = 0;
if (__jsonProps.Contains("role")) __score4++;
if (__jsonProps.Contains("content")) __score4++;
if (__jsonProps.Contains("role")) __score4++;
if (__jsonProps.Contains("tool_call_id")) __score4++;
var __score5 = 0;
if (__jsonProps.Contains("role")) __score5++;
if (__jsonProps.Contains("content")) __score5++;
if (__jsonProps.Contains("name")) __score5++;
if (__jsonProps.Contains("role")) __score5++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public class ChatCompletionRequestSystemMessageContentPartJsonConverter : global
}

var __score0 = 0;
if (__jsonProps.Contains("type")) __score0++;
if (__jsonProps.Contains("text")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public class ChatCompletionRequestToolMessageContentPartJsonConverter : global::
}

var __score0 = 0;
if (__jsonProps.Contains("type")) __score0++;
if (__jsonProps.Contains("text")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global::
}

var __score0 = 0;
if (__jsonProps.Contains("type")) __score0++;
if (__jsonProps.Contains("text")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("image_url")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("type")) __score2++;
if (__jsonProps.Contains("input_audio")) __score2++;
if (__jsonProps.Contains("type")) __score2++;
var __score3 = 0;
if (__jsonProps.Contains("type")) __score3++;
if (__jsonProps.Contains("file")) __score3++;
if (__jsonProps.Contains("type")) __score3++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J

var __score0 = 0;
var __score1 = 0;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("allowed_tools")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("type")) __score2++;
if (__jsonProps.Contains("function")) __score2++;
if (__jsonProps.Contains("type")) __score2++;
var __score3 = 0;
if (__jsonProps.Contains("type")) __score3++;
if (__jsonProps.Contains("custom")) __score3++;
if (__jsonProps.Contains("type")) __score3++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public class ChunkingStrategyRequestParamJsonConverter : global::System.Text.Jso
var __score0 = 0;
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("static")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,35 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio
}

var __score0 = 0;
if (__jsonProps.Contains("type")) __score0++;
if (__jsonProps.Contains("button")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
if (__jsonProps.Contains("x")) __score0++;
if (__jsonProps.Contains("y")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("x")) __score1++;
if (__jsonProps.Contains("y")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("type")) __score2++;
if (__jsonProps.Contains("path")) __score2++;
if (__jsonProps.Contains("type")) __score2++;
var __score3 = 0;
if (__jsonProps.Contains("type")) __score3++;
if (__jsonProps.Contains("keys")) __score3++;
if (__jsonProps.Contains("type")) __score3++;
var __score4 = 0;
if (__jsonProps.Contains("type")) __score4++;
if (__jsonProps.Contains("x")) __score4++;
if (__jsonProps.Contains("y")) __score4++;
var __score5 = 0;
if (__jsonProps.Contains("type")) __score5++;
var __score6 = 0;
if (__jsonProps.Contains("scroll_x")) __score6++;
if (__jsonProps.Contains("scroll_y")) __score6++;
if (__jsonProps.Contains("type")) __score6++;
if (__jsonProps.Contains("x")) __score6++;
if (__jsonProps.Contains("y")) __score6++;
if (__jsonProps.Contains("scroll_x")) __score6++;
if (__jsonProps.Contains("scroll_y")) __score6++;
var __score7 = 0;
if (__jsonProps.Contains("type")) __score7++;
if (__jsonProps.Contains("text")) __score7++;
if (__jsonProps.Contains("type")) __score7++;
var __score8 = 0;
if (__jsonProps.Contains("type")) __score8++;
var __bestScore = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J
}

var __score0 = 0;
if (__jsonProps.Contains("type")) __score0++;
if (__jsonProps.Contains("id")) __score0++;
if (__jsonProps.Contains("call_id")) __score0++;
if (__jsonProps.Contains("acknowledged_safety_checks")) __score0++;
if (__jsonProps.Contains("call_id")) __score0++;
if (__jsonProps.Contains("id")) __score0++;
if (__jsonProps.Contains("output")) __score0++;
if (__jsonProps.Contains("status")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("id")) __score1++;
var __bestScore = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,41 +27,41 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization.
}

var __score0 = 0;
if (__jsonProps.Contains("type")) __score0++;
if (__jsonProps.Contains("text")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("text")) __score1++;
if (__jsonProps.Contains("annotations")) __score1++;
if (__jsonProps.Contains("logprobs")) __score1++;
if (__jsonProps.Contains("text")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("type")) __score2++;
if (__jsonProps.Contains("text")) __score2++;
if (__jsonProps.Contains("type")) __score2++;
var __score3 = 0;
if (__jsonProps.Contains("type")) __score3++;
if (__jsonProps.Contains("text")) __score3++;
if (__jsonProps.Contains("type")) __score3++;
var __score4 = 0;
if (__jsonProps.Contains("type")) __score4++;
if (__jsonProps.Contains("text")) __score4++;
if (__jsonProps.Contains("type")) __score4++;
var __score5 = 0;
if (__jsonProps.Contains("type")) __score5++;
if (__jsonProps.Contains("refusal")) __score5++;
if (__jsonProps.Contains("type")) __score5++;
var __score6 = 0;
if (__jsonProps.Contains("type")) __score6++;
if (__jsonProps.Contains("image_url")) __score6++;
if (__jsonProps.Contains("file_id")) __score6++;
if (__jsonProps.Contains("detail")) __score6++;
if (__jsonProps.Contains("file_id")) __score6++;
if (__jsonProps.Contains("image_url")) __score6++;
if (__jsonProps.Contains("type")) __score6++;
var __score7 = 0;
if (__jsonProps.Contains("type")) __score7++;
if (__jsonProps.Contains("image_url")) __score7++;
if (__jsonProps.Contains("file_id")) __score7++;
if (__jsonProps.Contains("detail")) __score7++;
if (__jsonProps.Contains("file_id")) __score7++;
if (__jsonProps.Contains("image_url")) __score7++;
if (__jsonProps.Contains("type")) __score7++;
var __score8 = 0;
if (__jsonProps.Contains("type")) __score8++;
if (__jsonProps.Contains("file_id")) __score8++;
if (__jsonProps.Contains("filename")) __score8++;
if (__jsonProps.Contains("file_data")) __score8++;
if (__jsonProps.Contains("file_id")) __score8++;
if (__jsonProps.Contains("file_url")) __score8++;
if (__jsonProps.Contains("filename")) __score8++;
if (__jsonProps.Contains("type")) __score8++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ public class ContentItem4JsonConverter : global::System.Text.Json.Serialization.
}

var __score0 = 0;
if (__jsonProps.Contains("type")) __score0++;
if (__jsonProps.Contains("text")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("text")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Loading