Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

fix(images): leave complexity out of the image status when unset (#6210)

Krishna Dobhal5ffa12488fe5
diff --git a/server/avatar-image.ts b/server/avatar-image.ts
index 610c26ff06..856f3a4ad5 100644
--- a/server/avatar-image.ts
+++ b/server/avatar-image.ts
@@ -29,7 +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,
+ complexity: cfg.imageGen?.complexity,
customUrl: customImageUrl(cfg),
customModel: [primary, fallback].find((slot) => slot?.provider === "custom")?.model ?? "",
openaiConfigured: Boolean(cfg.imageGen?.key?.trim()),
diff --git a/src/state/config-status.ts b/src/state/config-status.ts
index 7ef12f8ff4..71a2b7e1a3 100644
--- a/src/state/config-status.ts
+++ b/src/state/config-status.ts
@@ -146,7 +146,7 @@ export interface ConfigStatus {
fallback?: ImageSlotStatus | null;
ready?: boolean;
maxPerTurn?: number;
- complexity?: ImageComplexity | null;
+ complexity?: ImageComplexity;
customUrl?: string;
customModel?: string;
openaiConfigured?: boolean;