From 9e514ebf151f7b4103d26203e5fa1892a29f3375 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 16 Sep 2026 11:56:55 +0200 Subject: [PATCH] Close InferenceRequest::provider_model to the crate Its only caller is the SDK inference router inside the library, and no consumer names it. Co-Authored-By: Claude Opus 5 --- crates/ghostlight/src/controllers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ghostlight/src/controllers.rs b/crates/ghostlight/src/controllers.rs index 6e4b346..8f0e430 100644 --- a/crates/ghostlight/src/controllers.rs +++ b/crates/ghostlight/src/controllers.rs @@ -119,7 +119,7 @@ pub struct InferenceRequest { impl InferenceRequest { /// The model this request names, read before it is prepared. Routing is the /// one decision that has to be made on an unprepared request. - pub fn provider_model(&self) -> &str { + pub(crate) fn provider_model(&self) -> &str { &self.provider.model } }