Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spelling Error in Comment on Line 156 of ChatMessageContentPart.cs #265

Open
SiqiLu opened this issue Oct 24, 2024 · 1 comment
Open

Spelling Error in Comment on Line 156 of ChatMessageContentPart.cs #265

SiqiLu opened this issue Oct 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@SiqiLu
Copy link

SiqiLu commented Oct 24, 2024

Service

OpenAI

Describe the bug

In the file src/Custom/Chat/ChatMessageContentPart.cs, there is a spelling error in a comment at line 156.
The comment states: “Implicitly intantiates a new from a . As such,”
where “intantiates” should be corrected to "instantiates".

Steps to reproduce

  1. Open the file src/Custom/Chat/ChatMessageContentPart.cs.
  2. Locate the comment at line 156.

Code snippets

/// <summary>
///     Implicitly intantiates a new <see cref="ChatMessageContentPart"/> from a <see cref="string"/>. As such,
///     using a <see cref="string"/> in place of a <see cref="ChatMessageContentPart"/> is equivalent to calling the
///     <see cref="CreateTextPart(string)"/> method.
/// </summary>
/// <param name="text"> The text encapsulated by this <see cref="ChatMessageContentPart"/>. </param>
public static implicit operator ChatMessageContentPart(string text) => CreateTextPart(text);

OS

None

.NET version

.NET 8

Library version

2.0.0

@SiqiLu SiqiLu added the bug Something isn't working label Oct 24, 2024
@gromer
Copy link

gromer commented Jan 10, 2025

I submitted a PR to address this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants