fix(tui): include variant in model switch notice (#34856)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
parent
674d08f9be
commit
cfd35c9354
3 changed files with 22 additions and 3 deletions
|
|
@ -26,3 +26,11 @@ export function name(
|
|||
) {
|
||||
return get(list, providerID, modelID)?.name ?? modelID
|
||||
}
|
||||
|
||||
export function formatRef(model: { providerID: string; id: string; variant?: string }) {
|
||||
return [model.providerID, model.id, model.variant].filter((value) => value !== undefined).join("/")
|
||||
}
|
||||
|
||||
export function switchLabel(model: { providerID: string; id: string; variant?: string }) {
|
||||
return `Switched model to ${formatRef(model)}`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue