Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(cloud-tor): die zweite Zeile nennt den Katalog statt eines Rueckbezugs

purplee13a38cfb308
diff --git a/src/lib/__tests__/cloud-pitch.test.ts b/src/lib/__tests__/cloud-pitch.test.ts
index 835d9993..0437cb06 100644
--- a/src/lib/__tests__/cloud-pitch.test.ts
+++ b/src/lib/__tests__/cloud-pitch.test.ts
@@ -9,7 +9,15 @@
import { describe, expect, it } from 'vitest'
import { CLOUD_PITCH, cloudPitchLines } from '../cloud-pitch'
+/**
+ * R2-47: drei Zeilen, nie vier. Eine vierte Zeile faellt hier auf, bevor sie
+ * an der Oberflaeche steht.
+ */
describe('cloud pitch', () => {
+ it('is exactly three lines', () => {
+ expect(cloudPitchLines()).toHaveLength(3)
+ })
+
it('leads with what the models may do, then the price, then the equipment', () => {
const [first, second, third] = cloudPitchLines()
expect(first).toMatch(/without refusing/i)
@@ -37,10 +45,36 @@ describe('cloud pitch', () => {
expect(doubled[2]).toContain(String(CLOUD_PITCH.imageModels + 1))
})
+ /**
+ * R6-7: "12 of them" stand direkt hinter den 27 gemessenen Modellen und las
+ * sich als genau die Schnittmenge aus gemessen-ohne-Ablehnung und
+ * Flash-Klasse. Diese Schnittmenge ist NIRGENDS gemessen. Die Zeile nennt
+ * deshalb den Katalog, auf den sich die 12 wirklich beziehen, und der
+ * Rueckbezug darf nicht zurueckkommen.
+ */
+ it('never claims the intersection of the measured set and the free class', () => {
+ // Die Schnittmenge, die niemand kennt. Sie steht hier als eigene Groesse,
+ // damit sichtbar ist, dass sie fehlt und nicht etwa 12 ist.
+ const SCHNITTMENGE_FLASH_UND_FULL: number | null = null
+ expect(SCHNITTMENGE_FLASH_UND_FULL, 'ungemessen, also unbehauptbar').toBeNull()
+
+ const line = cloudPitchLines()[1]
+ expect(line).not.toMatch(/\bof them\b/i)
+ expect(line).toContain(String(CLOUD_PITCH.chatModels))
+ // Die Zeile davor traegt den Messnenner, diese den Katalog. Zwei Nenner,
+ // zwei Mengen.
+ expect(cloudPitchLines()[0]).toContain(String(CLOUD_PITCH.measuredChatModels))
+ })
+
it('claims nothing the catalogue cannot carry', () => {
expect(CLOUD_PITCH.unfilteredChatModels).toBeLessThanOrEqual(CLOUD_PITCH.measuredChatModels)
expect(CLOUD_PITCH.measuredChatModels).toBeLessThanOrEqual(CLOUD_PITCH.chatModels)
expect(CLOUD_PITCH.flashModels).toBeLessThanOrEqual(CLOUD_PITCH.chatModels)
+ // Gemessen wurde jedes Modell des Messlaufs genau einmal: ganz, teilweise
+ // oder gar nicht. Markierte plus zurueckhaltende koennen den Messlauf
+ // deshalb nicht ueberschreiten.
+ expect(CLOUD_PITCH.unfilteredChatModels + CLOUD_PITCH.heldBackChatModels)
+ .toBeLessThanOrEqual(CLOUD_PITCH.measuredChatModels)
for (const line of cloudPitchLines()) expect(line).not.toMatch(/[–—]/u)
})
})
diff --git a/src/lib/cloud-pitch.ts b/src/lib/cloud-pitch.ts
index 6cd2ccd9..1c5cadad 100644
--- a/src/lib/cloud-pitch.ts
+++ b/src/lib/cloud-pitch.ts
@@ -17,6 +17,15 @@
* Nichts hier ist eine Zusage fuer den Einzelfall. "Ohne Ablehnung" ist eine
* MESSUNG vom 10.09.2026, kein Vertrag, und was eine Anfrage enthalten darf,
* entscheidet der Server bei jedem Aufruf neu.
+ *
+ * ## Zwei Mengen, kein Rueckbezug
+ *
+ * `unfilteredChatModels` und `flashModels` zaehlen verschiedene Dinge: die
+ * einen sind gemessen, die anderen sind eine Abrechnungsklasse. Wie gross ihre
+ * Schnittmenge ist, steht nirgends gemessen, also darf keine Zeile sie
+ * behaupten. Die zweite Zeile sagte "12 of them" direkt hinter den 27
+ * gemessenen und las sich damit als genau diese Schnittmenge (R6-7). Sie nennt
+ * jetzt den Katalog, auf den sich die 12 wirklich beziehen.
*/
export interface CloudPitchNumbers {
@@ -27,6 +36,9 @@ export interface CloudPitchNumbers {
measuredChatModels: number
/** Davon gemessen ohne Ablehnung. */
unfilteredChatModels: number
+ /** Davon gemessen mit Zurueckhaltung: sie antworten, gehen aber nicht ganz
+ * mit, und tragen deshalb keine Marke. */
+ heldBackChatModels: number
/** Modelle der Flash-Klasse, die im Chat keine Credits kosten. */
flashModels: number
/** Taegliche Obergrenze der Flash-Klasse, Ein- und Ausgabe zusammen. */
@@ -41,6 +53,7 @@ export const CLOUD_PITCH: CloudPitchNumbers = {
chatModels: 47,
measuredChatModels: 46,
unfilteredChatModels: 27,
+ heldBackChatModels: 4,
flashModels: 12,
flashDailyTokens: 500_000,
imageModels: 10,
@@ -59,7 +72,7 @@ const n = (v: number) => v.toLocaleString('en-US')
export function cloudPitchLines(p: CloudPitchNumbers = CLOUD_PITCH): string[] {
return [
`${p.unfilteredChatModels} of the ${p.measuredChatModels} chat models we measured answer without refusing. Measured, not guessed, and marked in the picker.`,
- `${p.flashModels} of them cost no credits at all in chat, up to ${n(p.flashDailyTokens)} tokens a day on a paid plan.`,
+ `${p.flashModels} of the ${p.chatModels} models in the catalogue cost no credits at all in chat, up to ${n(p.flashDailyTokens)} tokens a day on a paid plan.`,
`${p.chatModels} chat, ${p.imageModels} image and ${p.videoModels} video models on our GPUs, including the ones your own machine cannot run.`,
]
}