File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
routes/settings/(nav)/application Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ const buildModels = async (): Promise<ProcessedModel[]> => {
308308
309309 // Use auth token from the start if available to avoid rate limiting issues
310310 // Some APIs rate-limit unauthenticated requests more aggressively
311- let response = await fetch ( `${ baseURL } /models` , {
311+ const response = await fetch ( `${ baseURL } /models` , {
312312 headers : authToken ? { Authorization : `Bearer ${ authToken } ` } : undefined ,
313313 } ) ;
314314 logger . info ( { status : response . status } , "[models] First fetch status" ) ;
Original file line number Diff line number Diff line change 2121
2222 const client = useAPIClient ();
2323
24- let OPENAI_BASE_URL: string | null = null ;
24+ let OPENAI_BASE_URL: string | null = $state ( null ) ;
2525 onMount (async () => {
2626 try {
2727 const cfg = await client .debug .config .get ().then (handleResponse );
3131 }
3232 });
3333
34- let themePref: ThemePreference = browser ? getThemePreference () : " system" ;
34+ let themePref: ThemePreference = $state ( browser ? getThemePreference () : " system" ) ;
3535
3636 // Admin: model refresh UI state
3737 let refreshing: boolean = $state (false );
8484 try {
8585 refreshing = true ;
8686 refreshMessage = null ;
87- const res = ( await client .models .refresh .post ().then (handleResponse )) as any ;
87+ const res = await client .models .refresh .post ().then (handleResponse );
8888 const delta = ` +${res .added .length } −${res .removed .length } ~${res .changed .length } ` ;
8989 refreshMessage = ` Refreshed in ${res .durationMs } ms • ${delta } • total ${res .total } ` ;
9090 await goto (page .url .pathname , { invalidateAll: true });
You can’t perform that action at this time.
0 commit comments