Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- Add fillPrimaryModelFromModels (src/lib/primary-model.ts) and call it once in ModelResult.resolveRequestForContext for both the static and async-function paths, plus in applyNextTurnParamsToRequest. - Drop the duplicate blocks in call-model.ts (ModelResult already resolves it) and async-params.ts (keeps the public resolveAsyncFunctions unchanged). - Revert buildNextTurnParamsContext reporting models as [model] when the caller never set models; add a test pinning that. - Document that applyNextTurnParamsToRequest resets an explicit model to models[0] when only models changes. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
I pushed three non-force commits (merge, refactor, and a follow-up that moves the helper):
typecheck, lint and unit tests (1244) pass locally. Still open: we need live API confirmation that the backend actually requires a top-level |
model-result.ts already imports async-params; adding a separate module pushed it over the sentrux god-file threshold and failed the structural gate. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Ran the live check on
So yes, the backend needs a top-level I also ran the failing example from #121 ( |
|
Thanks @warun7, this confirms it: The backend should still be fixed too (accept 🤖 Generated with Claude Code |
Fixes #121.
Summary
modelfrommodels[0]acrosscallModel,resolveAsyncFunctions, andModelResultwhenmodelis omitted.modelproperty on incoming requests.modelandmodelsinbuildNextTurnParamsContextandapplyNextTurnParamsToRequest.modelwhen provided alongsidemodels.modelsfallback, explicit model preservation, and asyncmodelsfunctions.