Failed request with o4-mini: AI_APICallError: “Item … of type ‘reasoning’ was provided without its required following item” #570

Closed
opened 2026-02-16 17:27:23 -05:00 by yindo · 3 comments
Owner

Originally created by @effektsvk on GitHub (Jul 9, 2025).

Originally assigned to: @thdxr on GitHub.

Hey, I just updated to 0.2.13 and I'm getting an error when using o4-mini model. I'm not sure how to do more detailed logs but here is the screenshot:
Image

Originally created by @effektsvk on GitHub (Jul 9, 2025). Originally assigned to: @thdxr on GitHub. Hey, I just updated to `0.2.13` and I'm getting an error when using `o4-mini` model. I'm not sure how to do more detailed logs but here is the screenshot: <img width="1012" height="1172" alt="Image" src="https://github.com/user-attachments/assets/e7b6d0da-a7fe-488c-bbbe-5a8818d77004" />
yindo closed this issue 2026-02-16 17:27:23 -05:00
Author
Owner

@garymjr commented on GitHub (Jul 9, 2025):

I think this is a duplicate of #770. It looks like vercel's ai sdk is the root cause of the error.

@garymjr commented on GitHub (Jul 9, 2025): I think this is a duplicate of #770. It looks like vercel's ai sdk is the root cause of the error.
Author
Owner

@suhjohn commented on GitHub (Jul 12, 2025):

Would love this addressed soon! I think o4-mini is actually the best coding model for non Typescript code

@suhjohn commented on GitHub (Jul 12, 2025): Would love this addressed soon! I think o4-mini is actually the best coding model for non Typescript code
Author
Owner

@thdxr commented on GitHub (Jul 12, 2025):

closing in favor of #770

@thdxr commented on GitHub (Jul 12, 2025): closing in favor of #770
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#570