anomalyco / anomalyco/models.dev
feat(provider): add Prem Router
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.9k
- Forks
- 1.7k
- Avg merge
- 3h 21m
- Merged PRs (30d)
- 873
Description
Request
Add Prem Router as a provider in models.dev so OpenCode can discover it as prem.
Prem Router exposes an OpenAI-compatible Chat Completions API:
- Base URL:
https://router.prem.io/v1 - Auth environment variable:
PREM_ROUTER_API_KEY - Models endpoint: authenticated
GET /v1/models - Chat endpoint:
POST /v1/chat/completions - SDK:
@ai-sdk/openai-compatible
Model catalog
The key-specific catalog includes kimi-k3 and may include qwen-3.8-max. Model availability, context length, capabilities, and whether streaming is required are returned by GET /v1/models.
qwen-3.8-max requires reasoning to remain enabled.
References
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing provider definitions and the entry point that exposes models.dev providers, then compare a similar OpenAI-compatible provider. Use Prem's authenticated GET /v1/models behavior and @ai-sdk/openai-compatible details as the reference; done means OpenCode can discover Prem as prem with the documented key, model catalog, and chat endpoint.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- ai, api
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 70/100