@if (icon()) {
provider-icon
} @if (!largeIcon()) {
{{ label() | i18n }}
}
@for (modelType of supported_model_types(); track modelType) {
{{ modelType }}
}
@if (!readonly()) { }
@if (usage(); as usage) {
{{ 'PAC.Copilot.Quota' | translate: { Default: 'Quota' } }}
@if (usage.tokenLimit) { {{ usage.tokenLimit | number }} } @else { } {{ 'PAC.Copilot.Tokens' | translate: { Default: 'Tokens' } }}
{{ 'PAC.Copilot.Remain' | translate: { Default: 'Remain' } }}: @if (usage.tokenLimit) { {{ tokenRemain() | number: '0.0-0' }} } @else { 100 } %
} @if (provider_credential_schema()) {
API-KEY
}
@if (isShowModels()) {
{{ modelCount() }} {{ 'PAC.Copilot.Models' | translate: { Default: 'Models' } }} @if (canCustomizableModel()) {
@if (!readonly()) { {{ 'PAC.Copilot.AddModel' | translate: { Default: 'Add model' } }} }
}
@for (model of customModels(); track model.id) {
@if (smallIcon()) { model-icon }
{{ model.modelName }}
@for (tag of customModelTags(model); track tag.id) {
@if (tag.iconClass) { } {{ tag.defaultText }}
}
@if (!readonly() && canCustomizableModel()) { }
} @for (model of builtinModels(); track model.model) {
model-icon
{{ model.model }}
@for (tag of builtinModelTags(model); track tag.id) {
@if (tag.iconClass) { } {{ tag.defaultText }}
}
}
} @else {
{{ 'PAC.Copilot.ShowNModels' | translate: { value: modelCount() || '', Default: 'Show ' + (modelCount() || '') + ' Models' } }}
@if (!readonly() && canCustomizableModel()) { {{ 'PAC.Copilot.AddModel' | translate: { Default: 'Add model' } }} }
} @if (loading()) { }