feat(ingestion): add named OrcaRouter LLM adapter - #606
Open
JinhaoSong322 wants to merge 1 commit into
Open
Conversation
Add OrcaRouterLLM to zep-ingest, mirroring the existing OpenAILLM / AnthropicLLM named-adapter pattern. It pre-fills the OpenAI-compatible gateway base URL (https://api.orcarouter.ai/v1) and the adaptive orcarouter/auto model, and reads the API key from ORCAROUTER_API_KEY (prefix sk-orca-). Exported from zep_ingest.llm; documented in the ingestion README, SETUP, and CHANGELOG; covered by new unit tests. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: jinhao.song <jinhao.song@myflashcloud.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a named OrcaRouter adapter,
OrcaRouterLLM, tozep-ingest, mirroring the existingOpenAILLM/AnthropicLLMnamed-adapter pattern iningestion/src/zep_ingest/llm/.OrcaRouter is an OpenAI-compatible gateway that routes each request to the best model.
OrcaRouterLLMpre-fills:base_url:https://api.orcarouter.ai/v1model:orcarouter/auto(adaptive router)api_key: read fromORCAROUTER_API_KEY(prefixsk-orca-) unless passed explicitlyIt also runs gateway-level, zero-trust security for AI agents on the same endpoint — screening every prompt/response and governing every tool call on a default-deny basis, with no application code changes.
Changes
ingestion/src/zep_ingest/llm/orcarouter.py— newOrcaRouterLLM(OpenAICompatibleLLM)named adapter.ingestion/src/zep_ingest/llm/__init__.py— exportOrcaRouterLLMalongside the existing adapters.ingestion/tests/test_llm_adapters.py— 5 new unit tests (defaults, env key, explicit key override, chat-completions path, missing-SDK error).ingestion/README.md,ingestion/SETUP.md,ingestion/CHANGELOG.md— docs.Verification
ruff checkandruff format --check: clean.mypy src/: no issues.pytest: 669 passed, 2 skipped.OrcaRouterLLM(production path):https://api.orcarouter.ai/v1returnedORCA-OKfororcarouter/auto.Disclosure: I'm an engineer on the OrcaRouter team.