You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add tokenlab as a Continue LLM provider backed by the OpenAI-compatible chat endpoint at https://api.tokenlab.sh/v1/.
Register the provider in the core LLM class list and add it to the shared OpenAI-compatible provider test suite.
Add TokenLab docs with YAML/JSON examples, example model IDs, and a note that TokenLab also exposes native Responses, Anthropic Messages, Gemini generateContent, embeddings, images, videos, audio, realtime, and translation endpoints for direct API callers.
Validation
cd core && npm run vitest -- llm/llms/OpenAI-compatible-core.vitest.ts
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>.
CI update: I pushed refresh commit 6806b2e after the CLA was completed. The Windows VSIX job now passes, and the remaining required failure is jetbrains-tests only.\n\nI checked the failure artifact: the regular JetBrains unit test report shows 53/53 passing; the single failure is the JetBrains integration UI test Autocomplete > testAutocomplete(), where the assertion text.contains("TEST_LLM_RESPONSE_0") is false. This PR only changes the TokenLab OpenAI-compatible provider registration/tests and provider docs, so it does not touch the JetBrains autocomplete integration path. Could a maintainer rerun or advise on that integration-test failure?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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>.