@@ -1632,7 +1632,7 @@ export const api = {
16321632 } > ;
16331633 } ,
16341634 startOpenAiOAuthBrowser : async ( params : { model : string } ) => {
1635- const response = await fetch ( `${ getApiBase ( ) } /providers/openai/oauth/ browser/start` , {
1635+ const response = await fetch ( `${ getApiBase ( ) } /providers/openai/browser-oauth /start` , {
16361636 method : "POST" ,
16371637 headers : { "Content-Type" : "application/json" } ,
16381638 body : JSON . stringify ( {
@@ -1646,7 +1646,7 @@ export const api = {
16461646 } ,
16471647 openAiOAuthBrowserStatus : async ( state : string ) => {
16481648 const response = await fetch (
1649- `${ getApiBase ( ) } /providers/openai/oauth/ browser/status?state=${ encodeURIComponent ( state ) } ` ,
1649+ `${ getApiBase ( ) } /providers/openai/browser-oauth /status?state=${ encodeURIComponent ( state ) } ` ,
16501650 ) ;
16511651 if ( ! response . ok ) {
16521652 throw new Error ( `API error: ${ response . status } ` ) ;
@@ -1825,9 +1825,9 @@ export const api = {
18251825 } ,
18261826
18271827 // Raw config API
1828- rawConfig : ( ) => fetchJson < Types . RawConfigResponse > ( "/config /raw" ) ,
1828+ rawConfig : ( ) => fetchJson < Types . RawConfigResponse > ( "/settings /raw" ) ,
18291829 updateRawConfig : async ( content : string ) => {
1830- const response = await fetch ( `${ getApiBase ( ) } /config /raw` , {
1830+ const response = await fetch ( `${ getApiBase ( ) } /settings /raw` , {
18311831 method : "PUT" ,
18321832 headers : { "Content-Type" : "application/json" } ,
18331833 body : JSON . stringify ( { content } ) ,
0 commit comments