adds missed change from origin header adjustment
This commit is contained in:
parent
c8b3238398
commit
6a7f64b037
|
@ -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,
|
||||
];
|
||||
|
||||
|
|
|
@ -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,
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in New Issue