Skip to content

generate: add --main-model, --cluster-model and --fallback-model flags - #137

Merged
anhnh2002 merged 2 commits into
mainfrom
feat/generate-model-flags
Oct 15, 2026
Merged

anhnh2002 merged 2 commits into
mainfrom
feat/generate-model-flags

Conversation

@anhnh2002

Copy link
Copy Markdown
Collaborator

Adds three flags to codewiki generate: --main-model, --cluster-model, --fallback-model.

They override the models saved in ~/.codewiki/config.json for one run only, like --max-tokens does. This lets a caller that runs codewiki on many repos pick the model per run without changing the global config.

  • The effective models go into the generator config (so they are also what metadata records).
  • --verbose logs the main and cluster model.
  • New test: tests/test_model_flags.py (saved models by default, flags win). Full suite: 316 passed.

Callers that run codewiki for one repo (e.g. a migration pipeline) can now pick
the models per run instead of editing the global ~/.codewiki/config.json.
The flags override the saved config for this run only.
@anhnh2002
anhnh2002 merged commit 5b95c84 into main Oct 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant