GeezerVison is showing github.com — chore(go): retire Union Alpha (#49718) · jtrag/opencode@a7f2373
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: packages/console/app/src/component/go-models.ts -9Lines changed: 0 additions & 9 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -50,13 +50,4 @@ export const goModels = [ | 50 | 50 | allowance: 60, | 51 | 51 | regions: true, | 52 | 52 | }, | 53 | | - { | 54 | | - id: "union-alpha", | 55 | | - name: "Union Alpha Free", | 56 | | - requests: Infinity, | 57 | | - allowance: Infinity, | 58 | | - featured: true, | 59 | | - fresh: true, | 60 | | - unlimited: true, | 61 | | - }, | 62 | 53 | ].sort((a, b) => a.requests - b.requests) |
Collapse file Copy file name to clipboardExpand all lines: packages/console/app/src/component/limits-graph.css -5Lines changed: 0 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 144 | 144 | } | 145 | 145 | } | 146 | 146 |
| 147 | | - [data-slot="model-row"][data-unlimited] :is([data-slot="requests"], [data-slot="allowance"]) bdi { | 148 | | - font-size: 1.5rem; | 149 | | - line-height: 1; | 150 | | - } | 151 | | - | 152 | 147 | [data-slot="currency"] { | 153 | 148 | color: var(--color-text-weak); | 154 | 149 | } | |
Collapse file Copy file name to clipboardExpand all lines: packages/console/app/src/component/limits-graph.tsx +17-55Lines changed: 17 additions & 55 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,11 +5,9 @@ import { useLanguage } from "~/context/language" | 5 | 5 | import { goModels } from "./go-models" | 6 | 6 |
| 7 | 7 | // Compress the request range, with the same domain in both views. | 8 | | -const max = Math.max(...goModels.filter((model) => Number.isFinite(model.requests)).map((model) => model.requests)) | | 8 | +const max = Math.max(...goModels.map((model) => model.requests)) | 9 | 9 | const position = (requests: number) => | 10 | | - Number.isFinite(requests) | 11 | | - ? 4 + Math.pow(Math.log10(Math.max(requests / 100, 1)) / Math.log10(max / 100), 2.2) * 88 | 12 | | - : 100 | | 10 | + 4 + Math.pow(Math.log10(Math.max(requests / 100, 1)) / Math.log10(max / 100), 2.2) * 96 | 13 | 11 | const ticks = [100, 1000, 10000, 40000] | 14 | 12 |
| 15 | 13 | export function LimitsGraph(props: { href: string }) { | @@ -76,13 +74,7 @@ export function LimitsGraph(props: { href: string }) { | 76 | 74 | <div role="rowgroup" data-slot="rows"> | 77 | 75 | <For each={models()}> | 78 | 76 | {(model, index) => ( | 79 | | - <div | 80 | | - role="row" | 81 | | - data-slot="model-row" | 82 | | - data-model={model.id} | 83 | | - data-unlimited={model.unlimited ? "" : undefined} | 84 | | - style={{ "--delay": `${index() * 30}ms` }} | 85 | | - > | | 77 | + <div role="row" data-slot="model-row" data-model={model.id} style={{ "--delay": `${index() * 30}ms` }}> | 86 | 78 | <div role="rowheader" data-slot="model"> | 87 | 79 | <bdi>{model.name}</bdi> | 88 | 80 | <Show when={model.fresh}> | @@ -91,9 +83,6 @@ export function LimitsGraph(props: { href: string }) { | 91 | 83 | <Show when={model.bonus}> | 92 | 84 | <span data-slot="badge">{i18n.t("go.graph.bonus", { count: model.bonus! })}</span> | 93 | 85 | </Show> | 94 | | - <Show when={model.unlimited}> | 95 | | - <span data-slot="badge">{i18n.t("go.graph.limitedTime")}</span> | 96 | | - </Show> | 97 | 86 | <Show when={model.regions}> | 98 | 87 | <a | 99 | 88 | data-slot="region" | @@ -109,58 +98,31 @@ export function LimitsGraph(props: { href: string }) { | 109 | 98 | </a> | 110 | 99 | </Show> | 111 | 100 | </div> | 112 | | - <div | 113 | | - role="cell" | 114 | | - data-slot="usage-value" | 115 | | - aria-label={model.unlimited ? i18n.t("go.graph.unlimited") : undefined} | 116 | | - > | | 101 | + <div role="cell" data-slot="usage-value"> | 117 | 102 | <div data-slot="track" aria-hidden="true"> | 118 | 103 | <For each={ticks}> | 119 | 104 | {(tick) => <span data-slot="gridline" style={{ "--position": `${position(tick)}%` }} />} | 120 | 105 | </For> | 121 | 106 | <div data-slot="bar" style={{ "--width": `${position(model.requests)}%` }} /> | 122 | 107 | </div> | 123 | 108 | <div data-slot="requests"> | 124 | | - <Show | 125 | | - when={!model.unlimited} | 126 | | - fallback={ | 127 | | - <bdi aria-hidden="true" title={i18n.t("go.graph.unlimited")}> | 128 | | - ∞ | 129 | | - </bdi> | 130 | | - } | 131 | | - > | 132 | | - <Show when={model.baseRequests}> | 133 | | - <s>{format().format(model.baseRequests!)}</s>{" "} | 134 | | - </Show> | 135 | | - <bdi>{format().format(model.requests)}</bdi> | | 109 | + <Show when={model.baseRequests}> | | 110 | + <s>{format().format(model.baseRequests!)}</s>{" "} | 136 | 111 | </Show> | | 112 | + <bdi>{format().format(model.requests)}</bdi> | 137 | 113 | </div> | 138 | 114 | </div> | 139 | | - <div | 140 | | - role="cell" | 141 | | - data-slot="allowance" | 142 | | - data-high={model.allowance >= 60 ? "" : undefined} | 143 | | - aria-label={model.unlimited ? i18n.t("go.graph.unlimited") : undefined} | 144 | | - > | 145 | | - <Show | 146 | | - when={!model.unlimited} | 147 | | - fallback={ | 148 | | - <bdi aria-hidden="true" title={i18n.t("go.graph.unlimited")}> | 149 | | - ∞ | 150 | | - </bdi> | 151 | | - } | 152 | | - > | 153 | | - <Show when={model.baseAllowance}> | 154 | | - <s>{currency().format(model.baseAllowance!)}</s>{" "} | 155 | | - </Show> | 156 | | - <bdi> | 157 | | - <For each={currency().formatToParts(model.allowance)}> | 158 | | - {(part) => ( | 159 | | - <span data-slot={part.type === "currency" ? "currency" : undefined}>{part.value}</span> | 160 | | - )} | 161 | | - </For> | 162 | | - </bdi> | | 115 | + <div role="cell" data-slot="allowance" data-high={model.allowance >= 60 ? "" : undefined}> | | 116 | + <Show when={model.baseAllowance}> | | 117 | + <s>{currency().format(model.baseAllowance!)}</s>{" "} | 163 | 118 | </Show> | | 119 | + <bdi> | | 120 | + <For each={currency().formatToParts(model.allowance)}> | | 121 | + {(part) => ( | | 122 | + <span data-slot={part.type === "currency" ? "currency" : undefined}>{part.value}</span> | | 123 | + )} | | 124 | + </For> | | 125 | + </bdi> | 164 | 126 | </div> | 165 | 127 | </div> | 166 | 128 | )} | |
Collapse file Copy file name to clipboardExpand all lines: packages/console/app/src/i18n/ar.ts +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ import { dict as en } from "./en" | 3 | 3 |
| 4 | 4 | export const dict = { | 5 | 5 | ...en, | 6 | | - "go.promo.unionAlpha": "يتوفر Union Alpha مجانًا لفترة محدودة", | | 6 | + "go.promo.deepseek": "يحصل DeepSeek V4.1 Flash على حدود استخدام مضاعفة 4 مرات لفترة محدودة", | 7 | 7 | "go.graph.bonus": "استخدام مضاعف {{count}} مرات", | 8 | 8 | "nav.github": "GitHub", | 9 | 9 | "nav.docs": "الوثائق", | @@ -282,7 +282,6 @@ export const dict = { | 282 | 282 | "go.graph.showLess": "عرض نماذج أقل", | 283 | 283 | "go.graph.limitedRegions": "مناطق محدودة", | 284 | 284 | "go.graph.limitedTime": "لفترة محدودة", | 285 | | - "go.graph.unlimited": "غير محدود", | 286 | 285 | "go.graph.usageLimits": "حدود الاستخدام", | 287 | 286 | "go.graph.aria": "الطلبات كل 5 ساعات: {{free}} مقابل {{go}}", | 288 | 287 |
| |
Collapse file Copy file name to clipboardExpand all lines: packages/console/app/src/i18n/br.ts +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ import { dict as en } from "./en" | 3 | 3 |
| 4 | 4 | export const dict = { | 5 | 5 | ...en, | 6 | | - "go.promo.unionAlpha": "O Union Alpha está grátis por tempo limitado", | | 6 | + "go.promo.deepseek": "DeepSeek V4.1 Flash tem limites de uso 4x maiores por tempo limitado", | 7 | 7 | "go.graph.bonus": "{{count}}× mais uso", | 8 | 8 | "nav.github": "GitHub", | 9 | 9 | "nav.docs": "Documentação", | @@ -288,7 +288,6 @@ export const dict = { | 288 | 288 | "go.graph.showLess": "Mostrar menos modelos", | 289 | 289 | "go.graph.limitedRegions": "regiões limitadas", | 290 | 290 | "go.graph.limitedTime": "tempo limitado", | 291 | | - "go.graph.unlimited": "ilimitado", | 292 | 291 | "go.graph.usageLimits": "Limites de uso", | 293 | 292 | "go.graph.aria": "Requisições por 5h: {{free}} vs {{go}}", | 294 | 293 |
| |
Collapse file Copy file name to clipboardExpand all lines: packages/console/app/src/i18n/da.ts +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ import { dict as en } from "./en" | 3 | 3 |
| 4 | 4 | export const dict = { | 5 | 5 | ...en, | 6 | | - "go.promo.unionAlpha": "Union Alpha er gratis i en begrænset periode", | | 6 | + "go.promo.deepseek": "DeepSeek V4.1 Flash får firedoblet brugsgrænse i en begrænset periode", | 7 | 7 | "go.graph.bonus": "{{count}}× forbrug", | 8 | 8 | "nav.github": "GitHub", | 9 | 9 | "nav.docs": "Dokumentation", | @@ -285,7 +285,6 @@ export const dict = { | 285 | 285 | "go.graph.showLess": "Vis færre modeller", | 286 | 286 | "go.graph.limitedRegions": "begrænsede regioner", | 287 | 287 | "go.graph.limitedTime": "begrænset periode", | 288 | | - "go.graph.unlimited": "ubegrænset", | 289 | 288 | "go.graph.usageLimits": "Forbrugsgrænser", | 290 | 289 | "go.graph.aria": "Forespørgsler pr. 5t: {{free}} vs {{go}}", | 291 | 290 |
| |
Collapse file Copy file name to clipboardExpand all lines: packages/console/app/src/i18n/de.ts +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ import { dict as en } from "./en" | 3 | 3 |
| 4 | 4 | export const dict = { | 5 | 5 | ...en, | 6 | | - "go.promo.unionAlpha": "Union Alpha ist für begrenzte Zeit kostenlos", | | 6 | + "go.promo.deepseek": "DeepSeek V4.1 Flash erhält für begrenzte Zeit 4x Nutzungslimits", | 7 | 7 | "go.graph.bonus": "{{count}}× Nutzung", | 8 | 8 | "nav.github": "GitHub", | 9 | 9 | "nav.docs": "Dokumentation", | @@ -287,7 +287,6 @@ export const dict = { | 287 | 287 | "go.graph.showLess": "Weniger Modelle anzeigen", | 288 | 288 | "go.graph.limitedRegions": "begrenzte Regionen", | 289 | 289 | "go.graph.limitedTime": "begrenzte Zeit", | 290 | | - "go.graph.unlimited": "unbegrenzt", | 291 | 290 | "go.graph.usageLimits": "Nutzungslimits", | 292 | 291 | "go.graph.aria": "Anfragen pro 5h: {{free}} vs {{go}}", | 293 | 292 |
| |
Collapse file Copy file name to clipboardExpand all lines: packages/console/app/src/i18n/en.ts +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | export const dict = { | 2 | | - "go.promo.unionAlpha": "Union Alpha is free for a limited time", | | 2 | + "go.promo.deepseek": "DeepSeek V4.1 Flash gets 4× usage limits for a limited time", | 3 | 3 | "go.graph.bonus": "{{count}}× usage", | 4 | 4 | "nav.github": "GitHub", | 5 | 5 | "nav.docs": "Docs", | @@ -282,7 +282,6 @@ export const dict = { | 282 | 282 | "go.graph.showLess": "Show fewer models", | 283 | 283 | "go.graph.limitedRegions": "limited regions", | 284 | 284 | "go.graph.limitedTime": "limited time", | 285 | | - "go.graph.unlimited": "unlimited", | 286 | 285 | "go.graph.tick": "{{n}}x", | 287 | 286 | "go.graph.usageLimits": "Usage limits", | 288 | 287 | "go.graph.aria": "Requests per 5h: {{free}} vs {{go}}", | |
Collapse file Copy file name to clipboardExpand all lines: packages/console/app/src/i18n/es.ts +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ import { dict as en } from "./en" | 3 | 3 |
| 4 | 4 | export const dict = { | 5 | 5 | ...en, | 6 | | - "go.promo.unionAlpha": "Union Alpha es gratis por tiempo limitado", | | 6 | + "go.promo.deepseek": "DeepSeek V4.1 Flash tiene límites de uso 4x mayores por tiempo limitado", | 7 | 7 | "go.graph.bonus": "{{count}}× de uso", | 8 | 8 | "nav.github": "GitHub", | 9 | 9 | "nav.docs": "Documentación", | @@ -289,7 +289,6 @@ export const dict = { | 289 | 289 | "go.graph.showLess": "Mostrar menos modelos", | 290 | 290 | "go.graph.limitedRegions": "regiones limitadas", | 291 | 291 | "go.graph.limitedTime": "tiempo limitado", | 292 | | - "go.graph.unlimited": "ilimitado", | 293 | 292 | "go.graph.usageLimits": "Límites de uso", | 294 | 293 | "go.graph.aria": "Solicitudes por 5h: {{free}} vs {{go}}", | 295 | 294 |
| |
Collapse file Copy file name to clipboardExpand all lines: packages/console/app/src/i18n/fr.ts +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ import { dict as en } from "./en" | 3 | 3 |
| 4 | 4 | export const dict = { | 5 | 5 | ...en, | 6 | | - "go.promo.unionAlpha": "Union Alpha est gratuit pendant une durée limitée", | | 6 | + "go.promo.deepseek": "DeepSeek V4.1 Flash bénéficie de limites d’utilisation 4x supérieures pour une durée limitée", | 7 | 7 | "go.graph.bonus": "{{count}}× d’utilisation", | 8 | 8 | "app.meta.description": "OpenCode - L'agent de code open source.", | 9 | 9 | "nav.github": "GitHub", | @@ -290,7 +290,6 @@ export const dict = { | 290 | 290 | "go.graph.showLess": "Afficher moins de modèles", | 291 | 291 | "go.graph.limitedRegions": "régions limitées", | 292 | 292 | "go.graph.limitedTime": "durée limitée", | 293 | | - "go.graph.unlimited": "illimité", | 294 | 293 | "go.graph.usageLimits": "Limites d’utilisation", | 295 | 294 | "go.graph.aria": "Requêtes par 5h : {{free}} vs {{go}}", | 296 | 295 |
| |
|