File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import Providers from '../../providers';
99import { RequestContext } from './requestContext' ;
1010import { ANTHROPIC , AZURE_OPEN_AI } from '../../globals' ;
1111import { GatewayError } from '../../errors/GatewayError' ;
12- import { isValidCustomHost } from '../../middlewares/requestValidator' ;
1312
1413export class ProviderContext {
1514 constructor ( private provider : string ) {
@@ -95,10 +94,6 @@ export class ProviderContext {
9594 }
9695
9796 async getFullURL ( context : RequestContext ) : Promise < string > {
98- const customHost = context . customHost ;
99- if ( customHost && ! isValidCustomHost ( customHost , context . honoContext ) ) {
100- throw new GatewayError ( 'Invalid custom host' ) ;
101- }
10297 const baseURL = context . customHost || ( await this . getBaseURL ( context ) ) ;
10398 let url : string ;
10499 if ( context . endpoint === 'proxy' ) {
You can’t perform that action at this time.
0 commit comments