11 references to OpenAIModelMappers
Microsoft.Extensions.AI.OpenAI (11)
OpenAIChatClient.cs (6)
106
var openAIChatMessages =
OpenAIModelMappers
.ToOpenAIChatMessages(chatMessages, ToolCallJsonSerializerOptions);
107
var openAIOptions =
OpenAIModelMappers
.ToOpenAIOptions(options);
112
return
OpenAIModelMappers
.FromOpenAIChatCompletion(response.Value, options);
121
var openAIChatMessages =
OpenAIModelMappers
.ToOpenAIChatMessages(chatMessages, ToolCallJsonSerializerOptions);
122
var openAIOptions =
OpenAIModelMappers
.ToOpenAIOptions(options);
127
return
OpenAIModelMappers
.FromOpenAIStreamingChatCompletionAsync(chatCompletionUpdates, cancellationToken);
OpenAIChatCompletionRequest.cs (1)
57
return
OpenAIModelMappers
.FromOpenAIChatCompletionRequest(chatCompletionOptions);
OpenAIJsonContext.cs (1)
16
[JsonSerializable(typeof(
OpenAIModelMappers
.OpenAIChatToolJson))]
OpenAISerializationHelpers.cs (3)
35
return
OpenAIModelMappers
.FromOpenAIChatCompletionRequest(openAiChatOptions);
56
OpenAI.Chat.ChatCompletion openAiChatCompletion =
OpenAIModelMappers
.ToOpenAIChatCompletion(chatCompletion, options);
79
var mappedUpdates =
OpenAIModelMappers
.ToOpenAIStreamingChatCompletionAsync(streamingChatCompletionUpdates, options, cancellationToken);