Upgrade async-openai (0.31.1 -> 0.32.1) and adapt, adding support for gpt-image-1.5

This commit is contained in:
Slavi Pantaleev
2025-12-21 12:23:25 +02:00
parent ae8e878817
commit 08c689a889
4 changed files with 9 additions and 5 deletions

View File

@@ -305,6 +305,7 @@ impl ControllerTrait for Controller {
// In fact, specifying the response format results in an error.
ImageModel::GptImage1 => None,
ImageModel::GptImage1Mini => None,
ImageModel::GptImage1dot5 => None,
ImageModel::Other(_) => Some(ImageResponseFormat::B64Json),
};
@@ -411,6 +412,7 @@ impl ControllerTrait for Controller {
// In fact, specifying the response format results in an error.
ImageModel::GptImage1 => None,
ImageModel::GptImage1Mini => None,
ImageModel::GptImage1dot5 => None,
ImageModel::Other(_) => Some(ImageResponseFormat::B64Json),
};