Include non /v1 url in check (khanon/oai-reverse-proxy!27)

This commit is contained in:
Xrystallized 2023-07-19 16:00:29 +00:00 committed by khanon
parent d7a4829d13
commit 120b7da340
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ const anthropicResponseHandler: ProxyResHandlerWithBody = async (
body.proxy_note = `Prompts are logged on this proxy instance. See ${host} for more information.`;
}
if (!req.originalUrl.includes("/v1/complete")) {
if (!req.originalUrl.includes("/v1/complete") && !req.originalUrl.includes("/complete")) {
req.log.info("Transforming Anthropic response to OpenAI format");
body = transformAnthropicResponse(body);
}