Openai Compatible Embeddings Batching

Custom embeddings adapters against OpenAI-compatible endpoints (OpenRouter, vLLM, Together, Anyscale, Groq, self-hosted gateways) must batch transparently and fail loudly — some providers return HTTP 200 with a non-standard error body missing the `data` key, which surfaces as a bare KeyError deep inside LangChain. Includes the two-layer adapter fix and the regression test that actually exercises the batching path.

aksheyw 5e2028e 8.2 KB Updated

File contents

aksheyw/claude-code-learned-skills/tree/main/skills/openai-compatible-embeddings-batching commit 5e2028e7f3

Frequently asked questions

npx skillmds@latest add aksheyw/openai-compatible-embeddings-batching