GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [SambaNova] Cost not displayed for MiniMax M2.7 via SambaNova provider · Issue #26088 · anomalyco/opencode

[SambaNova] Cost not displayed for MiniMax M2.7 via SambaNova provider #26088

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[SambaNova] Cost not displayed for MiniMax M2.7 via SambaNova provider#26088
Copy link
Assignees
nexxeln

Description

@GerbenCdg
GerbenCdg
opened on May 6, 2026
Issue body actions

Description

When using MiniMax M2.7 via the SambaNova provider, no cost is displayed in OpenCode. Token usage is shown but the $ cost is absent.

Provider config

"sambanova": {
  "npm": "@ai-sdk/openai-compatible",
  "name": "SambaNova",
  "options": {
    "baseURL": "https://api.sambanova.ai/v1"
  },
  "models": {
    "MiniMax-M2.7": {
      "name": "MiniMax M2.7 SambaNova"
    }
  }
}

Expected behavior

Cost should appear based on MiniMax pricing (input: $0.60/M tokens, output: $2.40/M tokens).

Actual behavior

OpenCode shows token usage but no cost line.

Likely cause

SambaNova API does not return usage.cost in its response. OpenCode relies on the API response for cost data.

Suggested fix

  • Support manual cost configuration per model in opencode.json (e.g. "cost": { "input": 0.60, "output": 2.40 } per million tokens)
  • Or fallback: use models.dev pricing data when API doesn't return cost

Activity

  1. github-actions
    assigned
    nexxeln
    on May 6, 2026
  2. github-actions commented on May 6, 2026

    @github-actions
    github-actionsBot
    on May 6, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • Cost tracking shows $0.00 for custom providers using @ai-sdk/openai-compatible even when cost fields are configured #24113: Cost tracking shows $0.00 for custom providers using @ai-sdk/openai-compatible even when cost fields are configured — same underlying problem (no cost calculated when API doesn't return cost data, using the same npm package)
    • Cost tracking ($ Spent) does not work for custom provider models #17223: Cost tracking ($ Spent) does not work for custom provider models — same root cause with custom providers via @ai-sdk/openai-compatible

    If your issue is distinct from these, please add details explaining how it differs.

  3. hholst80 commented on May 6, 2026

    @hholst80
    hholst80
    on May 6, 2026
    More actions

    @GerbenCdg Why not raise this with the provider? Or perhaps you have? I would much rather have the cost data be sourced from the provider data itself rather than a work-for-free project like OpenCode taking any kind of semi responsibility for the size of my eventual bills. ;-)

  4. github-actions commented on Jul 8, 2026

    @github-actions
    github-actionsBot
    on Jul 8, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  5. github-actions
    closed this as not plannedon Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @nexxeln
    nexxeln

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.