rename omni image params before widespread use (#1331)

This commit is contained in:
Brandon Thomas
2026-04-10 09:08:31 -04:00
committed by GitHub
parent 631b98f605
commit 9fee0b1c99
14 changed files with 42 additions and 42 deletions
@@ -40,11 +40,11 @@ pub struct OmniGenImageCostAndGenerateRequest {
pub image_batch_count: Option<u16>,
/// Only for angle manipulation models.
pub horizontal_angle: Option<f64>,
pub adjust_horizontal_angle: Option<f64>,
/// Only for angle manipulation models.
pub vertical_angle: Option<f64>,
pub adjust_vertical_angle: Option<f64>,
/// Only for angle manipulation models.
pub zoom: Option<f64>,
pub adjust_zoom: Option<f64>,
}
@@ -90,9 +90,9 @@ pub fn hydrate_to_router_request(
aspect_ratio,
quality,
image_batch_count: request.image_batch_count,
horizontal_angle: request.horizontal_angle,
vertical_angle: request.vertical_angle,
zoom: request.zoom,
horizontal_angle: request.adjust_horizontal_angle,
vertical_angle: request.adjust_vertical_angle,
zoom: request.adjust_zoom,
request_mismatch_mitigation_strategy: RequestMismatchMitigationStrategy::PayMoreUpgrade,
generation_mode_mismatch_strategy: None,
idempotency_token: request.idempotency_token.as_deref(),
@@ -39,9 +39,9 @@ mod tests {
aspect_ratio,
quality: None,
image_batch_count,
horizontal_angle: None,
vertical_angle: None,
zoom: None,
adjust_horizontal_angle: None,
adjust_vertical_angle: None,
adjust_zoom: None,
}
}
@@ -40,9 +40,9 @@ mod tests {
aspect_ratio,
quality: None,
image_batch_count,
horizontal_angle: None,
vertical_angle: None,
zoom: None,
adjust_horizontal_angle: None,
adjust_vertical_angle: None,
adjust_zoom: None,
}
}
@@ -39,9 +39,9 @@ mod tests {
aspect_ratio,
quality: None,
image_batch_count,
horizontal_angle: None,
vertical_angle: None,
zoom: None,
adjust_horizontal_angle: None,
adjust_vertical_angle: None,
adjust_zoom: None,
}
}
@@ -39,9 +39,9 @@ mod tests {
aspect_ratio,
quality: None,
image_batch_count,
horizontal_angle: None,
vertical_angle: None,
zoom: None,
adjust_horizontal_angle: None,
adjust_vertical_angle: None,
adjust_zoom: None,
}
}
@@ -53,9 +53,9 @@ mod tests {
aspect_ratio,
quality,
image_batch_count,
horizontal_angle: None,
vertical_angle: None,
zoom: None,
adjust_horizontal_angle: None,
adjust_vertical_angle: None,
adjust_zoom: None,
}
}
@@ -45,9 +45,9 @@ mod tests {
aspect_ratio,
quality,
image_batch_count,
horizontal_angle: None,
vertical_angle: None,
zoom: None,
adjust_horizontal_angle: None,
adjust_vertical_angle: None,
adjust_zoom: None,
}
}
@@ -43,9 +43,9 @@ mod tests {
aspect_ratio,
quality: None,
image_batch_count,
horizontal_angle: None,
vertical_angle: None,
zoom: None,
adjust_horizontal_angle: None,
adjust_vertical_angle: None,
adjust_zoom: None,
}
}
@@ -47,9 +47,9 @@ mod tests {
aspect_ratio,
quality: None,
image_batch_count,
horizontal_angle: None,
vertical_angle: None,
zoom: None,
adjust_horizontal_angle: None,
adjust_vertical_angle: None,
adjust_zoom: None,
}
}
@@ -45,9 +45,9 @@ mod tests {
aspect_ratio,
quality: None,
image_batch_count,
horizontal_angle: None,
vertical_angle: None,
zoom: None,
adjust_horizontal_angle: None,
adjust_vertical_angle: None,
adjust_zoom: None,
}
}
@@ -42,9 +42,9 @@ mod tests {
aspect_ratio,
quality: None,
image_batch_count,
horizontal_angle: None,
vertical_angle: None,
zoom: None,
adjust_horizontal_angle: None,
adjust_vertical_angle: None,
adjust_zoom: None,
}
}
@@ -41,9 +41,9 @@ mod tests {
aspect_ratio,
quality: None,
image_batch_count,
horizontal_angle: None,
vertical_angle: None,
zoom: None,
adjust_horizontal_angle: None,
adjust_vertical_angle: None,
adjust_zoom: None,
}
}
@@ -42,9 +42,9 @@ mod tests {
aspect_ratio,
quality: None,
image_batch_count,
horizontal_angle: None,
vertical_angle: None,
zoom: None,
adjust_horizontal_angle: None,
adjust_vertical_angle: None,
adjust_zoom: None,
}
}