mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 15:27:21 +00:00
Replaced the anonymous request shapes of the providers with records
This commit is contained in:
15 files changed
+111
-32
No files matched your search
@@ -28,6 +28,8 @@ public static partial class JsonTestRoots
|
||||
yield return CaseWithNamespace(typeof(ChatCompletionAPIRequest), options);
|
||||
yield return CaseWithNamespace(typeof(ResponsesAPIRequest), options);
|
||||
yield return CaseWithNamespace(typeof(ChatRequest), options);
|
||||
yield return CaseWithNamespace(typeof(EmbeddingRequest), options);
|
||||
yield return CaseWithNamespace(typeof(GoogleEmbeddingRequest), options);
|
||||
|
||||
//
|
||||
// The messages and their parts, which converters write as the type they are of:
|
||||
@@ -43,7 +45,7 @@ public static partial class JsonTestRoots
|
||||
foreach (var type in new[] { typeof(string), typeof(int), typeof(long), typeof(double), typeof(decimal), typeof(bool), typeof(Dictionary<string, object>), typeof(List<object>), typeof(JsonElement) })
|
||||
yield return Case(new(type, options), "value of a request");
|
||||
|
||||
yield return Case(new(ProviderToolAdapters.ToChatCompletionTool(JsonSampleRequests.Tool(), hostEnforcesStrict: true).GetType(), options), "tool of a Chat Completions API");
|
||||
yield return CaseWithNamespace(typeof(ChatCompletionFunctionTool), options);
|
||||
yield return CaseWithNamespace(typeof(ResponsesFunctionTool), options);
|
||||
yield return CaseWithNamespace(typeof(ResponsesFunctionCallOutputItem), options);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user