@if (!hiddenLabel()) {
@if (label()) { {{ label() | i18n }} } @else {
{{ 'PAC.Copilot.Models' | translate: { Default: 'Models' } }}
} @if (required()) { * }
}
@if (inheritModel()) { @if (isInherit()) { } @else if (!readonly()) { } } @else if (!isInherit() && !readonly()) { } @if (selectedCopilotWithModels(); as copilot) { @if (copilot.providerWithModels.icon_small) { } @if (selectedAiModel(); as model) {
@if (copilot.providerWithModels.icon_small) { }
{{ _copilotModel()?.model }}
@for (tag of modelDisplayTags(model); track tag.id) {
@if (tag.iconClass) { } {{ tag.defaultText }}
}
{{ _copilotModel()?.model }}
@if (showInlineSelectedModelTags(modelContainer)) { @for (tag of modelDisplayTags(model); track tag.id; let first = $first) {
@if (tag.iconClass) { } {{ tag.defaultText }}
} }
} @else {
{{ _copilotModel()?.model }}
} } @else if (__copilotModel()) {
{{ 'PAC.Copilot.ChooseRightCopilot' | translate: { Default: 'Please choose right copilot' } }} @if (__copilotModel().model) { {{ __copilotModel().modelType + '/' + __copilotModel().model }} }
} @else {
{{ 'PAC.Copilot.SelectModel' | translate: { Default: 'Select model' } }}
} @if (!readonly()) { }
@if (!readonly()) {
}
@if (modelParameterRulesError()) { }
{{ 'PAC.Copilot.Parameters' | translate: { Default: 'Parameters' } }}
@for (parameter of modelParameterRules(); track parameter.name) {
{{ parameter.label | i18n }}
}
@let menuWidth = getMenuWidth(modelContainer); @let menuRailWidth = getMenuRailWidth(menuWidth);
@if (modelFilterTags().length) {
{{ 'PAC.Copilot.ModelFilters' | translate: { Default: 'Filters' } }} @for (filter of modelFilterTags(); track filter.id) { } @if (selectedModelFilters().length) { }
}
@if ((searchedModels()?.length ?? 0) === 0) {
{{ 'PAC.Copilot.NoMatchingModels' | translate: { Default: 'No matching models' } }}
} @else {
{{ 'PAC.Copilot.Provider' | translate: { Default: 'Provider' } }}
{{ 'PAC.Copilot.Models' | translate: { Default: 'Models' } }}
@for (copilot of searchedModels(); track copilot.id) { @if (copilot.providerWithModels.icon_small) { } @else { P } {{ copilot.providerWithModels?.label | i18n }} {{ copilot.providerWithModels?.provider }} @if (copilot.name) { {{ copilot.name }} } @else { {{ 'PAC.Copilot.Role_' + copilot.role | translate: { Default: copilot.role } }} } {{ getCopilotTabModelCount(copilot) }} }
}
{{ 'PAC.Copilot.ModelConfig' | translate: { Default: 'Model config' } }}
@let showInlineTags = showInlineModelTags(menuWidth, menuRailWidth); @let visibleModels = getVisibleCopilotModels(copilot);
{{ copilot.providerWithModels?.label | i18n }} @if (copilot.name) { {{ copilot.name }} } @else { {{ 'PAC.Copilot.Role_' + copilot.role | translate: { Default: copilot.role } }} }
@for (item of visibleModels; track item.model) {
@if (copilot.providerWithModels.icon_small) { }
{{ item.model }}
@for (tag of modelDisplayTags(item); track tag.id) {
@if (tag.iconClass) { } {{ tag.defaultText }}
}
}