Skip to content

[AIC-3484] Send LD-API-Version on evaluations API requests - #116

Merged
jeffdupont merged 2 commits into
mainfrom
jdupont/AIC-3484/ld-api-version
Sep 28, 2026
Merged

jeffdupont merged 2 commits into
mainfrom
jdupont/AIC-3484/ld-api-version

Conversation

@jeffdupont

@jeffdupont jeffdupont commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The evaluations harness now sends LD-API-Version: 20240415 on every LaunchDarkly management API request.
  • 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

  • uv run pytest packages/client/tests/test_evaluations.py packages/client/tests/test_evaluations_run.py
  • Confirm POST and GET requests record LD-API-Version: 20240415.

…quests

Pins 20240415 so evaluations calls made with a customer's token are not rejected when that token defaults below API v4.

Co-authored-by: Cursor <cursoragent@cursor.com>

@bwoskow-ld bwoskow-ld left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but with an optional stylistic comment.

Comment thread packages/client/src/launchdarkly_ai_server/evaluations/api.py Outdated
@jeffdupont

jeffdupont commented Sep 28, 2026 via email

Copy link
Copy Markdown
Contributor Author

Matches the optimizer client in python-server-sdk-ai#216 and addresses
review feedback: the value is used once, so keep it next to the header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jeffdupont
jeffdupont merged commit 447e426 into main Sep 28, 2026
7 checks passed
@jeffdupont
jeffdupont deleted the jdupont/AIC-3484/ld-api-version branch September 28, 2026 20:57
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.

2 participants