Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: 64bit/async-openai
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: async-openai-v0.27.1
Choose a base ref
...
head repository: 64bit/async-openai
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: async-openai-v0.27.2
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Jan 18, 2025

  1. Add impl From<ChatCompletionRequestDeveloperMessage> for `ChatCompl…

    …etionRequestMessage` (#318)
    
    Appears to have been left out of #312
    keithschulze authored Jan 18, 2025
    Copy the full SHA
    a5261ed View commit details
  2. chore: Release

    64bit committed Jan 18, 2025
    Copy the full SHA
    c48e62e View commit details
Showing with 7 additions and 1 deletion.
  1. +1 −1 async-openai/Cargo.toml
  2. +6 −0 async-openai/src/types/impls.rs
2 changes: 1 addition & 1 deletion async-openai/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "async-openai"
version = "0.27.1"
version = "0.27.2"
authors = ["Himanshu Neema"]
categories = ["api-bindings", "web-programming", "asynchronous"]
keywords = ["openai", "async", "openapi", "ai"]
6 changes: 6 additions & 0 deletions async-openai/src/types/impls.rs
Original file line number Diff line number Diff line change
@@ -553,6 +553,12 @@ impl From<ChatCompletionRequestSystemMessage> for ChatCompletionRequestMessage {
}
}

impl From<ChatCompletionRequestDeveloperMessage> for ChatCompletionRequestMessage {
fn from(value: ChatCompletionRequestDeveloperMessage) -> Self {
Self::Developer(value)
}
}

impl From<ChatCompletionRequestAssistantMessage> for ChatCompletionRequestMessage {
fn from(value: ChatCompletionRequestAssistantMessage) -> Self {
Self::Assistant(value)