ollama: attaching a file does not work/results in error 500/400 Bad request
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, ollama
Hướng nghiên cứu
Start with the OllamaProvider path used by the --serve web UI and inspect the POST request to /v1/chat/completions shown in the logs. Reproduce with a text, shell, or Python attachment and compare the file content payload with Ollama's accepted format. Done means the attached document is summarized without the provider returning HTTP 400 or the server returning HTTP 500.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Steps to reproduce:
llms --serve 8080 --verbose, access web UI- select ollama provider (tested with multiple models)
- attach a file (tested with multiple text files/shell/python scripts) with a promt su chas
Please summarize this documentand submit the query - the web UI displays an error and not response is returned
HTTP 500 Internal Server Error
{
"error": "HTTP 400 Bad Request"
}
Logs:
provider: ollama OllamaProvider
POST http://localhost:11434/v1/chat/completions
{
"model": "deepseek-r1:14b",
"messages": [
{
"role": "user",
"content": [
{
"type": "file",
"file": {
"filename": "test.xml",
"file_data": "data:text/xml;base64,(1325)"
}
},
{
"type": "text",
"text": "Summarize the file\n\n[\ud83d\udcce test.xml]"
}
]
}
],
"enable_thinking": true,
"metadata": {
"threadId": "1765739448549"
},
"stream": false
}
Provider ollama failed: HTTP 400 Bad Request
- Ngôn ngữ chính
- JavaScript
- Star
- 629
- Fork
- 31
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ServiceStack/llms
-
Error adding custom provider (perplexity) "unsupported operand type(s) for +=: 'int' and 'str'" Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
ServiceStack/llms#42 · 3 bình luận ·
-
Support Windows Đang mởenhancement help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
ServiceStack/llms#28 · 2 reaction ·
-
Google OAuth Đang mởenhancement help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
ServiceStack/llms#15 · 11 bình luận ·
-
ServiceStack/llms#2 · 2 bình luận · 1 người được giao ·
Tất cả issue của ServiceStack/llms
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
avniproject/avni-client#2135 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
babalae/bettergi-scripts-list#3674 ·
-
A-Release-Notes C-Editing D-Modest S-Ready-For-Implementation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
bevyengine/bevy-website#2595 ·
-
ecosystem wording
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
matrix-org/matrix.org#3649 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
vadimdemedes/ink#1029 ·