From 84a253ec6855ab685e570c704e4cdef081524dad Mon Sep 17 00:00:00 2001 From: silentoplayz Date: Tue, 11 Aug 2026 09:47:07 -0400 Subject: [PATCH] fix: resolve generated image urls against the api base url in the Images playground --- src/lib/components/playground/Images.svelte | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib/components/playground/Images.svelte b/src/lib/components/playground/Images.svelte index d8906babe9..4379792d5f 100644 --- a/src/lib/components/playground/Images.svelte +++ b/src/lib/components/playground/Images.svelte @@ -5,6 +5,7 @@ import { user } from '$lib/stores'; import { imageGenerations, imageEdits } from '$lib/apis/images'; + import { WEBUI_BASE_URL } from '$lib/constants'; import Spinner from '$lib/components/common/Spinner.svelte'; @@ -97,6 +98,8 @@ } }; + const resolveImageUrl = (url: string) => (url.startsWith('/') ? `${WEBUI_BASE_URL}${url}` : url); + const downloadImage = async (url: string, index: number) => { try { const response = await fetch(url); @@ -136,10 +139,10 @@ {#each generatedImages as image, index}