github / github/app

CAPIError 400 invalid message content type <nil>

オープン
#2,140 コメント 4 件 リアクション 1 件 担当者 0 名 GitHub で見る
Bugs
主要言語
言語のデータがありません
スター
2.1k
フォーク
153
PR マージ指標
30日以内にマージされた PR はありません

説明

### Short summary

When using a local model (seems to be any model loaded with Ollama), after one response from the model, any subsequent requests will instantly error with the following error: CAPIError 400 invalid message content type

### Affected version or release

v1.0.25

### Installation context

Installed on Windows 11 desktop, private repo (can provide if needed)

### What happened?

Trying to use a local model served by Ollama, getting the following error after one response from the model:

`CAPIError 400 invalid message content type `

Seems to happen with any model loaded in Ollama that supports tool calling - attempted with `gpt-oss:20b` and `empero-ai/Qwable-9B-Claude-Fable-5-GGUF` (from huggingface) models.

I haven't found any relevant errors in any Github issues, nor any relevant search results. There isn't any workaround except for starting a new session, where I can only make one request before getting the error again.

### Steps to reproduce

1. Add local Ollama provider with any model that supports tool calling
2. In Copilot app, make any request in a new session
3. After first response from the model, make another request
4. See error

### Expected behavior

Subsequent requests should be attempted and respond as normal without errors

### Additional context

_No response_

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Reproduce the issue in the Copilot app using an Ollama model with tool-calling support, then trace how the second request is assembled after the first response. Focus on the message content that becomes nil and verify that repeated requests complete normally without restarting the session.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ollama
領域
ai, desktop
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。