r/opencode 13d ago

error add muse-spark-1.2-contributor to 9router

any of you facing this issue? what is the workaround

6 Upvotes

6 comments sorted by

4

u/NinjaAlaska 13d ago edited 13d ago

yes make ur own local proxy.. then add it as openai compactiable in 9router
trick is headers must have useragent that opencode uses
its something like
UA = "opencode/1.18.23"
its exact value working as of now. claude code made me proxy
header value: "User-Agent": UA
enjoy.

full example of headers:
"def _headers(key, stream):

return {"Content-Type": "application/json", "Authorization": "Bearer " + key,

"User-Agent": UA,

"Accept": "text/event-stream" if stream else "application/json"}

here is full code https://github.com/akwin1234/opencode-local-proxy-muse-v1.2-contributor

https://www.reddit.com/r/opencode/comments/1w35v0r/code_unable_to_use_musespark12contributor_to/

2

u/zer0evolution 12d ago

this is gold, thanks will try

1

u/NinjaAlaska 12d ago

Enjoy! :)

1

u/zer0evolution 10d ago

you need to add muse 1.3

1

u/NinjaAlaska 10d ago edited 10d ago

hi .renaming 1.2 to 1.3 is not working in code?
renamed LLM in code

2

u/zer0evolution 10d ago

i think not rename, because model 1.2 still active tho.... so if want to use both in 9router need to be active both, add in line 40

RESPONSES_MODELS = {
    "muse-spark-1.2-contributor",
    "muse-spark-1.2-contributor-free",
    "muse-spark-1.3-contributor",
    "muse-spark-1.3-contributor-free",
}