mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
461bb17913
The generator fed the model a repo-wide `git log -50` as context and told it it was writing notes for "CopilotKit vX.Y.Z, an open-source AI agent framework for React applications" — wrong on three counts for an angular or channels release: the wrong commits, the wrong framing, and the wrong release title (only the monorepo lane is titled `vX.Y.Z`). Pass the scope through, build context from that lane's own commits, name the packages actually being published, and tell the model to write about nothing else. Also fix the API call itself: the pinned model string was a dated snapshot, max_tokens 2048 could truncate a large release, and the response reader took content[0].text — which is not the text block on models that return thinking blocks first.