@@ -3127,21 +3127,21 @@ class ApiMethods {
31273127 } ;
31283128
31293129 getAIBridgeModels = async ( options : SearchParamOptions ) => {
3130- const url = getURLWithSearchParams ( "/api/v2/aibridge /models" , options ) ;
3130+ const url = getURLWithSearchParams ( "/api/v2/ai-gateway /models" , options ) ;
31313131
31323132 const response = await this . axios . get < string [ ] > ( url ) ;
31333133 return response . data ;
31343134 } ;
31353135
31363136 getAIBridgeClients = async ( options : SearchParamOptions ) => {
3137- const url = getURLWithSearchParams ( "/api/v2/aibridge /clients" , options ) ;
3137+ const url = getURLWithSearchParams ( "/api/v2/ai-gateway /clients" , options ) ;
31383138
31393139 const response = await this . axios . get < string [ ] > ( url ) ;
31403140 return response . data ;
31413141 } ;
31423142
31433143 getAIBridgeSessionList = async ( options : SearchParamOptions ) => {
3144- const url = getURLWithSearchParams ( "/api/v2/aibridge /sessions" , options ) ;
3144+ const url = getURLWithSearchParams ( "/api/v2/ai-gateway /sessions" , options ) ;
31453145 const response =
31463146 await this . axios . get < TypesGen . AIBridgeListSessionsResponse > ( url ) ;
31473147 return response . data ;
@@ -3152,7 +3152,7 @@ class ApiMethods {
31523152 options ?: { after_id ?: string ; before_id ?: string ; limit ?: number } ,
31533153 ) => {
31543154 const url = getURLWithSearchParams (
3155- `/api/v2/aibridge /sessions/${ sessionId } ` ,
3155+ `/api/v2/ai-gateway /sessions/${ sessionId } ` ,
31563156 options ,
31573157 ) ;
31583158 const response =
@@ -3203,7 +3203,7 @@ class ApiMethods {
32033203
32043204 getAIGatewayKeys = async ( ) : Promise < TypesGen . AIGatewayKey [ ] > => {
32053205 const response = await this . axios . get < TypesGen . AIGatewayKey [ ] > (
3206- "/api/v2/aibridge /keys" ,
3206+ "/api/v2/ai-gateway /keys" ,
32073207 ) ;
32083208 return response . data ;
32093209 } ;
@@ -3212,14 +3212,16 @@ class ApiMethods {
32123212 req : TypesGen . CreateAIGatewayKeyRequest ,
32133213 ) : Promise < TypesGen . CreateAIGatewayKeyResponse > => {
32143214 const response = await this . axios . post < TypesGen . CreateAIGatewayKeyResponse > (
3215- "/api/v2/aibridge /keys" ,
3215+ "/api/v2/ai-gateway /keys" ,
32163216 req ,
32173217 ) ;
32183218 return response . data ;
32193219 } ;
32203220
32213221 deleteAIGatewayKey = async ( id : string ) : Promise < void > => {
3222- await this . axios . delete ( `/api/v2/aibridge/keys/${ encodeURIComponent ( id ) } ` ) ;
3222+ await this . axios . delete (
3223+ `/api/v2/ai-gateway/keys/${ encodeURIComponent ( id ) } ` ,
3224+ ) ;
32233225 } ;
32243226}
32253227
0 commit comments