refactor: Remove redundant method
This commit is contained in:
parent
360a5ed62b
commit
acd3c58152
|
|
@ -108,22 +108,6 @@ export class ModelsService {
|
|||
// Status
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
/**
|
||||
* Get status of a specific model (ROUTER mode)
|
||||
* @param modelId - Model identifier to check
|
||||
*/
|
||||
static async getStatus(modelId: string): Promise<ApiRouterModelsStatusResponse> {
|
||||
const response = await fetch(`${base}/models/status?model=${encodeURIComponent(modelId)}`, {
|
||||
headers: getJsonHeaders()
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(`Failed to get model status (status ${response.status})`);
|
||||
}
|
||||
|
||||
return response.json() as Promise<ApiRouterModelsStatusResponse>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a model is loaded based on its metadata
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue