adds missed change from origin header adjustment

This commit is contained in:
nai-degen 2023-06-24 14:25:30 -05:00
parent c8b3238398
commit 6a7f64b037
2 changed files with 8 additions and 8 deletions

View File

@ -9,12 +9,12 @@ import { handleProxyError } from "./middleware/common";
import {
addKey,
addAnthropicPreamble,
blockZoomers,
blockZoomerOrigins,
createPreprocessorMiddleware,
finalizeBody,
languageFilter,
limitOutputTokens,
removeOrigin,
removeOriginHeaders,
} from "./middleware/request";
import {
ProxyResHandlerWithBody,
@ -73,10 +73,10 @@ const rewriteAnthropicRequest = (
const rewriterPipeline = [
addKey,
addAnthropicPreamble,
blockZoomers,
languageFilter,
limitOutputTokens,
removeOrigin,
blockZoomerOrigins,
removeOriginHeaders,
finalizeBody,
];

View File

@ -9,13 +9,13 @@ import { ipLimiter } from "./rate-limit";
import { handleProxyError } from "./middleware/common";
import {
addKey,
blockZoomers,
blockZoomerOrigins,
createPreprocessorMiddleware,
finalizeBody,
languageFilter,
limitCompletions,
limitOutputTokens,
removeOrigin,
removeOriginHeaders,
} from "./middleware/request";
import {
createOnProxyResHandler,
@ -92,11 +92,11 @@ const rewriteRequest = (
) => {
const rewriterPipeline = [
addKey,
blockZoomers,
languageFilter,
limitOutputTokens,
limitCompletions,
removeOrigin,
blockZoomerOrigins,
removeOriginHeaders,
finalizeBody,
];