ollama: attaching a file does not work/results in error 500/400 Bad request
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, ollama
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- JavaScript
- スター
- 629
- フォーク
- 31
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ServiceStack/llms のほかの issue
-
Error adding custom provider (perplexity) "unsupported operand type(s) for +=: 'int' and 'str'" オープン
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
ServiceStack/llms#42 · コメント 3 件 ·
-
Support Windows オープンenhancement help wanted
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
ServiceStack/llms#28 · リアクション 2 件 ·
-
Google OAuth オープンenhancement help wanted
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
ServiceStack/llms#15 · コメント 11 件 ·
-
ServiceStack/llms#2 · コメント 2 件 · 担当者 1 名 ·
ServiceStack/llms の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
babalae/bettergi-scripts-list#3674 ·
-
ecosystem wording
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
matrix-org/matrix.org#3649 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
vadimdemedes/ink#1029 ·
-
code-quality refactoring
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
langchain-ai/deepagents#6450 ·