Refactor model info UI
This commit is contained in:
@@ -820,14 +820,15 @@ export class UI {
|
||||
|
||||
/**
|
||||
* _updateComposeModelLabel sets the text and hover title of the
|
||||
* compose bar's model indicator to the active provider/model.
|
||||
* footer status bar's model indicator to the active provider and model.
|
||||
* @private
|
||||
*/
|
||||
_updateComposeModelLabel() {
|
||||
const { provider, model } = this.getSelectedModel();
|
||||
const label = provider && model ? `${provider}/${model}` : '';
|
||||
const label = provider && model ? `${provider} • ${model}` : '';
|
||||
this.$composeModelLabel.textContent = label;
|
||||
this.$composeModelLabel.title = label;
|
||||
this.$composeModelLabel.hidden = !label;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user