@if (icon()) {
provider-icon
} @if (!largeIcon()) {
{{ label() | i18n }}
}
@for (modelType of supported_model_types(); track modelType) {
{{ modelType }}
}
@if (!readonly()) { }
@if (usage(); as usage) {
{{ 'XP.Copilot.Quota' | translate: { Default: 'Quota' } }}
@if (usage.tokenLimit) { {{ usage.tokenLimit | number }} } @else { ∞ } {{ 'XP.Copilot.Tokens' | translate: { Default: 'Tokens' } }}
{{ 'XP.Copilot.Remain' | translate: { Default: 'Remain' } }}: @if (usage.tokenLimit) { {{ tokenRemain() | number: '0.0-0' }} } @else { 100 } %
} @if (provider_credential_schema()) {
API-KEY
}
@if (isShowModels()) {
{{ modelCount() }} {{ 'XP.Copilot.Models' | translate: { Default: 'Models' } }}
@for (model of modelRows(); track model.key) {
@if (smallIcon()) { model-icon }
{{ model.name }}
{{ 'XP.Copilot.Discovery.ModelSource.' + model.source | translate }} @if (model.configuredModel && !modelAvailable(model.configuredModel)) { {{ 'XP.Copilot.Discovery.NotReturned' | translate }} } @for (tag of model.tags; track tag.id) {
@if (tag.iconClass) { } {{ tag.defaultText }}
}
@if (model.configuredModel && !readonly() && canCustomizableModel()) { }
}
} @else {
{{ 'XP.Copilot.ShowNModels' | translate: { value: modelCount() || '', Default: 'Show ' + (modelCount() || '') + ' Models' } }}
} @if (!readonly() && canCustomizableModel()) {
@if (discoverySupported()) { }
}
@if (loading()) { }