feat: add TokenLab provider#12962
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
|
CI update: I pushed refresh commit |
|
The failing jetbrains-tests job is the unrelated Autocomplete > testAutocomplete() integration test; this PR only changes the OpenAI-compatible provider under core/llm/llms/ and TokenLab documentation, with no IntelliJ files touched. I attempted a failed-job rerun, but GitHub requires repository admin rights. Could a maintainer rerun that job when convenient? |
|
I investigated the only failing check,
All TokenLab-specific core checks and the remaining required checks pass. I also tried to rerun the failed job, but GitHub restricts reruns to repository admins. Please rerun the flaky JetBrains job when convenient; no TokenLab code change is warranted by this failure. |
Summary
tokenlabas a Continue LLM provider backed by the OpenAI-compatible chat endpoint athttps://api.tokenlab.sh/v1/.Validation
cd core && npm run vitest -- llm/llms/OpenAI-compatible-core.vitest.tscd core && npm run tsc:checknpx prettier --check core/llm/llms/TokenLab.ts core/llm/llms/index.ts core/llm/llms/OpenAI-compatible-core.vitest.ts docs/customize/model-providers/more/tokenlab.mdx docs/customize/model-providers/overview.mdxnode -e "fetch('https://api.tokenlab.sh/v1/models').then(r=>r.json().then(j=>{const ids=(j.data||[]).map(m=>m.id); console.log(r.status, ['gpt-5.5','claude-sonnet-5','gemini-3.5-flash','qwen3.7-max'].every(id=>ids.includes(id)), ids.length);}))"Supersedes #12959. The previous PR was closed while fixing contributor commit metadata; this replacement branch preserves the same scoped diff with commits authored by
hedging8563 <45883076+hedging8563@users.noreply.github.com>.