Include non /v1 url in check (khanon/oai-reverse-proxy!27)
This commit is contained in:
parent
d7a4829d13
commit
120b7da340
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue