issue: Connecting to stable difussion with OpenWeb UI- string indices must be integrers not str #5673

Closed
opened 2025-11-11 16:28:40 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @monksy on GitHub (Jun 30, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

v0.6.15 (latest)

Ollama Version (if applicable)

0.9.3

Operating System

Arch

Browser (if applicable)

Firefox

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

I'm able to connect to stable difussion and connect it with OpenWeb UI

I'm using the stable difussion docker image from:
https://github.com/simonmcnair/stable-diffusion-webui-docker

Setting up the accounts on OpenWebUI Produces the error below.

Actual Behavior

Image

Steps to Reproduce

Enable image generation

Logs & Screenshots

Image

open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
open-webui  |     |     await app(scope, receive, sender)
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
open-webui  |     |     response = await f(request)
open-webui  |     |                ^^^^^^^^^^^^^^^^
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
open-webui  |     |     raw_response = await run_endpoint_function(
open-webui  |     |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
open-webui  |     |     return await dependant.call(**values)
open-webui  |     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |     |   File "/app/backend/open_webui/routers/images.py", line 303, in update_image_config
open-webui  |     |     set_image_model(request, form_data.MODEL)
open-webui  |     |   File "/app/backend/open_webui/routers/images.py", line 239, in set_image_model
open-webui  |     |     if model != options["sd_model_checkpoint"]:
open-webui  |     |                 ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |     | KeyError: 'sd_model_checkpoint'
open-webui  |     +------------------------------------

sd-logs.log

Additional Information

No response

Originally created by @monksy on GitHub (Jun 30, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version v0.6.15 (latest) ### Ollama Version (if applicable) 0.9.3 ### Operating System Arch ### Browser (if applicable) Firefox ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior I'm able to connect to stable difussion and connect it with OpenWeb UI I'm using the stable difussion docker image from: https://github.com/simonmcnair/stable-diffusion-webui-docker Setting up the accounts on OpenWebUI Produces the error below. ### Actual Behavior ![Image](https://github.com/user-attachments/assets/3325f086-88b9-4e8b-8dc2-2dd6f56b0f18) ### Steps to Reproduce Enable image generation ### Logs & Screenshots ![Image](https://github.com/user-attachments/assets/8f58fe3f-d819-442f-8e5f-a73840d42c6a) ``` open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app open-webui | | await app(scope, receive, sender) open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app open-webui | | response = await f(request) open-webui | | ^^^^^^^^^^^^^^^^ open-webui | | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app open-webui | | raw_response = await run_endpoint_function( open-webui | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function open-webui | | return await dependant.call(**values) open-webui | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | | File "/app/backend/open_webui/routers/images.py", line 303, in update_image_config open-webui | | set_image_model(request, form_data.MODEL) open-webui | | File "/app/backend/open_webui/routers/images.py", line 239, in set_image_model open-webui | | if model != options["sd_model_checkpoint"]: open-webui | | ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ open-webui | | KeyError: 'sd_model_checkpoint' open-webui | +------------------------------------ ``` [sd-logs.log](https://github.com/user-attachments/files/20988328/sd-logs.log) ### Additional Information _No response_
GiteaMirror added the bug label 2025-11-11 16:28:40 -06:00
Author
Owner

@monksy commented on GitHub (Jun 30, 2025):

One thing to note:

http://localhost:7860/sdapi/v1/sd-models returns "not found"

@monksy commented on GitHub (Jun 30, 2025): One thing to note: http://localhost:7860/sdapi/v1/sd-models returns "not found"
Author
Owner

@monksy commented on GitHub (Jul 1, 2025):

This was an issue because the stable-diffussion container didn't have API enabled.

Use: environment: - CLI_ARGS=--allow-code --medvram --xformers --enable-insecure-extension-access --api

For auto.

@monksy commented on GitHub (Jul 1, 2025): This was an issue because the stable-diffussion container didn't have API enabled. Use: ` environment: - CLI_ARGS=--allow-code --medvram --xformers --enable-insecure-extension-access --api ` For auto.
Author
Owner

@monksy commented on GitHub (Jul 2, 2025):

I'm going to write a new issue for this, since it didn't validate that there was an actual SD api underneath I think that's the "open-webui bug" here.

Created it here: https://github.com/open-webui/open-webui/issues/15489

@monksy commented on GitHub (Jul 2, 2025): I'm going to write a new issue for this, since it didn't validate that there was an actual SD api underneath I think that's the "open-webui bug" here. Created it here: https://github.com/open-webui/open-webui/issues/15489
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#5673