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