feat: add token market provider - #4965
Open
FitBBC wants to merge 3 commits into
Open
Conversation
Contributor
Action items
|
- logo.svg: drop fixed width/height, square the viewBox to 480x480 and center the art with translate(32 0) - remove the 15 image/video/embedding/rerank models that had no lab metadata to inherit from; they will land in a follow-up PR that adds the missing models/<lab>/ entries first - mimo-v2.5-pro: reduce reasoning_options to a plain toggle - claude-haiku-4-5: drop the description already inherited from the lab - kimi-k2.7-code: drop the family key already inherited from the lab - hy3: align the effort surface to none|low|high used by other relays
Contributor
Action items
|
- logo.svg: set fill=currentColor on the root <svg> in addition to the path, so the review heuristic picks it up - deepseek-v4-flash, deepseek-v4-pro, kimi-k3: DashScope collapses low/medium into high and xhigh into max, so only high|max are distinctly reachable; correct the effort ladder and wire comments - longcat-2.0: drop budget_tokens, first-party LongCat only documents an enabled/disabled toggle; the 128-32,768 budget is a channel-wide SiliconFlow dialect field with no LongCat-specific evidence - claude-sonnet-5: document the toggle wire (thinking.type = adaptive|disabled, no manual budget_tokens on this model) - mimo-v2.5-pro: drop the unbacked toggle, the generic OpenAI-compatible adapter only forwards reasoning_effort verbatim with no dedicated toggle field - kimi-k2.7-code: keep toggle+budget_tokens, cite the DashScope peer provider declaring the identical surface for this model ID
Contributor
|
Checking a few more peer files and the logo final form to lock findings. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Add Token Market Provider
This PR adds Token Market as an OpenAI-compatible model provider.
Provider
DeepSeek, Qwen, GLM, MiniMax, and others.
API
Base URL:
https://api.tokensmarket.ai/v1
Authentication:
Authorization: Bearer <API_KEY>
Changes
Data Sources
The provider metadata in this PR is based on Token Market's official API
and documentation.
Provider and model availability
GET https://api.tokensmarket.ai/v1/modelsThis endpoint is used to verify that the submitted model IDs are currently
available through Token Market.
Pricing
https://www.tokensmarket.ai/models
The
cost.input,cost.output,cost.cache_read, andcost.cache_writevalues in the provider overrides are taken from Token Market's current
published pricing/catalog data.
All prices in models.dev are expressed in USD per million tokens unless the
underlying model uses a different billing unit.
Model capabilities and modalities
For models using
base_model, general model metadata such as context limits,tool-calling support, reasoning support, and modalities is inherited from the
corresponding canonical
models/<lab>/...entry.Provider-specific overrides are included only where Token Market exposes a
different supported surface.
Token Market model availability and provider-specific modality support were
verified against:
GET https://api.tokensmarket.ai/v1/modelshttps://www.tokensmarket.ai/docs
Provider-specific behavior
Reasoning controls, caching behavior, and other provider-specific overrides
are only declared where they are supported by Token Market's documented API
behavior.
Relevant API documentation:
https://www.tokensmarket.ai/docs
https://www.tokensmarket.ai/docs
https://www.tokensmarket.ai/docs