Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
feat(images): GPT-Image-2.6 Sunburst and Flare with a detail-level (complexity) setting (#6210)
Krishna Dobhal8e3dcd214318
diff --git a/server/app-settings/registry-config.ts b/server/app-settings/registry-config.tsindex 34b012cb6c..029b2cb13a 100644--- a/server/app-settings/registry-config.ts+++ b/server/app-settings/registry-config.ts@@ -4,7 +4,7 @@ import { randomUUID } from "node:crypto";import { z } from "zod";-import { IMAGE_PROVIDERS } from "../../shared/image-generation.ts";+import { IMAGE_COMPLEXITIES, IMAGE_PROVIDERS } from "../../shared/image-generation.ts";import { EFFORT_LEVELS } from "../../shared/wire.ts";import { DEFAULT_WINDOW_MINUTES } from "../cache-keepwarm.ts";import { botsTowardLimit } from "../../shared/bot-limit.ts";@@ -60,8 +60,8 @@ export function configEntries(deps: Pick<RegistryDeps, "cfg" | "saveConfig" | "bsection({id: "ai.images", label: "Image generation", help: "Which provider and model make images, a fallback, and how many images one turn may make. Keys are set with keys.* or in Settings.", where: "images",synonyms: ["images", "image generation", "picture", "generate"],- value: nonEmpty(withoutKeys(z.object({ primary: imageSlot.optional(), fallback: imageSlot.nullable().optional(), maxPerTurn: z.number().int().min(1).max(10).optional(), customUrl: z.string().trim().max(2048).optional() }).strict())),- allowed: `{"primary"?:{"provider","model"?},"fallback"?:{...}|null,"maxPerTurn"?:1-10,"customUrl"?} with provider one of ${IMAGE_PROVIDERS.join(", ")}`,+ value: nonEmpty(withoutKeys(z.object({ primary: imageSlot.optional(), fallback: imageSlot.nullable().optional(), maxPerTurn: z.number().int().min(1).max(10).optional(), complexity: z.enum(IMAGE_COMPLEXITIES).optional(), customUrl: z.string().trim().max(2048).optional() }).strict())),+ allowed: `{"primary"?:{"provider","model"?},"fallback"?:{...}|null,"maxPerTurn"?:1-10,"complexity"?:"low"|"medium"|"high" (GPT-Image-2.6 models only),"customUrl"?} with provider one of ${IMAGE_PROVIDERS.join(", ")}`,current: () => cfg().imageGen ?? {}, patch: (imageGen) => ({ imageGen }),says: (imageGen) => `Image generation: ${fields(imageGen)}. Image prompts go to the chosen provider, off this computer`,}),diff --git a/server/avatar-image.ts b/server/avatar-image.tsindex 51cf321473..610c26ff06 100644--- a/server/avatar-image.ts+++ b/server/avatar-image.ts@@ -29,6 +29,7 @@ export function avatarImageStatus(cfg: ImageCredentials) {fallback: fallback ? slotStatus(fallback) : null,ready: imageGenerationReady(cfg),maxPerTurn: cfg.imageGen?.maxPerTurn ?? IMAGE_MAX_PER_TURN_DEFAULT,+ complexity: cfg.imageGen?.complexity ?? null,customUrl: customImageUrl(cfg),customModel: [primary, fallback].find((slot) => slot?.provider === "custom")?.model ?? "",openaiConfigured: Boolean(cfg.imageGen?.key?.trim()),diff --git a/server/image-generation-config.ts b/server/image-generation-config.tsindex 26585e27d0..93482f8356 100644--- a/server/image-generation-config.ts+++ b/server/image-generation-config.ts@@ -1,5 +1,5 @@import { z } from "zod";-import { IMAGE_PROVIDERS, looksLikeApiKey, normalizeImageGenerationUrl, type ImageGenerationConfig } from "../shared/image-generation.ts";+import { IMAGE_COMPLEXITIES, IMAGE_PROVIDERS, looksLikeApiKey, normalizeImageGenerationUrl, type ImageGenerationConfig } from "../shared/image-generation.ts";const imageModelIdSchema = z.string().trim().max(200).refine((value) => !["\r", "\n", "\0"].some((character) => value.includes(character)),@@ -13,6 +13,7 @@ export const imageGenConfigSchema = z.object({primary: imageSlotSchema.optional(),fallback: imageSlotSchema.optional(),maxPerTurn: z.number().int().min(1).max(10).optional(),+ complexity: z.enum(IMAGE_COMPLEXITIES).optional(),provider: z.enum(["openai", "xai", "custom"]).optional(),key: z.string().optional(),geminiKey: z.string().optional(),diff --git a/server/image-generation.test.ts b/server/image-generation.test.tsindex 1390857f5c..383de2bed8 100644--- a/server/image-generation.test.ts+++ b/server/image-generation.test.ts@@ -37,6 +37,25 @@ describe("image slots", () => {});});+describe("complexity", () => {+ const sent = async (model: string, complexity?: "low" | "medium" | "high") => {+ const fetchMock = vi.fn(async () => imageResponse());+ const cfg = { imageGen: { key: "openai-secret", primary: { provider: "openai" as const, model }, ...(complexity && { complexity }) } };+ await generateImage(cfg, { prompt: "owl" }, { fetchImpl: fetchMock });+ return JSON.parse(String((fetchMock.mock.calls[0] as unknown as [string, RequestInit])[1].body));+ };++ it("goes to GPT-Image-2.6 models when set", async () => {+ expect((await sent("gpt-image-2.6-sunburst", "low")).complexity).toBe("low");+ expect((await sent("gpt-image-2.6-flare", "medium")).complexity).toBe("medium");+ });++ it("is left out when unset, and never sent to other models", async () => {+ expect(await sent("gpt-image-2.6-flare")).not.toHaveProperty("complexity");+ expect(await sent("gpt-image-2", "low")).not.toHaveProperty("complexity");+ });+});+describe("provider requests", () => {it("sends a Gemini key only to Google's OpenAI-compatible image route", async () => {const fetchMock = vi.fn<typeof fetch>(async () => imageResponse());diff --git a/server/image-generation.ts b/server/image-generation.tsindex ef36fd362a..ad32f7a932 100644--- a/server/image-generation.ts+++ b/server/image-generation.ts@@ -1,7 +1,7 @@import type { ReadableStreamReadResult } from "node:stream/web";import { z } from "zod";-import { IMAGE_DEFAULT_MODELS, IMAGE_PROVIDERS, looksLikeApiKey, normalizeImageGenerationUrl, type ImageGenerationConfig, type ImageProvider } from "../shared/image-generation.ts";+import { IMAGE_DEFAULT_MODELS, IMAGE_PROVIDERS, looksLikeApiKey, supportsImageComplexity, normalizeImageGenerationUrl, type ImageGenerationConfig, type ImageProvider } from "../shared/image-generation.ts";import { decodeGeneratedImage } from "./generated-image.ts";export const IMAGE_GENERATION_TIMEOUT_MS = 120_000;@@ -208,7 +208,8 @@ export async function generateImageWith(const apiKey = provider.key(cfg)?.trim();const headers: Record<string, string> = { "content-type": "application/json" };if (apiKey) headers.authorization = `Bearer ${apiKey}`;- const body = { model: slot.model, prompt: request.prompt, ...provider.body(request) };+ const complexity = supportsImageComplexity(slot) ? cfg.imageGen?.complexity : undefined;+ const body = { model: slot.model, prompt: request.prompt, ...provider.body(request), ...(complexity && { complexity }) };const timeoutSignal = AbortSignal.timeout(timeoutMs);const cancelled = () => cancel?.aborted === true && !timeoutSignal.aborted;diff --git a/shared/image-generation.ts b/shared/image-generation.tsindex bf9da56853..808fea7cd3 100644--- a/shared/image-generation.ts+++ b/shared/image-generation.ts@@ -3,6 +3,14 @@ export const IMAGE_PROVIDERS = ["openai", "xai", "gemini", "openrouter", "customexport type ImageProvider = (typeof IMAGE_PROVIDERS)[number];export const IMAGE_MAX_PER_TURN_DEFAULT = 4;+export const IMAGE_COMPLEXITIES = ["low", "medium", "high"] as const;+export type ImageComplexity = (typeof IMAGE_COMPLEXITIES)[number];++/** `complexity` is a GPT-Image-2.6 request field; other models would reject it. */+export function supportsImageComplexity(slot: { provider: ImageProvider; model: string }): boolean {+ return slot.provider === "openai" && slot.model.startsWith("gpt-image-2.6-");+}+export const IMAGE_DEFAULT_MODELS: Record<ImageProvider, string> = {openai: "gpt-image-2", xai: "grok-imagine-image-2.0", gemini: "gemini-2.5-flash-image", openrouter: "google/gemini-2.5-flash-image", custom: "",};@@ -21,6 +29,8 @@ export interface ImageModelChoice {/** Offered first in Settings; OpenRouter adds the rest of its live image catalog, and any other ID can be typed. */export const IMAGE_MODEL_CHOICES: Record<ImageProvider, readonly ImageModelChoice[]> = {openai: [+ { id: "gpt-image-2.6-sunburst", name: "GPT Image 2.6 Sunburst" },+ { id: "gpt-image-2.6-flare", name: "GPT Image 2.6 Flare" },{ id: "gpt-image-2", name: "GPT Image 2" },{ id: "gpt-image-1", name: "GPT Image 1" },{ id: "gpt-image-1-mini", name: "GPT Image 1 Mini" },@@ -49,6 +59,8 @@ export interface ImageGenerationConfig {primary?: ImageSlotConfig;fallback?: ImageSlotConfig;maxPerTurn?: number;+ /** Sent only to GPT-Image-2.6 models; they use high when it is unset. */+ complexity?: ImageComplexity;/** An OpenAI key; never sent to another provider. */key?: string;geminiKey?: string;diff --git a/src/components/ImageGenerationSettings.tsx b/src/components/ImageGenerationSettings.tsxindex 4e4bf3bb4d..322352b8f0 100644--- a/src/components/ImageGenerationSettings.tsx+++ b/src/components/ImageGenerationSettings.tsx@@ -4,7 +4,7 @@ import { api, useStore, type ConfigStatus } from "@/state/store";import { cn } from "@/lib/cn";import { t } from "@/lib/i18n";import type { LocaleKey } from "@/locales";-import { IMAGE_DEFAULT_MODELS, IMAGE_MAX_PER_TURN_DEFAULT, IMAGE_MODEL_CHOICES, IMAGE_PROVIDERS, normalizeImageGenerationUrl, type ImageProvider, type ImageProviderTest } from "../../shared/image-generation";+import { IMAGE_COMPLEXITIES, IMAGE_DEFAULT_MODELS, IMAGE_MAX_PER_TURN_DEFAULT, IMAGE_MODEL_CHOICES, IMAGE_PROVIDERS, normalizeImageGenerationUrl, supportsImageComplexity, type ImageComplexity, type ImageProvider, type ImageProviderTest } from "../../shared/image-generation";import { saveCredential } from "./keys/key-save";import { LearnMore, SETTINGS_INLINE_INPUT, SETTINGS_INPUT, SettingRow, SettingsField, SettingsGroup, SettingsRows, StatusDot } from "./SettingsPrimitives";import { Select } from "./Select";@@ -132,6 +132,19 @@ export function ImageGenerationSettings() {{Array.from({ length: 10 }, (_, index) => index + 1).map((count) => <option key={count} value={count}>{count}</option>)}</Select></SettingRow>+ {[primary, fallback].some((slot) => slot && supportsImageComplexity(slot)) && (+ <SettingRow title={t("imageGen.complexity.label")} subtitle={t("imageGen.complexity.help")}>+ <Select+ data-testid="image-gen-complexity"+ value={status?.complexity ?? "high"}+ onChange={(event) => void save({ imageGen: { complexity: event.target.value as ImageComplexity } })}+ disabled={saving || !state.config}+ aria-label={t("imageGen.complexity.label")}+ >+ {IMAGE_COMPLEXITIES.map((level) => <option key={level} value={level}>{t(`imageGen.complexity.${level}` as LocaleKey)}</option>)}+ </Select>+ </SettingRow>+ )}</SettingsRows></SettingsGroup>diff --git a/src/locales/de.json b/src/locales/de.jsonindex b10eccf852..7bea238da5 100644--- a/src/locales/de.json+++ b/src/locales/de.json@@ -4019,5 +4019,10 @@"server.rooms.linkedEnded": "{place} hat sich 30 Tage lang nicht verbunden, deshalb wurde die Verbindung dorthin beendet. Nicht mehr in diesem Raum: {bots}.","room.members.far.place": "auf {place}","room.members.far.off": "Verbindung ist aus",- "room.members.far.missing": "Nicht mehr verfügbar"+ "room.members.far.missing": "Nicht mehr verfügbar",+ "imageGen.complexity.label": "Detailgrad",+ "imageGen.complexity.help": "Wie detailreich GPT-Image-2.6-Bilder sind. Niedriger ist einfacher und schneller.",+ "imageGen.complexity.low": "Niedrig",+ "imageGen.complexity.medium": "Mittel",+ "imageGen.complexity.high": "Hoch"}diff --git a/src/locales/en.json b/src/locales/en.jsonindex 86e942e9b4..0696c3f11d 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -10478,6 +10478,11 @@"imageGen.test.noUrl": "Add the base URL first, so the key is only sent to your endpoint.","imageGen.maxPerTurn.label": "Images per reply","imageGen.maxPerTurn.help": "The most images a bot may create in one reply.",+ "imageGen.complexity.label": "Detail level",+ "imageGen.complexity.help": "How detailed GPT-Image-2.6 images are. Lower is simpler and quicker.",+ "imageGen.complexity.low": "Low",+ "imageGen.complexity.medium": "Medium",+ "imageGen.complexity.high": "High","imageGen.key.openai": "OpenAI API key","imageGen.key.gemini": "Gemini API key","imageGen.key.custom": "Custom image API key",diff --git a/src/locales/es.json b/src/locales/es.jsonindex c4dcc393b4..e0ed928dc6 100644--- a/src/locales/es.json+++ b/src/locales/es.json@@ -6507,5 +6507,10 @@"remote.tailscale.needsApproval": "Este ordenador espera la aprobación en tu red de Tailscale. Apruébalo en la consola de administración de Tailscale y vuelve a intentarlo.","together.switch.title": "Este equipo y My Cloud juntos","together.switch.line": "Desactivado de forma predeterminada. Los bots del Cloud y los de este equipo aparecen en una sola lista, y cada uno se abre donde está.",- "together.switch.failed": "No se pudo guardar. Inténtalo de nuevo."+ "together.switch.failed": "No se pudo guardar. Inténtalo de nuevo.",+ "imageGen.complexity.label": "Nivel de detalle",+ "imageGen.complexity.help": "Cuánto detalle tienen las imágenes de GPT-Image-2.6. Más bajo es más simple y rápido.",+ "imageGen.complexity.low": "Bajo",+ "imageGen.complexity.medium": "Medio",+ "imageGen.complexity.high": "Alto"}diff --git a/src/locales/fr.json b/src/locales/fr.jsonindex a62e6feb47..7cb297f943 100644--- a/src/locales/fr.json+++ b/src/locales/fr.json@@ -3807,5 +3807,10 @@"remote.tailscale.needsApproval": "Cet ordinateur attend d'être approuvé sur votre réseau Tailscale. Approuvez-le dans la console d'administration Tailscale, puis réessayez.","together.switch.title": "Cet ordinateur et Mon Cloud ensemble","together.switch.line": "Désactivé par défaut. Les bots du Cloud et ceux de cet ordinateur s'affichent dans une seule liste, et chacun s'ouvre là où il se trouve.",- "together.switch.failed": "Impossible d'enregistrer. Réessayez."+ "together.switch.failed": "Impossible d'enregistrer. Réessayez.",+ "imageGen.complexity.label": "Niveau de détail",+ "imageGen.complexity.help": "Le niveau de détail des images GPT-Image-2.6. Plus bas, c'est plus simple et plus rapide.",+ "imageGen.complexity.low": "Faible",+ "imageGen.complexity.medium": "Moyen",+ "imageGen.complexity.high": "Élevé"}diff --git a/src/locales/hi.json b/src/locales/hi.jsonindex 048df0c77c..97a56ab33a 100644--- a/src/locales/hi.json+++ b/src/locales/hi.json@@ -3661,5 +3661,10 @@"remote.tailscale.needsApproval": "यह कंप्यूटर आपके Tailscale नेटवर्क पर मंज़ूरी का इंतज़ार कर रहा है। Tailscale एडमिन कंसोल में इसे मंज़ूर करें, फिर दोबारा कोशिश करें।","together.switch.title": "यही कंप्यूटर और मेरा क्लाउड एक साथ","together.switch.line": "डिफ़ॉल्ट रूप से बंद। क्लाउड के बॉट और इस कंप्यूटर के बॉट एक ही सूची में दिखते हैं, और हर बॉट वहीं खुलता है जहाँ वह है।",- "together.switch.failed": "इसे सहेजा नहीं जा सका। फिर से कोशिश करें।"+ "together.switch.failed": "इसे सहेजा नहीं जा सका। फिर से कोशिश करें।",+ "imageGen.complexity.label": "विवरण स्तर",+ "imageGen.complexity.help": "GPT-Image-2.6 की छवियाँ कितनी विस्तृत हों। कम का मतलब सरल और तेज़।",+ "imageGen.complexity.low": "कम",+ "imageGen.complexity.medium": "मध्यम",+ "imageGen.complexity.high": "उच्च"}diff --git a/src/locales/it.json b/src/locales/it.jsonindex b47d34869f..1335ff1bb1 100644--- a/src/locales/it.json+++ b/src/locales/it.json@@ -7131,5 +7131,10 @@"remote.tailscale.needsApproval": "Questo computer è in attesa di approvazione sulla tua rete Tailscale. Approvalo nella console di amministrazione di Tailscale, poi riprova.","together.switch.title": "Questo computer e Il mio Cloud insieme","together.switch.line": "Disattivato per impostazione predefinita. I bot del Cloud e quelli di questo computer compaiono in un unico elenco, e ognuno si apre dove si trova.",- "together.switch.failed": "Non è stato possibile salvare. Riprova."+ "together.switch.failed": "Non è stato possibile salvare. Riprova.",+ "imageGen.complexity.label": "Livello di dettaglio",+ "imageGen.complexity.help": "Quanto sono dettagliate le immagini di GPT-Image-2.6. Più basso è più semplice e veloce.",+ "imageGen.complexity.low": "Basso",+ "imageGen.complexity.medium": "Medio",+ "imageGen.complexity.high": "Alto"}diff --git a/src/locales/ja.json b/src/locales/ja.jsonindex 72723683b4..0bab26b064 100644--- a/src/locales/ja.json+++ b/src/locales/ja.json@@ -8102,5 +8102,10 @@"remote.tailscale.needsApproval": "このコンピューターは Tailscale ネットワークでの承認を待っています。Tailscale の管理コンソールで承認してから、もう一度お試しください。","together.switch.title": "このコンピューターと My Cloud をまとめる","together.switch.line": "既定ではオフです。Cloud のボットとこのコンピューターのボットを 1 つの一覧に表示し、それぞれがある場所で開きます。",- "together.switch.failed": "保存できませんでした。もう一度お試しください。"+ "together.switch.failed": "保存できませんでした。もう一度お試しください。",+ "imageGen.complexity.label": "詳細レベル",+ "imageGen.complexity.help": "GPT-Image-2.6 の画像の詳細さ。低いほどシンプルで高速です。",+ "imageGen.complexity.low": "低",+ "imageGen.complexity.medium": "中",+ "imageGen.complexity.high": "高"}diff --git a/src/locales/ko.json b/src/locales/ko.jsonindex 8db018801f..ea01af3a86 100644--- a/src/locales/ko.json+++ b/src/locales/ko.json@@ -7792,5 +7792,10 @@"remote.tailscale.needsApproval": "이 컴퓨터는 Tailscale 네트워크에서 승인을 기다리고 있습니다. Tailscale 관리 콘솔에서 승인한 다음 다시 시도하세요.","together.switch.title": "이 컴퓨터와 내 클라우드 함께 보기","together.switch.line": "기본값은 꺼짐입니다. 클라우드의 봇과 이 컴퓨터의 봇이 하나의 목록에 표시되며, 각 봇은 자기가 있는 곳에서 열립니다.",- "together.switch.failed": "저장하지 못했습니다. 다시 시도하세요."+ "together.switch.failed": "저장하지 못했습니다. 다시 시도하세요.",+ "imageGen.complexity.label": "세부 수준",+ "imageGen.complexity.help": "GPT-Image-2.6 이미지의 세부 정도입니다. 낮을수록 단순하고 빠릅니다.",+ "imageGen.complexity.low": "낮음",+ "imageGen.complexity.medium": "보통",+ "imageGen.complexity.high": "높음"}diff --git a/src/locales/pl.json b/src/locales/pl.jsonindex d78cd6ac47..a333b78e4e 100644--- a/src/locales/pl.json+++ b/src/locales/pl.json@@ -7271,5 +7271,10 @@"remote.tailscale.needsApproval": "Ten komputer czeka na zatwierdzenie w Twojej sieci Tailscale. Zatwierdź go w konsoli administracyjnej Tailscale, a potem spróbuj ponownie.","together.switch.title": "Ten komputer i My Cloud razem","together.switch.line": "Domyślnie wyłączone. Boty z Cloud i boty z tego komputera są na jednej liście, a każdy otwiera się tam, gdzie działa.",- "together.switch.failed": "Nie udało się zapisać. Spróbuj ponownie."+ "together.switch.failed": "Nie udało się zapisać. Spróbuj ponownie.",+ "imageGen.complexity.label": "Poziom szczegółowości",+ "imageGen.complexity.help": "Jak szczegółowe są obrazy GPT-Image-2.6. Niższy poziom jest prostszy i szybszy.",+ "imageGen.complexity.low": "Niski",+ "imageGen.complexity.medium": "Średni",+ "imageGen.complexity.high": "Wysoki"}diff --git a/src/locales/pt-br.json b/src/locales/pt-br.jsonindex 894128b667..aaf3a6f88b 100644--- a/src/locales/pt-br.json+++ b/src/locales/pt-br.json@@ -11073,5 +11073,10 @@"server.rooms.linkedEnded": "{place} não se conecta há 30 dias, então a ligação com ele terminou. Não está mais neste grupo: {bots}.","room.members.far.place": "em {place}","room.members.far.off": "Ligação desligada",- "room.members.far.missing": "Não está mais disponível"+ "room.members.far.missing": "Não está mais disponível",+ "imageGen.complexity.label": "Nível de detalhe",+ "imageGen.complexity.help": "Quão detalhadas são as imagens do GPT-Image-2.6. Menor é mais simples e mais rápido.",+ "imageGen.complexity.low": "Baixo",+ "imageGen.complexity.medium": "Médio",+ "imageGen.complexity.high": "Alto"}diff --git a/src/locales/ru.json b/src/locales/ru.jsonindex 660f93d01e..cd25808707 100644--- a/src/locales/ru.json+++ b/src/locales/ru.json@@ -7325,5 +7325,10 @@"remote.tailscale.needsApproval": "Этот компьютер ждёт одобрения в вашей сети Tailscale. Одобрите его в консоли администратора Tailscale, затем попробуйте снова.","together.switch.title": "Этот компьютер и Моё облако вместе","together.switch.line": "По умолчанию выключено. Боты из облака и боты этого компьютера показаны в одном списке, и каждый открывается там, где он находится.",- "together.switch.failed": "Не удалось сохранить. Попробуйте ещё раз."+ "together.switch.failed": "Не удалось сохранить. Попробуйте ещё раз.",+ "imageGen.complexity.label": "Уровень детализации",+ "imageGen.complexity.help": "Насколько детализированы изображения GPT-Image-2.6. Ниже — проще и быстрее.",+ "imageGen.complexity.low": "Низкий",+ "imageGen.complexity.medium": "Средний",+ "imageGen.complexity.high": "Высокий"}diff --git a/src/locales/tr.json b/src/locales/tr.jsonindex 121888f4cb..498e71d4c5 100644--- a/src/locales/tr.json+++ b/src/locales/tr.json@@ -6007,5 +6007,10 @@"remote.tailscale.needsApproval": "Bu bilgisayar Tailscale ağınızda onay bekliyor. Tailscale yönetici konsolunda onaylayın, ardından tekrar deneyin.","together.switch.title": "Bu bilgisayar ve Cloud'um birlikte","together.switch.line": "Varsayılan olarak kapalı. Cloud'daki botlar ile bu bilgisayardaki botlar tek listede görünür ve her biri bulunduğu yerde açılır.",- "together.switch.failed": "Kaydedilemedi. Yeniden deneyin."+ "together.switch.failed": "Kaydedilemedi. Yeniden deneyin.",+ "imageGen.complexity.label": "Ayrıntı düzeyi",+ "imageGen.complexity.help": "GPT-Image-2.6 görsellerinin ne kadar ayrıntılı olacağı. Düşük daha basit ve daha hızlıdır.",+ "imageGen.complexity.low": "Düşük",+ "imageGen.complexity.medium": "Orta",+ "imageGen.complexity.high": "Yüksek"}diff --git a/src/locales/uk.json b/src/locales/uk.jsonindex f23e61877b..ad6b674d43 100644--- a/src/locales/uk.json+++ b/src/locales/uk.json@@ -4082,5 +4082,10 @@"remote.tailscale.needsApproval": "Цей комп’ютер чекає на схвалення у вашій мережі Tailscale. Схваліть його в консолі адміністратора Tailscale, потім спробуйте ще раз.","together.switch.title": "Цей комп'ютер і Моя хмара разом","together.switch.line": "Типово вимкнено. Боти з хмари й боти цього комп'ютера показані в одному списку, і кожен відкривається там, де він є.",- "together.switch.failed": "Не вдалося зберегти. Спробуйте ще раз."+ "together.switch.failed": "Не вдалося зберегти. Спробуйте ще раз.",+ "imageGen.complexity.label": "Рівень деталізації",+ "imageGen.complexity.help": "Наскільки детальними є зображення GPT-Image-2.6. Нижчий рівень простіший і швидший.",+ "imageGen.complexity.low": "Низький",+ "imageGen.complexity.medium": "Середній",+ "imageGen.complexity.high": "Високий"}diff --git a/src/locales/vi.json b/src/locales/vi.jsonindex 458f8b29df..c19c3b7ac6 100644--- a/src/locales/vi.json+++ b/src/locales/vi.json@@ -6007,5 +6007,10 @@"remote.tailscale.needsApproval": "Máy tính này đang chờ được phê duyệt trên mạng Tailscale của bạn. Hãy phê duyệt trong bảng điều khiển quản trị Tailscale, rồi thử lại.","together.switch.title": "Máy tính này và My Cloud cùng nhau","together.switch.line": "Mặc định là tắt. Bot trên Cloud và bot trên máy tính này hiện trong một danh sách, và mỗi bot mở ở nơi nó đang ở.",- "together.switch.failed": "Không lưu được. Hãy thử lại."+ "together.switch.failed": "Không lưu được. Hãy thử lại.",+ "imageGen.complexity.label": "Mức chi tiết",+ "imageGen.complexity.help": "Mức độ chi tiết của ảnh GPT-Image-2.6. Thấp hơn thì đơn giản và nhanh hơn.",+ "imageGen.complexity.low": "Thấp",+ "imageGen.complexity.medium": "Trung bình",+ "imageGen.complexity.high": "Cao"}diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.jsonindex 96f382f70e..29168825ee 100644--- a/src/locales/zh-tw.json+++ b/src/locales/zh-tw.json@@ -10356,5 +10356,10 @@"remote.tailscale.needsApproval": "這台電腦正在等待你的 Tailscale 網路核准。請在 Tailscale 管理主控台中核准它,然後再試一次。","together.switch.title": "這台電腦和 My Cloud 合在一起","together.switch.line": "預設為關閉。Cloud 上的機器人和這台電腦上的機器人顯示在同一個清單中,各自在所在的位置開啟。",- "together.switch.failed": "無法儲存。請再試一次。"+ "together.switch.failed": "無法儲存。請再試一次。",+ "imageGen.complexity.label": "細節等級",+ "imageGen.complexity.help": "GPT-Image-2.6 圖片的細節程度。越低越簡單、越快。",+ "imageGen.complexity.low": "低",+ "imageGen.complexity.medium": "中",+ "imageGen.complexity.high": "高"}diff --git a/src/locales/zh.json b/src/locales/zh.jsonindex 2360887d2e..d64306eac4 100644--- a/src/locales/zh.json+++ b/src/locales/zh.json@@ -10252,5 +10252,10 @@"server.rooms.linkedEnded": "{place} 已有 30 天没有连接,与它的连接已结束。已不在这个群组聊天中:{bots}。","room.members.far.place": "位于 {place}","room.members.far.off": "连接已关闭",- "room.members.far.missing": "已不可用"+ "room.members.far.missing": "已不可用",+ "imageGen.complexity.label": "细节级别",+ "imageGen.complexity.help": "GPT-Image-2.6 图片的细节程度。越低越简单、越快。",+ "imageGen.complexity.low": "低",+ "imageGen.complexity.medium": "中",+ "imageGen.complexity.high": "高"}diff --git a/src/state/config-status.ts b/src/state/config-status.tsindex 0d35d24f46..7ef12f8ff4 100644--- a/src/state/config-status.ts+++ b/src/state/config-status.ts@@ -1,6 +1,6 @@// What GET /api/config tells the app about the server and its settings (re-exported by store.tsx).import type { EffortLevel, LiveSettings } from "../../shared/wire";-import type { ImageProvider } from "../../shared/image-generation";+import type { ImageComplexity, ImageProvider } from "../../shared/image-generation";import type { ToolGroup } from "../../shared/tool-groups";import type { OnboardingStatus } from "@/lib/onboarding";import type { ModelSelection } from "./store";@@ -146,6 +146,7 @@ export interface ConfigStatus {fallback?: ImageSlotStatus | null;ready?: boolean;maxPerTurn?: number;+ complexity?: ImageComplexity | null;customUrl?: string;customModel?: string;openaiConfigured?: boolean;