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

OpenAI Updated Assistants Schema - Small Fix #340

Open
hiibolt opened this issue Feb 28, 2025 · 2 comments
Open

OpenAI Updated Assistants Schema - Small Fix #340

hiibolt opened this issue Feb 28, 2025 · 2 comments

Comments

@hiibolt
Copy link
Contributor

hiibolt commented Feb 28, 2025

It seems that with the launch of GPT4.5 they made a minor change to some return types:

Error: Failed to retrieve assistant

Caused by:
    failed to deserialize api response: unknown variant `default-2024-08-21`, expected `auto` or `default_2024_08_21` at line 19 column 3

It looks related to this struct, with the only change being using hyphens instead of underscores.

@hiibolt
Copy link
Contributor Author

hiibolt commented Feb 28, 2025

Minimal reproducible:

#[tokio::main]
async fn main() -> Result<()> {
    let client = Client::new();

    // Initialize the assistant
    let assistant = client
        .assistants()
        .retrieve("asst_...")
        .await
        .context("Failed to retrieve assistant")?; // Panics here

    Ok(())
}

@irbull
Copy link

irbull commented Mar 1, 2025

+1, I'm hitting this too. However, their docs still mention default_2024_08_21.

https://platform.openai.com/docs/assistants/tools/file-search

ranker - Which ranker to use in determining which chunks to use. The available values are auto, which uses the latest available ranker, and default_2024_08_21.

There have been a number of problems with OpenAI in the past few days with the 4.5 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants