OpenCode's free tier now returns HTTP 403 for anonymous traffic outside the OpenCode client, so the built-in keyless provider is dead weight: - drop the opencode-free provider row, aliases (free/opencode_free), model catalog, keyless runtime ladder rung, header wiring, and cached slugs - delete the model-providers/opencode-free plugin - update tests and the compat manifest for the removed symbols - keep a migration hint in auth.py so users who had it configured see a clear error naming the removal Existing opencode-free configs can move to opencode-zen (pay-as-you-go) or opencode-go (flat subscription).
15 lines
566 B
Python
15 lines
566 B
Python
"""Muse Spark hosts map to the right models.dev provider id (context/pricing)."""
|
|
|
|
from agent.models_dev import PROVIDER_TO_MODELS_DEV
|
|
|
|
|
|
def test_meta_ai_maps_to_meta():
|
|
assert PROVIDER_TO_MODELS_DEV.get("meta-ai") == "meta"
|
|
assert PROVIDER_TO_MODELS_DEV.get("meta") == "meta"
|
|
|
|
|
|
def test_opencode_free_is_no_longer_mapped():
|
|
# The keyless OpenCode free tier was removed (OpenCode 403s anonymous access outside its
|
|
# own client), so `opencode-free` must not claim a models.dev catalog anymore.
|
|
assert "opencode-free" not in PROVIDER_TO_MODELS_DEV
|