Skip to content

[BUG] Muse Spark 1.2 model not workingΒ #165

Description

@harshmann10

πŸ› Muse Spark 1.2 β€” API 400 Error on Every Request

πŸ› What happened?

Muse Spark 1.2 (muse-spark-1.2-contributor) fails on every request with HTTP 400. The API returns an empty assistant response with finish_reason: null, causing the extension to throw OpenCodeRequestError. The model appears to reject the request payload (990KB) without providing a meaningful error message.

πŸ”„ Steps to reproduce

  1. Set provider to OpenCode Go
  2. Select model muse-spark-1.2-contributor
  3. Send any prompt (even a simple one like "hello")
  4. Request fails immediately with: Sorry, your request failed. Please try again.

βœ… What did you expect?

The model should respond with a completion, or return a descriptive error message explaining why the request was rejected (e.g., payload too large, invalid parameters, model unavailable).

πŸ–₯️ Environment

  • Extension version: 0.6.0
  • VS Code version: (please fill in β€” Help β†’ About)
  • Provider: OpenCode Go
  • Model: muse-spark-1.2-contributor

πŸ“Έ Logs or screenshots

Error 1 (user-facing):

Sorry, your request failed. Please try again.

Client Request Id: f84dae2f-0b63-49cd-a545-60aac4b4b2a0

Reason: OpenCode Go API request failed (400) model=muse-spark-1.2-contributor payloadBytes=990778: {"id":"chatcmpl_oikufvx92vl","object":"chat.completion","created":1787146321,"model":"muse-spark-1.2-contributor","choices":[{"index":0,"message":{"role":"assistant"},"finish_reason":null}]}

Error 2 (console):

OpenCode Go API request failed (HTTP 400) for muse-spark-1.2-contributor: {"id":"chatcmpl_oikufvx92vl","object":"chat.completion","created":1787146321,"model":"muse-spark-1.2-contributor","choices":[{"index":0,"message":{"role":"assistant"},"finish_reason":null}]}

Stack trace:

at buildOpenCodeRequestError (c:\Users\Harsh\.vscode\extensions\ltmoerdani.opencode-copilot-chat-0.6.0\out\errors.js:39:12)
at streamOpenCodeResponse (c:\Users\Harsh\.vscode\extensions\ltmoerdani.opencode-copilot-chat-0.6.0\out\streaming.js:360:73)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async streamChatCompletions (c:\Users\Harsh\.vscode\extensions\ltmoerdani.opencode-copilot-chat-0.6.0\out\streaming.js:70:5)
at async OpenCodeProvider.provideLanguageModelChatResponse (c:\Users\Harsh\.vscode\extensions\ltmoerdani.opencode-copilot-chat-0.6.0\out\extension.js:2702:13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions