diff --git a/lib/components/fabro-llm/src/client.rs b/lib/components/fabro-llm/src/client.rs index d0e5e2927..412456ffb 100644 --- a/lib/components/fabro-llm/src/client.rs +++ b/lib/components/fabro-llm/src/client.rs @@ -16,6 +16,10 @@ use lithos_llm::types::Error; use crate::attachments::InlineLocalAttachments; use crate::error::LlmError; +/// The application name lithos reports to providers that ask, such as the +/// `originator` header on the OpenAI Codex deployment. +const APPLICATION_NAME: &str = "fabro"; + /// Default same-provider retry policy applied before visible output. /// /// Three attempts with short exponential backoff, capped at five seconds. @@ -205,6 +209,7 @@ pub async fn build_client( } let builder = Client::builder() .catalog(catalog) + .application(APPLICATION_NAME) .credentials_arc(lithos_credentials(source)) .enabled_providers(ready.iter().cloned()); let build = options.apply(builder).build()?; @@ -226,6 +231,7 @@ pub fn build_offline_client( let ready: Vec = options.adapter_providers().cloned().collect(); let builder = Client::builder() .catalog(catalog) + .application(APPLICATION_NAME) .enabled_providers(ready.iter().cloned()); let build = options.apply(builder).build()?; Ok(FabroClient {