From 5e046b9060efb9fc98dd4a7d3ee726ec70e757e2 Mon Sep 17 00:00:00 2001 From: nai-degen <44111-khanon@users.noreply.gitgud.io> Date: Fri, 14 Apr 2023 20:19:26 -0700 Subject: [PATCH] fixes bug introduced in previous commit which prevented logging --- src/proxy/middleware/response/log-prompt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxy/middleware/response/log-prompt.ts b/src/proxy/middleware/response/log-prompt.ts index 691ea2a..9b73314 100644 --- a/src/proxy/middleware/response/log-prompt.ts +++ b/src/proxy/middleware/response/log-prompt.ts @@ -19,7 +19,7 @@ export const logPrompt: ProxyResHandlerWithBody = async ( } // Only log prompts if we're making a request to a completion endpoint - if (!req.originalUrl.startsWith(COMPLETE_ENDPOINT)) { + if (!req.originalUrl.endsWith(COMPLETE_ENDPOINT)) { return; }