github / github/copilot-cli

Model call failed: possibly due to switching models

Đang mở
#994 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:models
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Describe the bug

Switched from gpt-5.1-codex-mini to gpt-4.1 and started getting these on next prompt:

```
✗ Model call failed: An assistant message with 'tool_calls' must be followed by tool messages responding to each
'tool_call_id'. The following tool_call_ids did not have response messages: call_zQrinFA8BbV4W8OqWnwmaCLg (Request
ID: FC2E:262B60:23C9E0:2BD534:6969AAEB)

✗ Model call failed: An assistant message with 'tool_calls' must be followed by tool messages responding to each
'tool_call_id'. The following tool_call_ids did not have response messages: call_zQrinFA8BbV4W8OqWnwmaCLg (Request
ID: FC2E:262B60:23D9C2:2BE85A:6969AAEC)

✗ Model call failed: An assistant message with 'tool_calls' must be followed by tool messages responding to each
'tool_call_id'. The following tool_call_ids did not have response messages: call_zQrinFA8BbV4W8OqWnwmaCLg (Request
ID: FC2E:262B60:23EDDD:2C00A9:6969AAF2)

✗ Model call failed: An assistant message with 'tool_calls' must be followed by tool messages responding to each
'tool_call_id'. The following tool_call_ids did not have response messages: call_zQrinFA8BbV4W8OqWnwmaCLg (Request
ID: FC2E:262B60:2401EF:2C1900:6969AAFB)

✗ Model call failed: An assistant message with 'tool_calls' must be followed by tool messages responding to each
'tool_call_id'. The following tool_call_ids did not have response messages: call_zQrinFA8BbV4W8OqWnwmaCLg (Request
ID: FC2E:262B60:241E2C:2C3BC2:6969AB04)

✗ Model call failed: An assistant message with 'tool_calls' must be followed by tool messages responding to each
'tool_call_id'. The following tool_call_ids did not have response messages: call_zQrinFA8BbV4W8OqWnwmaCLg (Request
ID: FC2E:262B60:245414:2C7DB5:6969AB10)
```

### Affected version

0.0.382

### Steps to reproduce the behavior

Not sure. On attempting to repro, it told me explicitly 'removed tools will not be used'. When I got the error, I did not get this response to my prompt.

```
● Model changed to: gpt-5.1-codex-mini. The new model will be used for the next conversation.
> This is a test, please respond
● Test acknowledged.
● Model changed to: gpt-4.1. The new model will be used for the next conversation.
> This is a test, please respond
● Test acknowledged. All required tools are available; removed tools will not be used.
```

### Expected behavior

Able to proceed without errors.

### Additional context

_No response_

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

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

Đánh giá

Issue này chưa được đánh giá.

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.