File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ export const GEMINI_3_FLASH_MODEL_NAME = 'gemini-3-flash-preview';
2121export const GEMINI_3_PRO_DISPLAY_NAME = 'Gemini 3 Pro' ;
2222export const GEMINI_3_PRO_MODEL_NAME = 'gemini-3-pro-preview' ;
2323
24- import { requestAPI } from '../restAPI/utils' ;
25-
2624/**
2725 * Fetch available models from the backend API.
2826 * Returns the list of model names that are available based on enterprise mode and LiteLLM configuration.
2927 *
3028 * @returns Promise resolving to an array of model names
3129 */
3230export async function getAvailableModels ( ) : Promise < string [ ] > {
31+ // Lazy import to avoid loading JupyterLab dependencies when only constants are needed
32+ const { requestAPI } = await import ( '../restAPI/utils' ) ;
3333 const response = await requestAPI < { models : string [ ] } > ( 'available-models' , {
3434 method : 'GET'
3535 } ) ;
You can’t perform that action at this time.
0 commit comments