storkit: done 90_story_fetch_real_context_window_size_from_anthropic_models_api

This commit is contained in:
Dave
2026-03-21 12:01:24 +00:00
parent a6c8cf0daf
commit 3554594d8d
2 changed files with 21 additions and 20 deletions

View File

@@ -1,20 +0,0 @@
---
name: "Remove Makefile and make script/release the single entry point for releases"
---
# Story 358: Remove Makefile and make script/release the single entry point for releases
## User Story
As a ..., I want ..., so that ...
## Acceptance Criteria
- [ ] Makefile is deleted
- [ ] script/release requires a version argument and prints usage if missing
- [ ] script/release still builds macOS and Linux binaries, bumps versions, generates changelog, tags, and publishes to Gitea
- [ ] No dependency on make
## Out of Scope
- TBD

View File

@@ -0,0 +1,21 @@
---
name: "Fetch real context window size from Anthropic models API"
---
# Story 90: Fetch real context window size from Anthropic models API
## User Story
As a user chatting with a Claude model, I want the context remaining indicator to show the actual context window size for the selected model (fetched from the Anthropic API) instead of a hardcoded value, so that the indicator is accurate across all current and future models.
## Acceptance Criteria
- [ ] Backend AnthropicModelInfo struct deserializes the context_window field from the Anthropic /v1/models response
- [ ] Backend /anthropic/models endpoint returns both model ID and context window size to the frontend
- [ ] Frontend uses the real context window size from the API response instead of the hardcoded getContextWindowSize map for Anthropic models
- [ ] Context indicator in ChatHeader displays the correct percentage based on the real context window size
- [ ] Hardcoded fallback remains for Ollama/local models that don't provide context window metadata
## Out of Scope
- TBD