Skip to content

Commit f49d03d

Browse files
authored
Fix typo
1 parent 60ac9cf commit f49d03d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIChatClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ internal static ChatTool ToOpenAIChatTool(AIFunctionDeclaration aiFunction, Chat
160160
input.Role == OpenAIClientExtensions.ChatRoleDeveloper)
161161
{
162162
var parts = ToOpenAIChatContent(input.Contents);
163-
string? name = SantizeAuthorName(input.AuthorName);
163+
string? name = SanitizeAuthorName(input.AuthorName);
164164
yield return
165165
input.Role == ChatRole.System ? new SystemChatMessage(parts) { ParticipantName = name } :
166166
input.Role == OpenAIClientExtensions.ChatRoleDeveloper ? new DeveloperChatMessage(parts) { ParticipantName = name } :
@@ -237,7 +237,7 @@ internal static ChatTool ToOpenAIChatTool(AIFunctionDeclaration aiFunction, Chat
237237
new(ChatMessageContentPart.CreateTextPart(string.Empty));
238238
}
239239

240-
message.ParticipantName = SantizeAuthorName(input.AuthorName);
240+
message.ParticipantName = SanitizeAuthorName(input.AuthorName);
241241
message.Refusal = refusal;
242242

243243
yield return message;
@@ -758,7 +758,7 @@ internal static void ConvertContentParts(ChatMessageContent content, IList<AICon
758758
};
759759

760760
/// <summary>Sanitizes the author name to be appropriate for including as an OpenAI participant name.</summary>
761-
private static string? SantizeAuthorName(string? name)
761+
private static string? SanitizeAuthorName(string? name)
762762
{
763763
if (name is not null)
764764
{

0 commit comments

Comments
 (0)