fixes bug introduced in previous commit which prevented logging

This commit is contained in:
nai-degen 2023-04-14 20:19:26 -07:00
parent 34ed165a6f
commit 5e046b9060
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}