GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #4165 from lidge-jun/lane-b/4-1711 · lidge-jun/opencodex@27836a0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • gui/src
    • i18n
      • de.ts
      • en.ts
      • fr.ts
      • ja.ts
      • ko.ts
      • ru.ts
      • tr.ts
      • zh-TW.ts
      • zh.ts
    • pages
      • Models.tsx
      • models-shared.ts
  • scripts/test-layout
    • layout.json
  • src
    • codex/catalog
      • parsing.ts
      • provider-fetch.ts
      • sync.ts
    • combos
      • index.ts
      • resolve.ts
    • server/management
      • model-rows.ts
  • tests
    • codex-integration
      • catalog-zero-credit-picker.test.ts
    • fixtures
      • test-layout-expected.json
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎gui/src/i18n/de.ts‎

Copy file name to clipboardExpand all lines: gui/src/i18n/de.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,8 @@ export const de: Record<TKey, string> = {
647647
"models.discoveryFailedProvider": "Der Anbieter meldete einen Fehler bei der Modellerkennung.",
648648
"models.discoveryFailedGeneric": "Die Modellerkennung ist fehlgeschlagen.",
649649
"models.openProviderSettings": "Anbietereinstellungen öffnen",
650+
"models.inactiveNoCredit": "Kein Guthaben",
651+
"models.inactiveNoCreditHint": "Alle Anbieter hinter diesem Eintrag haben gerade kein Guthaben, eine Anfrage würde also fehlschlagen. Der Eintrag bleibt gelistet und ist wieder nutzbar, sobald das Guthaben zurückgesetzt oder aufgeladen wird.",
650652
"models.discoveryFailedDependency": "Die Modellsuche ist für diesen Anbieter aktiv. Solange sie fehlschlägt, schalte „{control}“ in den Anbietereinstellungen aus, um stattdessen manuell hinzugefügte oder statische Modelle zu nutzen.",
651653
"models.loading": "Lädt…",
652654
"models.search": "Modelle suchen…",
Collapse file

‎gui/src/i18n/en.ts‎

Copy file name to clipboardExpand all lines: gui/src/i18n/en.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,8 @@ export const en = {
676676
"models.discoveryFailedProvider": "The provider reported a model discovery error.",
677677
"models.discoveryFailedGeneric": "Model discovery failed.",
678678
"models.openProviderSettings": "Open provider settings",
679+
"models.inactiveNoCredit": "No credit",
680+
"models.inactiveNoCreditHint": "Every provider behind this entry is out of credit right now, so a request would fail. It stays listed and becomes usable again when credit resets or is topped up.",
679681
"models.discoveryFailedDependency": "Model discovery is on for this provider. While it keeps failing, turn off “{control}” in provider settings to use manually added or static models instead.",
680682
"models.loading": "Loading…",
681683
"models.search": "Search models…",
Collapse file

‎gui/src/i18n/fr.ts‎

Copy file name to clipboardExpand all lines: gui/src/i18n/fr.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,8 @@ export const fr: Record<TKey, string> = {
661661
"models.discoveryFailedProvider": "Le fournisseur a signalé une erreur de détection des modèles.",
662662
"models.discoveryFailedGeneric": "Échec de la détection des modèles.",
663663
"models.openProviderSettings": "Ouvrir les paramètres du fournisseur",
664+
"models.inactiveNoCredit": "Aucun crédit",
665+
"models.inactiveNoCreditHint": "Tous les fournisseurs derrière cette entrée sont à court de crédit ; une requête échouerait. L’entrée reste listée et redevient utilisable une fois le crédit réinitialisé ou rechargé.",
664666
"models.discoveryFailedDependency": "La découverte de modèles est activée pour ce fournisseur. Tant qu’elle échoue, désactivez « {control} » dans les paramètres du fournisseur pour utiliser à la place les modèles ajoutés manuellement ou statiques.",
665667
"models.loading": "Chargement…",
666668
"models.search": "Rechercher des modèles…",
Collapse file

‎gui/src/i18n/ja.ts‎

Copy file name to clipboardExpand all lines: gui/src/i18n/ja.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,8 @@ export const ja: Record<TKey, string> = {
605605
"models.discoveryFailedProvider": "プロバイダーがモデル検出エラーを報告しました。",
606606
"models.discoveryFailedGeneric": "モデル検出に失敗しました。",
607607
"models.openProviderSettings": "プロバイダー設定を開く",
608+
"models.inactiveNoCredit": "クレジットなし",
609+
"models.inactiveNoCreditHint": "このエントリの背後にあるプロバイダーはすべて現在クレジットがないため、リクエストは失敗します。一覧には残り、クレジットがリセットまたは追加されれば再び使えます。",
608610
"models.discoveryFailedDependency": "このプロバイダーではモデル検出が有効です。失敗が続く間は、プロバイダー設定で「{control}」をオフにすると、手動で追加したモデルや静的モデルを使えます。",
609611
"models.loading": "読み込み中…",
610612
"models.search": "モデルを検索…",
Collapse file

‎gui/src/i18n/ko.ts‎

Copy file name to clipboardExpand all lines: gui/src/i18n/ko.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,8 @@ export const ko: Record<TKey, string> = {
658658
"models.discoveryFailedProvider": "프로바이더가 모델 검색 오류를 보고했습니다.",
659659
"models.discoveryFailedGeneric": "모델 검색에 실패했습니다.",
660660
"models.openProviderSettings": "프로바이더 설정 열기",
661+
"models.inactiveNoCredit": "크레딧 없음",
662+
"models.inactiveNoCreditHint": "이 항목이 쓰는 프로바이더가 모두 크레딧이 없어서 지금 요청하면 실패해요. 목록에는 그대로 남고, 크레딧이 초기화되거나 충전되면 다시 쓸 수 있어요.",
661663
"models.discoveryFailedDependency": "이 프로바이더는 모델 검색이 켜져 있어요. 계속 실패한다면 프로바이더 설정에서 ‘{control}’을 꺼야 직접 추가한 모델이나 정적 모델을 쓸 수 있어요.",
662664
"models.loading": "불러오는 중…",
663665
"models.search": "모델 검색…",
Collapse file

‎gui/src/i18n/ru.ts‎

Copy file name to clipboardExpand all lines: gui/src/i18n/ru.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,8 @@ export const ru: Record<TKey, string> = {
660660
"models.discoveryFailedProvider": "Провайдер сообщил об ошибке обнаружения моделей.",
661661
"models.discoveryFailedGeneric": "Не удалось обнаружить модели.",
662662
"models.openProviderSettings": "Открыть настройки провайдера",
663+
"models.inactiveNoCredit": "Нет кредитов",
664+
"models.inactiveNoCreditHint": "У всех провайдеров этой записи сейчас закончились кредиты, поэтому запрос завершится ошибкой. Запись остаётся в списке и снова заработает после сброса или пополнения кредитов.",
663665
"models.discoveryFailedDependency": "Обнаружение моделей включено для этого провайдера. Пока оно не работает, отключите «{control}» в настройках провайдера, чтобы использовать вручную добавленные или статические модели.",
664666
"models.loading": "Загрузка…",
665667
"models.search": "Поиск моделей…",
Collapse file

‎gui/src/i18n/tr.ts‎

Copy file name to clipboardExpand all lines: gui/src/i18n/tr.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,8 @@ export const tr: Record<TKey, string> = {
663663
"models.discoveryFailedProvider": "Sağlayıcı bir model keşfi hatası bildirdi.",
664664
"models.discoveryFailedGeneric": "Model keşfi başarısız oldu.",
665665
"models.openProviderSettings": "Sağlayıcı ayarlarını aç",
666+
"models.inactiveNoCredit": "Kredi yok",
667+
"models.inactiveNoCreditHint": "Bu girdinin arkasındaki tüm sağlayıcıların kredisi şu anda bitmiş durumda, bu yüzden istek başarısız olur. Girdi listede kalır ve kredi sıfırlandığında veya yüklendiğinde yeniden kullanılabilir.",
666668
"models.discoveryFailedDependency": "Bu sağlayıcı için model keşfi açık. Başarısız olmaya devam ettiği sürece, elle eklenen veya statik modelleri kullanmak için sağlayıcı ayarlarından „{control}“ seçeneğini kapatın.",
667669
"models.loading": "Yükleniyor…",
668670
"models.search": "Modellerde ara…",
Collapse file

‎gui/src/i18n/zh-TW.ts‎

Copy file name to clipboardExpand all lines: gui/src/i18n/zh-TW.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,8 @@ export const zhTW: Record<TKey, string> = {
524524
"models.discoveryFailedProvider": "供應商報告了模型發現錯誤。",
525525
"models.discoveryFailedGeneric": "模型發現失敗。",
526526
"models.openProviderSettings": "開啟供應商設定",
527+
"models.inactiveNoCredit": "無額度",
528+
"models.inactiveNoCreditHint": "此項目背後的供應商目前都沒有額度,送出請求會失敗。項目仍會列出,額度重置或儲值後即可繼續使用。",
527529
"models.discoveryFailedDependency": "此供應商已開啟模型探索。若持續失敗,可在供應商設定中關閉「{control}」,改用手動新增的模型或靜態模型。",
528530
"models.loading": "載入中…",
529531
"models.search": "搜尋模型…",
Collapse file

‎gui/src/i18n/zh.ts‎

Copy file name to clipboardExpand all lines: gui/src/i18n/zh.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,8 @@ export const zh: Record<TKey, string> = {
655655
"models.discoveryFailedProvider": "提供方报告了模型发现错误。",
656656
"models.discoveryFailedGeneric": "模型发现失败。",
657657
"models.openProviderSettings": "打开提供方设置",
658+
"models.inactiveNoCredit": "无额度",
659+
"models.inactiveNoCreditHint": "该条目背后的提供方当前都没有额度,请求会失败。条目仍会列出,额度重置或充值后即可继续使用。",
658660
"models.discoveryFailedDependency": "该提供方已开启模型发现。若持续失败,可在提供方设置中关闭“{control}”,改用手动添加的模型或静态模型。",
659661
"models.loading": "加载中…",
660662
"models.search": "搜索模型…",
Collapse file

‎gui/src/pages/Models.tsx‎

Copy file name to clipboardExpand all lines: gui/src/pages/Models.tsx
+9-1Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,15 @@ export default function Models({ apiBase, restartEpoch = 0 }: { apiBase: string;
17241724
>
17251725
<div className="row models-model-row">
17261726
<Switch on={!off} onClick={() => void applyVisibility("models", provider, [{ id: m.id, native: m.native === true }], off)} disabled={busy || m.initialSelectionPending} label={m.native ? m.id : m.namespaced} />
1727-
{m.initialSelectionPending && <span className="models-chip muted" role="status">{t("models.initialSelectionPending")}</span>}
1727+
{m.initialSelectionPending && <span className="models-chip muted" role="status">{t("models.initialSelectionPending")}</span>}
1728+
{/* #1711: listed and selectable, but every usable target is out of credit.
1729+
Not a visibility change and not the operator's disable flag — the row is
1730+
still offered, which is what the issue asks for. */}
1731+
{m.quotaInactiveReason === "no_credit" && (
1732+
<span className="models-chip muted" role="status" title={t("models.inactiveNoCreditHint")}>
1733+
{t("models.inactiveNoCredit")}
1734+
</span>
1735+
)}
17281736
{aliases.models[provider]?.[m.id] && <strong className="mono text-control">{aliases.models[provider][m.id].alias}</strong>}
17291737
<span className="models-model-identity">
17301738
<code className="mono text-control" style={{ color: off ? "var(--faint)" : "var(--text)", textDecoration: off ? "line-through" : "none" }}>{m.native ? modelLabel(m.id) : m.namespaced}</code>

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.