remove need for credentials

This commit is contained in:
Brandon Thomas committed 2026-02-28 06:57:09 -05:00
1 parent 48eb0f674d
commit cfa61b5e37
1 file changed
+1 -11
@@ -17,22 +17,12 @@ impl SerializeMarker for EstimateVideoCostResponse {}
pub async fn estimate_video_cost_command(
request: EstimateVideoCostRequest,
app_env_configs: State<'_, AppEnvConfigs>,
storyteller_creds_manager: State<'_, StorytellerCredentialManager>,
) -> ResponseOrError<EstimateVideoCostResponse, EstimateVideoCostError> {
info!("estimate_video_cost_command called");
let creds = storyteller_creds_manager
.get_credentials()
.map_err(|e| CommandErrorResponseWrapper {
status: CommandErrorStatus::Unauthorized,
error_message: Some(e.to_string()),
error_type: None,
error_details: None,
})?;
let result = estimate_video_cost(
&app_env_configs.storyteller_host,
creds.as_ref(),
None, // Credentials are not required for this endpoint.
request,
)
.await;