@@ -69,6 +69,16 @@ export function getModelUpdateArgs(
|
||||
return modelInfo?.updateArgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a display-friendly name for a model by its handle
|
||||
* @param handle - The full model handle (e.g., "anthropic/claude-sonnet-4-5-20250929")
|
||||
* @returns The display name (e.g., "Sonnet 4.5") if found, null otherwise
|
||||
*/
|
||||
export function getModelDisplayName(handle: string): string | null {
|
||||
const model = models.find((m) => m.handle === handle);
|
||||
return model?.label ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolve a model ID from the llm_config.model value
|
||||
* The llm_config.model is the model portion without the provider prefix
|
||||
|
||||
Reference in New Issue
Block a user