mirror of
https://github.com/storytold/artcraft.git
synced 2026-10-20 17:02:53 -04:00
rename omni image params before widespread use (#1331)
This commit is contained in:
+3
-3
@@ -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>,
|
||||
}
|
||||
|
||||
+3
-3
@@ -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(),
|
||||
|
||||
+3
-3
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user