From 0319b24585bb2b5cab4b700e014c24bfd69135d6 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Wed, 9 Sep 2026 22:42:00 -0600 Subject: [PATCH] Name fabro as the application on the model client lithos-llm sends the application name as the codex `originator` header, so the OpenAI Codex deployment can tell which harness a request came from. Co-Authored-By: Claude Fable 5.1 --- lib/components/fabro-llm/src/client.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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 {