github / github/app

CAPIError 400 invalid message content type <nil>

Đang mở
#2,140 4 bình luận 1 reaction 0 người được giao Xem trên GitHub
Bugs
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
2.1k
Fork
153
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Tái hiện vấn đề trong ứng dụng Copilot bằng mô hình Ollama có hỗ trợ tool-calling, sau đó theo dõi cách yêu cầu thứ hai được tạo sau phản hồi đầu tiên. Tập trung vào nội dung thông báo trở thành nil và xác minh rằng các yêu cầu lặp lại hoàn tất bình thường mà không cần khởi động lại phiên.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
ollama
Lĩnh vực
ai, desktop
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
55/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.