feat:nebius token factory provider#187
Open
amrrs wants to merge 5 commits into
Open
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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 Nebius Token Factory provider with dynamic model listing
Summary
Adds Nebius Token Factory (which hosts SoTA open models) as a built-in OpenAI-compatible provider, plus a general dynamic model listing capability so a provider's catalog can be fetched live from
GET /v1/models?verbose=trueat build time instead of being hardcoded. Nebius is the first consumer.Changes
tau_ai.models.list_openai_compatible_models— tolerant/modelsclient (sendsverbose=true, parsesdata[].id, extracts optional context windows, dedups). Supports a shorttimeoutoverride for best-effort build-time use.dynamic_modelsflag — added toProviderCatalogEntryandOpenAICompatibleProviderConfig(serialized inproviders.json). When set, an emptymodels/default_modelround-trips safely; non-dynamic providers keep strict validation.ensure_dynamic_provider_models— best-effort helper that fetches the live catalog for the targeted provider when credentials are usable, keeps the existing default model when still offered, merges context windows, and persists via the normal settings path.--provideror default) before resolving the selection.providers.jsonrewritten only when the catalog changes; fetch failures logged at debug and never block startup..env/.env.*added to.gitignore.Testing
uv run pytest tests/test_tau_ai.py tests/test_provider_config.py→ 65 passed (verbose on/off, dedup, context windows, no-credentials no-op, non-dynamic untouched, persistence round-trip, change-only write).uv run ruff checkintroduces no new errors.