Skip to content

feat(agent): split k3 profile context windows — k3 1M, k3-256k 256K - #125

Merged
jkyberneees merged 1 commit into
mainfrom
feat/k3-context-split
Jul 29, 2026
Merged

feat(agent): split k3 profile context windows — k3 1M, k3-256k 256K#125
jkyberneees merged 1 commit into
mainfrom
feat/k3-context-split

Conversation

@jkyberneees

Copy link
Copy Markdown
Contributor

Problem

The k3 profile introduced in #124 assigned a single 256K context fallback to the whole family, but the variants differ: bare k3 has a 1M context window, k3-256k is the 256K variant.

Changes

  • odek.go — separate KnownProfiles entries: k3-256k → 256K, k3 → 1M. Existing longest-prefix matching resolves k3-256k to its own entry before the k3 prefix. Timeout stays 300s for both; /models discovery still takes priority over these fallbacks.
  • docs/PROVIDERS.mdk3 and k3-256k listed as separate rows.

Test coverage

  • TestLookupProfile_KimiMatch now asserts k3 → 1M and k3-256k → 256K.
  • TestNew_SideCallTimeoutScaling still passes unchanged (both variants keep the 300s timeout → 120s capped side-call bound).

go build ./... and the profile tests pass.

Longest-prefix matching gives k3-256k its own 256K entry while bare
k3 keeps the 1M context window. Timeout stays 300s for both.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
odek ab1698c Commit Preview URL

Branch Preview URL
Jul 29 2026, 09:43 AM

@jkyberneees
jkyberneees merged commit dbdfdb7 into main Jul 29, 2026
10 checks passed
@jkyberneees
jkyberneees deleted the feat/k3-context-split branch July 29, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant