Make model field optional in request types, resolve from default provider (#768)

This commit is contained in:
Adil Hafeez 2026-02-18 04:43:59 -08:00 committed by GitHub
parent 7b5f1549a5
commit baeee56f6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 61 additions and 11 deletions

View file

@ -29,6 +29,7 @@ impl TryFrom<&[u8]> for ResponsesAPIResponse {
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ResponsesAPIRequest {
/// The model to use for generating the response
#[serde(default)]
pub model: String,
/// Text, image, or file inputs to the model