From d40f104f667073f320a01d9c1a91aa88225ccaeb Mon Sep 17 00:00:00 2001 From: sigoden Date: Tue, 7 Nov 2023 11:54:56 +0800 Subject: feat: allow the use of an unlisted model (#219) --- src/client/localai.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/client/localai.rs') diff --git a/src/client/localai.rs b/src/client/localai.rs index 93853dc..9325e0f 100644 --- a/src/client/localai.rs +++ b/src/client/localai.rs @@ -68,6 +68,8 @@ impl LocalAIClient { let url = format!("{}{chat_endpoint}", self.config.api_base); + debug!("LocalAI Request: {url} {body}"); + let mut builder = client.post(url).json(&body); if let Some(api_key) = api_key { builder = builder.bearer_auth(api_key); -- cgit v1.2.3