8 references to BinaryData
AzureFunctionsEndToEnd.ApiService (1)
Program.cs (1)
54var data = new BinaryData(Encoding.UTF8.GetBytes(RandomString(length)));
Microsoft.Extensions.AI.AzureAIInference (3)
AzureAIInferenceChatClient.cs (2)
315result.AdditionalProperties["top_k"] = new BinaryData(JsonSerializer.SerializeToUtf8Bytes(topK, AIJsonUtilities.DefaultOptions.GetTypeInfo(typeof(int)))); 329result.AdditionalProperties[prop.Key] = new BinaryData(data);
AzureAIInferenceEmbeddingGenerator.cs (1)
177result.AdditionalProperties[prop.Key] = new BinaryData(data);
Microsoft.Extensions.AI.OpenAI (2)
OpenAIChatClient.cs (1)
629new(JsonSerializer.SerializeToUtf8Bytes(
OpenAIRealtimeExtensions.cs (1)
46Parameters = new BinaryData(JsonSerializer.SerializeToUtf8Bytes(
System.Memory.Data (2)
System\BinaryData.cs (2)
72public BinaryData(byte[] data, string? mediaType) : this(data) 189public static BinaryData FromBytes(byte[] data) => new BinaryData(data);