GAT-00001: Add /v1/embeddings endpoint - #6
Conversation
|
OpenLoops worker update for task 738dfa4a-e136-469f-861d-afe21f16ab2b. Code blocker found by adversarial review was fixed and pushed as de7ce10 ( Validation passed locally on the fixed PR head and again on a no-commit merge of the fixed PR into current
Current GitHub PR state after push: OPEN, non-draft, mergeable=MERGEABLE, mergeStateStatus=CLEAN, headRefOid=de7ce10ddaa1c5d760be7f60916a87bfc9388a71, no status checks reported, reviewDecision empty. Merge is currently blocked on formal non-author review/access. Current gh auth is |
874c243 to
5bacbb8
Compare
Add POST /v1/embeddings through gateway auth, operation-aware routing, provider fallback, budgets, usage normalization, per-gateway-key rate limiting, and best-effort ledger recording. Embedding input is never written to the usage ledger; post-flight hard-budget failures still record spend before rejecting. Routing is now operation-aware: chat requires chat/streaming/tools capabilities while embeddings require the embeddings capability. The OpenAI-compatible adapter builds /embeddings requests and serializes embeddings-specific usage. Rebased onto current main (readiness, contracts, Anthropic/Gemini adapters, per-gateway-key rate limiting); embeddings now enforces the same rate limits and threads env into budget evaluation for parity with chat. Bump 0.1.5 -> 0.1.6.
5bacbb8 to
87fc3c1
Compare
Summary
POST /v1/embeddingshandling through gateway auth, routing, provider fallback, budgets, usage normalization, and ledger recording.embeddingscapability./embeddingsrequest building and embeddings-specific usage serialization.Validation
bun installbun test(64 pass)bun run typecheckbun run buildgit diff --cached --no-ext-difffound no credential-shaped matches before commitAdversarial Review
resolveRoute(options, request)callers.embedsupport.Task: 4cf413d2-fd1e-4882-9659-a2514392169d