Repository navigation
Commit 36627c7
authored
fix(optimization): pin LD-API-Version on agent-optimization API calls (AIC-3484) (#216)
## Summary
- Agent-optimization requests now send `LD-API-Version: 20240415` by
default.
- AI Config calls in the same client still send `beta`, which overrides
that default.
- After 2026-12-31, a call with no version header is rejected when the
customer's token defaults below API v4. These requests use that token.
## Test plan
- [x] `uv run pytest` in `packages/optimization`
- [x] Confirm a request with no extra headers records `Ld-api-version:
20240415`, and `get_ai_config_variation` still sends `beta`.2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
171 | 179 | | |
172 | 180 | | |
173 | 181 | | |
| |||
0 commit comments