Skip to content

docs(api): correct adaptive chat completion cache doc (keyed by endpoint+model) - #1492

Open
PratikDhanave (PratikDhanave) wants to merge 1 commit into
microsoft:mainfrom
PratikDhanave:docs/adaptive-chat-cache-doc
Open

PratikDhanave (PratikDhanave) wants to merge 1 commit into
microsoft:mainfrom
PratikDhanave:docs/adaptive-chat-cache-doc

Conversation

@PratikDhanave

Copy link
Copy Markdown

postAdaptiveChatCompletion (apps/api/src/adaptive-chat-completions.ts) is documented as using a "process-local, model-independent compatibility cache", but cacheKey(endpoint, model) returns ${normalizedEndpoint}\n${model.trim()} — learned compatibility is keyed by endpoint and model, not shared across models. The tests prove the opposite of the comment ("isolates learned compatibility by endpoint and model"; "evicts the least recently used entry after 100 endpoint-model keys"). Corrected the doc. Doc-only.

…int+model)

The doc called the compatibility cache "model-independent", but cacheKey is
`${normalizedEndpoint}\n${model.trim()}` — learned compatibility is keyed by
endpoint AND model, not shared across models. The tests confirm it ("isolates
learned compatibility by endpoint and model"; LRU evicts after N
endpoint-model keys). Describe the actual behavior.
@cedricvidal Cedric Vidal (cedricvidal) added the community-contribution Pull requests submitted by external community contributors. label Oct 13, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Pull requests submitted by external community contributors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants