mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 07:43:10 -05:00
Getting a 400 error when using the docker images with ollama bundled #3380
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @colinrees on GitHub (Jan 23, 2025).
Installation Method
Installed using the docker instructions for GPU with Ollama installed
Environment
Latest versions of dockerdesktop
I have also tried the dev version
I have done a fresh install of docker desktop, ollama
also tried with ollama running locally on the machine not in docker.
Confirmation:
Expected Behavior:
Expected to get a response from the llm
Actual Behavior:
receive the following error:
400: 1 validation error for GenerateChatCompletionForm
format
Input should be a valid dictionary [type=dict_type, input_value='json', input_type=str]
For further information visit https://errors.pydantic.dev/2.9/v/dict_type
Description
Reproduction Details
Steps to Reproduce:
load an llm and type hi into the box.
Logs and Screenshots
Docker Container Logs:
INFO: 172.17.0.1:52398 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
2025-01-23 11:29:12 ERROR [open_webui.routers.ollama] 1 validation error for GenerateChatCompletionForm
2025-01-23 11:29:12 format
2025-01-23 11:29:12 Input should be a valid dictionary [type=dict_type, input_value='json', input_type=str]
2025-01-23 11:29:12 For further information visit https://errors.pydantic.dev/2.9/v/dict_type
2025-01-23 11:29:12 Traceback (most recent call last):
2025-01-23 11:29:12 File "/app/backend/open_webui/routers/ollama.py", line 981, in generate_chat_completion
2025-01-23 11:29:12 form_data = GenerateChatCompletionForm(**form_data)
2025-01-23 11:29:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-23 11:29:12 File "/usr/local/lib/python3.11/site-packages/pydantic/main.py", line 212, in init
2025-01-23 11:29:12 validated_self = self.pydantic_validator.validate_python(data, self_instance=self)
2025-01-23 11:29:12 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-23 11:29:12 pydantic_core._pydantic_core.ValidationError: 1 validation error for GenerateChatCompletionForm
2025-01-23 11:29:12 format
2025-01-23 11:29:12 Input should be a valid dictionary [type=dict_type, input_value='json', input_type=str]
2025-01-23 11:29:12 For further information visit https://errors.pydantic.dev/2.9/v/dict_type