From cfa61b5e3702db4430790587ab535cb9e747ff5c Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 28 Feb 2026 06:57:09 -0500 Subject: [PATCH] remove need for credentials --- .../cost_estimate/estimate_video_cost_command.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/crates/desktop/artcraft/src/core/commands/cost_estimate/estimate_video_cost_command.rs b/crates/desktop/artcraft/src/core/commands/cost_estimate/estimate_video_cost_command.rs index 295f5d72fb..776453065d 100644 --- a/crates/desktop/artcraft/src/core/commands/cost_estimate/estimate_video_cost_command.rs +++ b/crates/desktop/artcraft/src/core/commands/cost_estimate/estimate_video_cost_command.rs @@ -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 { 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;