Skip to content

Commit 97159bf

Browse files
committed
mito-ai: fix forbid test.only test
1 parent 6ed3b13 commit 97159bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mito-ai/src/utils/models.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ export const GEMINI_3_FLASH_MODEL_NAME = 'gemini-3-flash-preview';
2121
export const GEMINI_3_PRO_DISPLAY_NAME = 'Gemini 3 Pro';
2222
export 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
*/
3230
export 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
});

0 commit comments

Comments
 (0)