1 instantiation of OpenAIChatCompletionRequest
Microsoft.Extensions.AI.OpenAI (1)
OpenAIModelMapper.ChatMessage.cs (1)
21
return
new
()
13 references to OpenAIChatCompletionRequest
Microsoft.Extensions.AI.OpenAI (5)
OpenAIChatCompletionRequest.cs (3)
45
public sealed class Converter : JsonConverter<
OpenAIChatCompletionRequest
>
54
public override
OpenAIChatCompletionRequest
? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
66
public override void Write(Utf8JsonWriter writer,
OpenAIChatCompletionRequest
value, JsonSerializerOptions options) =>
OpenAIModelMapper.ChatMessage.cs (1)
17
public static
OpenAIChatCompletionRequest
FromOpenAIChatCompletionRequest(OpenAI.Chat.ChatCompletionOptions chatCompletionOptions)
OpenAISerializationHelpers.cs (1)
28
public static async Task<
OpenAIChatCompletionRequest
> DeserializeChatCompletionRequestAsync(
Microsoft.Extensions.AI.OpenAI.Tests (8)
OpenAISerializationTests.cs (8)
30
OpenAIChatCompletionRequest
request = await OpenAISerializationHelpers.DeserializeChatCompletionRequestAsync(stream);
63
OpenAIChatCompletionRequest
request = await OpenAISerializationHelpers.DeserializeChatCompletionRequestAsync(stream);
95
OpenAIChatCompletionRequest
? request = JsonSerializer.Deserialize<
OpenAIChatCompletionRequest
>(RequestJson);
160
OpenAIChatCompletionRequest
request = await OpenAISerializationHelpers.DeserializeChatCompletionRequestAsync(stream);
262
OpenAIChatCompletionRequest
request = await OpenAISerializationHelpers.DeserializeChatCompletionRequestAsync(stream);
354
OpenAIChatCompletionRequest
request = await OpenAISerializationHelpers.DeserializeChatCompletionRequestAsync(stream);
422
OpenAIChatCompletionRequest
request = await OpenAISerializationHelpers.DeserializeChatCompletionRequestAsync(stream);