[PR #1601] [MERGED] fix: default value for models with no cost object #9988

Closed
opened 2026-02-16 18:14:30 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1601
Author: @Mahamed-Belkheir
Created: 8/4/2025
Status: Merged
Merged: 8/4/2025
Merged by: @adamdotdevin

Base: devHead: fix/cost-input-undefined


📝 Commits (1)

  • dc1cf6b fix: default value for models with no cost object

📊 Changes

1 file changed (+4 additions, -4 deletions)

View changed files

📝 packages/opencode/src/session/index.ts (+4 -4)

📄 Description

fixes issue caused by chutes models from model.dev json not having a cost object for chutes models.

I think it is also related to #1166 and #1017


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1601 **Author:** [@Mahamed-Belkheir](https://github.com/Mahamed-Belkheir) **Created:** 8/4/2025 **Status:** ✅ Merged **Merged:** 8/4/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `fix/cost-input-undefined` --- ### 📝 Commits (1) - [`dc1cf6b`](https://github.com/anomalyco/opencode/commit/dc1cf6be02b963e50cace048426c7dcd48f3ba4c) fix: default value for models with no cost object ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/session/index.ts` (+4 -4) </details> ### 📄 Description fixes issue caused by chutes models from [model.dev](https://models.dev/api.json) json not having a cost object for chutes models. I think it is also related to #1166 and #1017 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:30 -05:00
yindo closed this issue 2026-02-16 18:14:30 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9988