Repository navigation
feat: Add update.py script for API-assisted updates - #578
Merged
Merged
Conversation
fghaas
force-pushed
the
feat/update-llms-docs
branch
from
November 5, 2026 12:39
8db3130 to
87cb097
Compare
Contributor
Author
|
@colder-is-better Let me know what you think of this approach. Thanks! |
colder-is-better
left a comment
Contributor
There was a problem hiding this comment.
Looks good and convenient. I only have one question.
fghaas
force-pushed
the
feat/update-llms-docs
branch
from
November 5, 2026 13:11
87cb097 to
7cc6ba1
Compare
colder-is-better
self-requested a review
November 5, 2026 13:19
colder-is-better
previously approved these changes
Nov 5, 2026
- Add scripts/update.py to fetch available models from Cleura AI and regenerate the table in docs/reference/services/ai/llms.md. The script uses the OpenAI-compatible GET /v1/models endpoint, honouring OPENAI_API_KEY and OPENAI_API_BASE_URL environment variables. The generated table is sorted alphabetically by model ID and uses the model count to create the summary line. - Add [testenv:update] to invoke scripts/update.py, passing OPENAI_* environment variables so that model list tables can be regenerated via `tox -e update`. - Update the README. References: https://ai.cleura.cloud/openapi.json Assisted-by: opencode/qwen3.6-35b-a3b-fp8
Use the "tox -e update" approach to auto-generate the list of currently supported models.
fghaas
force-pushed
the
feat/update-llms-docs
branch
from
November 5, 2026 13:37
7cc6ba1 to
a74d7ed
Compare
fghaas
commented
Nov 5, 2026
| # Models are matched against this list of regex patterns in priority | ||
| # order — the first match wins. Patterns that don't fit any pattern | ||
| # fall back to a description derived from architecture modalities. | ||
| DESIGN_PATTERNS: list[tuple[re.Pattern, str]] = [ |
Contributor
Author
There was a problem hiding this comment.
@colder-is-better: Actually, it makes sense to use a similar approach here too.
colder-is-better
approved these changes
Nov 5, 2026
Contributor
Author
|
@StefanTerdell: no need for you to approve this; I just wanted you to be aware that this exists. |
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.
scripts/update.pyto fetch available models from Cleura AI and regenerate the table indocs/reference/services/ai/llms.md.The script uses the OpenAI-compatible
GET/v1/modelsendpoint, honouringOPENAI_API_KEYandOPENAI_API_BASE_URLenvironment variables.The generated table is sorted alphabetically by model ID and uses the model count to create the summary line.
[testenv:update]to invokescripts/update.py, passingOPENAI_*environment variables so that model list tables can be regenerated viatox -e update.References:
https://ai.cleura.cloud/openapi.json
Assisted-by: opencode/qwen3.6-35b-a3b-fp8