From dd1f43a70e78c1ccc7a6b5fbbe2b680769a81885 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Wed, 17 Jan 2024 14:29:17 +0100 Subject: [PATCH] Update main.py --- ollama_proxy_server/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ollama_proxy_server/main.py b/ollama_proxy_server/main.py index 253e415..be604a2 100644 --- a/ollama_proxy_server/main.py +++ b/ollama_proxy_server/main.py @@ -96,7 +96,7 @@ def main(): if not self._validate_user_and_key(): ASCIIColors.red(f'User is not authorized') client_ip, client_port = self.client_address - self.add_access_log_entry(user="unknown", ip_address=client_ip, access="Denied", server="None", -1) + self.add_access_log_entry(event='rejected', user="unknown", ip_address=client_ip, access="Denied", server="None", nb_queued_requests_on_server=-1, error="Authentication failed") self.send_response(403) self.end_headers() return