Skip to content

Commit

Permalink
Nicer fine-tune model names across the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Mar 3, 2025
1 parent 81965ab commit fb03724
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/web_ui/src/lib/stores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,17 @@ export function model_name(
return model.name
}

// Find the model in the available models list which has fine-tunes and custom models
const available_model = get(available_models) || {}
for (const provider of available_model) {
const models = provider.models || []
for (const model of models) {
if (model.id === model_id && model.name) {
return model.name
}
}
}

return "Model ID: " + model_id
}

Expand Down

0 comments on commit fb03724

Please sign in to comment.