Commit 12f76b0
authored
fix: Only send 1M context beta header for supported models (#1334)
## Problem
Related: Kilo-Org/kilocode#6300
## Changes
1. Import supports1MContext from session models
2. Conditionally set betas header only when the resolved model supports 1M context
3. Prevents "extra usage required for long context" errors on standard 200K models
## How did you test this?
Manually1 parent aa535aa commit 12f76b0
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
932 | 933 | | |
933 | 934 | | |
934 | 935 | | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
935 | 940 | | |
936 | 941 | | |
937 | 942 | | |
| |||
0 commit comments