Skip to content

[add-rerank-endpoint] Build SDK call kwargs#53

Open
tbille wants to merge 3 commits intomainfrom
add-rerank-endpoint
Open

[add-rerank-endpoint] Build SDK call kwargs#53
tbille wants to merge 3 commits intomainfrom
add-rerank-endpoint

Conversation

@tbille
Copy link
Copy Markdown
Contributor

@tbille tbille commented Apr 17, 2026

Summary

Implementation for add-rerank-endpoint in gateway.

Changes

  • Regenerate OpenAPI spec with /v1/rerank endpoint
  • Add integration tests for /v1/rerank endpoint
  • Add POST /v1/rerank route handler and register router

Testing

  • See commit history for test additions.

tbille added 3 commits April 17, 2026 22:16
Implement rerank endpoint following the embeddings pattern: auth,
rate-limit, budget validation, provider call via arerank(), usage
logging with cost tracking, and error handling.

The arerank import uses a try/except since the any-llm SDK rerank
support ships separately.
Cover auth, master key, provider errors, usage logging, error logging,
validation (empty docs, invalid top_n), optional field forwarding,
and cost tracking with pricing.
@tbille tbille deployed to integration-tests April 17, 2026 20:16 — with GitHub Actions Active
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