Replies: 1 comment
-
Any solution for this error? should it be /sdapi/v1/sd-models instead of /api/v1/models? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Report
Hello, no matter what I have tried I can't get open webui to interact with a1111. I keep on getting something went wrong string indices must be integers not str.
My openwebui instance runs on Ubuntu with python 3.11 and my a1111 I stance runs on win11 with python 3.10. I can access a1111 from openwebui host just fine. Also, running --api --share --listen flags on a1111 side
A1111 flags:
set COMMANDLINE_ARGS=--api --listen --share --server-name=10.254.254.86 --xformers --skip-torch-cuda-test --no-half-vae --api-log --medvram --api-auth=none --loglevel=DEBUG --theme=dark --update-check --no-prompt-history
Somewhere I read something that could be related however I'm unsure.. regarding mismatch of expected format from a1111 api's output (JSON)?
Description
Bug Summary:
When attempting to validate AUTOMATIC1111 Base URL through OpenWebUI > Admin > Settings > Images > http://10.254.254.86:7860 , I hit the connect icon/button and get something went wrong string indices must be integers not str error message. Please see image attached
Expected Behavior:
OpenWebUI should be able to interact normally with A1111 after validating AUTOMATIC1111 Base URL
Actual Behavior:
OpenWebUI can not interact with A1111 through API after validating AUTOMATIC1111 Base URL
Environment
**Open WebUI Version: v0.1.124 - docker version on Ubuntu with python v3.11
**Ollama (if applicable)
Operating System: WebUI running on Ubuntu 23.04 - A1111 on win11
Browser (if applicable): Chrome Version 124.0.6367.208
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Docker Container Logs:
Screenshot attached
Screenshots (if applicable):
[Attach any relevant screenshots to help illustrate the issue]
Installation Method
[Describe the method you used to install the project, e.g., manual installation, Docker, package manager, etc.]
Open Webui installed via Docker
user@pt104:~$ sudo docker run -d -p 3000:8080 -v open-webui:/app/backend/data -e OLLAMA_BASE_URLS="http://10.254.254.87:11434;http://10.254.254.88:11434;http://10.254.254.89:11434" -e AUTOMATIC1111_BASE_URL=http://10.254.254.86:7860/ -e ENABLE_IMAGE_GENERATION=True --name open-webui --restart always ghcr.io/open-webui/open-webui:main
user@pt104:~$ python3.11 --version Python 3.11.4
Additional Information
Checking the logs from openwebui container I see GET /images/API/v1/models HTTP/1.1" 400 Bad Request. So to me is as if a1111 is returning not expected output. Screenshot attached.
Beta Was this translation helpful? Give feedback.
All reactions