Skip to content
New issue

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

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

Already on GitHub? # to your account

Add From<ChatCompletionRequestDeveloperMessage> implementation for ChatCompletionRequestMessage #318

Merged

Conversation

keithschulze
Copy link
Contributor

@keithschulze keithschulze commented Jan 13, 2025

In trying to use the new ChatCompletionRequestDeveloperMessage added in #312, I found I couldn't use .into() to add it to messages because a From<ChatCompletionRequestDeveloperMessage> implementation for ChatCompletionRequestMessage wasn't available.

…etionRequestMessage`

Appears to have been left out of 64bit#312
@grantslatton
Copy link

#319 might supersede depending on maintainer being willing to take another dependency

Copy link
Owner

@64bit 64bit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for both contributions!

I'll happily accept both, for #319 because its adding new dependency I'd appreciate if we use the value it provides more, there are a lot of Enums in the crate and seems like derive_more::From can be applied to all of them.

@64bit 64bit merged commit a5261ed into 64bit:main Jan 18, 2025
ifsheldon pushed a commit to ifsheldon/async-openai-wasm that referenced this pull request Feb 19, 2025
…etionRequestMessage` (64bit#318)

Appears to have been left out of 64bit#312

(cherry picked from commit a5261ed)
Sevenannn pushed a commit to spiceai/async-openai that referenced this pull request Mar 4, 2025
…etionRequestMessage` (64bit#318)

Appears to have been left out of 64bit#312
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants