mirror of
https://github.com/andrewyng/openworker.git
synced 2026-11-20 20:37:44 +00:00
Every provider's list says something different about a model, so live_models.py now has one reader per list shape instead of a word filter. A reader gives each row a kind (chat, image, speech to text, embeddings…) and says who decided it: a field of the provider's list, our provider-scoped word list (OpenAI, Azure, Gemini, Meta, MiniMax, NVIDIA, Groq's Prompt Guard), or nothing. Facts ride along: the window, an output cap, image and PDF input, tools, reasoning, a retirement date, aliases. Dated twins fold (Anthropic's -YYYYMMDD, OpenAI's -YYYY-MM-DD), xAI folds by its aliases field and Mistral by name. Better lists where they exist: Cohere's native list with the chat filter, xAI's two calls (ids and modalities, then windows), the ChatGPT backend's own list with the OAuth bearer, SiliconFlow's sub_type=chat, Nebius verbose, Ark's /api/v3/models, OpenRouter's /models/user for the account sign-in. Only Bedrock, Vertex and the Ark agent plan still have no list the app can sign for. The manager offers a keyed or signed-in provider's live list and nothing else: chat rows offered, the other kinds set aside with the reason, a picker model the key does not list appended as not on this key, and no reviewed rows when the first ask fails. Each fact is the first of: the user's own setting, a maintainer OVERRIDES entry, the provider's list, the reviewed catalog. 'Use anyway' is remembered per model (picked_anyway), the engine and capabilities_for read the list's figure before the catalog's, and live facts are written for every picker model. Fixtures under tests/fixtures/live_listings are trimmed copies of what each provider answered on 2026-11-09/10; tests pin which rows are offered, which are set aside and why, and that every id and alias stays accepted when typed.