nearly working! fixed enqueue

This commit is contained in:
Brandon Thomas committed 2025-07-05 21:56:16 -04:00
1 parent b53b281485
commit 9ec1358594
2 files changed
+4 -2

No files matched your search

@@ -41,9 +41,9 @@ pub async fn get_media_file(api_host: &ApiHost, media_file_token: &MediaFileToke
}
fn get_media_file_token_route(api_host: &ApiHost, media_file_token: &MediaFileToken) -> String {
let api_hostname = api_host.to_api_hostname();
let api_hostname_and_scheme = api_host.to_api_hostname_and_scheme();
let media_file_token = media_file_token.as_str();
format!("https://{}/v1/media_files/file/{}", api_hostname, media_file_token)
format!("{}/v1/media_files/file/{}", api_hostname_and_scheme, media_file_token)
}
// TODO(bt,2025-04-22): Share API definitions between client and server in common crate.
@@ -77,6 +77,8 @@ pub async fn handle_gpt_image_1_sora(
requested: request.image_media_tokens.len() as u32,
})?;
info!("Calling get media file API: {:?}", app_env_configs.storyteller_host);
let response = get_media_file(
&app_env_configs.storyteller_host,
first_image_token