Closed userbox020 closed 2 months ago
It's fine on NextChatWeb, please Check Your Code
@Harry-zklcdc hello and thanks for your time and response, the post that open webui does https://github.com/open-webui/open-webui is the follow
POST /openai/chat/completions HTTP/1.1
Host: localhost:80
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Authorization: Bearer $Auth-Token
Content-Type: application/json
Origin: http://localhost:80
Connection: keep-alive
Priority: u=4
Accept-Encoding: gzip, deflate
Content-Length: 2774263
{"model":"Precise-vision","stream":true,"stream_options":{"include_usage":true},"messages":[{"role":"user","content":[{"type":"text","text":"describe the image"},{"type":"image_url","image_url":{"url":"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAZAAA/...(VERY LONG STRING...)4/KoP8ru/wCn7nvf/wCJv2bf/wChjf8A/VZ07/vbO1r/AMK5f/4X1X9e7/6Hpb8a/9k="}}]}],"citations":false,"chat_id":"cf2e96eb-f693-4e67-822c-1a271fb51dd1"}
and the response it get back is the follow:
HTTP/1.1 500 Internal Server Error
date: Fri, 28 Jun 2024 23:54:19 GMT
server: uvicorn
content-type: application/json
access-control-allow-origin: *
access-control-allow-credentials: true
x-process-time: 0
Content-Length: 169
{"detail":"text input must be of type `str` (single example), `List[str]` (batch or single pretokenized example) or `List[List[str]]` (batch of pretokenized examples)."}
Describe the problem related to the feature request
im getting the follow error when trying to ask questions about images
Describe the solution you'd like
upload images and ask about them
Describe alternatives you've considered
ollama vision models working fine
Additional context
No response