Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Choose the model and effort per stage in lexvm generate

未关闭
#44 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
backend, cli

调研方向

Start with packages/cli/src/generate/index.ts, llm.ts, and pipeline.ts to trace how model and effort options reach each stage; then read docs/authoring/pipeline.md. Add per-stage option and environment variable handling with global fallbacks, and check the fake LLM tests for stage selection and prompt caching. Done means the acceptance criteria pass and the docs describe recommended hybrid settings without hardcoded model IDs.

由索引模型根据 Issue 内容生成。

描述

area: cli area: pipeline priority: medium type: feature

Context

The generation stages differ in what they demand. Concept and puzzle dependency chart need the strongest design judgment but few tokens; world, logic and repair stages produce most of the tokens and are checked by the verifier. Today lexvm generate uses one model for every stage. A hybrid (largest model for design, smallest capable model at high effort for writing and repair) should cut cost by an order of magnitude at similar quality, but needs per-stage configuration.

Scope

  • Options --model-design, --model-write, --model-repair (and matching --effort-*), falling back to --model / LEXVM_MODEL and --effort; equivalent environment variables.
  • No model ids hardcoded in the repository (existing rule); docs describe tiers, not ids.
  • design/run.json records per stage which option slot was used and token usage, without model ids (existing provenance rule).
  • Docs: recommended configurations by pack length, and the note that small models default to a lower effort and should run at high for writing and repair.

Acceptance criteria

  • Each stage uses the model and effort from its slot, verified with a fake LLM in tests.
  • Missing slot options fall back to the global options; missing global model still exits 2 with guidance.
  • Prompt caching still works within a stage group.
  • docs/authoring/pipeline.md documents the slots and a recommended hybrid configuration.

References

  • packages/cli/src/generate/index.ts
  • packages/cli/src/generate/llm.ts
  • packages/cli/src/generate/pipeline.ts
  • docs/authoring/pipeline.md
主要语言
TypeScript
星标
0
派生
0
平均合并
28 分钟
30 天内合并 PR
2

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nullthrone/lexvm 的其他 Issue

查看 nullthrone/lexvm 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。