Repository navigation
Add client.literature (public /v1 API), API-key login and an MCP server - #10
Merged
Merged
Conversation
- OmniBioAI(api_key="omni_sk_...") (or OMNIBIOAI_API_KEY) sends the key
as the bearer token; no refresh applies. access_token and api_key are
mutually exclusive; a refresh_token with an API key is rejected.
- client.literature.ask(question, study, top_k, mode, hybrid_search,
idempotency_key) -> POST {gateway}/v1/literature/answers, always with
an Idempotency-Key (generated unless given) so a retry is never billed
twice. client.literature.studies() -> GET /v1/literature/studies.
- New exceptions: QuotaExceededError (402) and RateLimitError (429,
.retry_after from Retry-After), both subclasses of ValidationError so
existing handlers keep catching them. The /v1 error envelope's message
is used as the exception text.
- omnibioai-mcp (optional extra "mcp", mcp>=2,<3): stdio MCP server with
answer_with_citations, find_pmids and list_studies tools, configured by
OMNIBIOAI_API_KEY and OMNIBIOAI_BASE_URL. `import omnibioai` still
needs only requests.
Coverage stays at 100% (112 tests).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nxi4bp7DP1ancERNUUfzj
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.
import omnibioaistill needs only requests.Coverage stays at 100% (112 tests).
Claude-Session: https://claude.ai/code/session_016nxi4bp7DP1ancERNUUfzj