Support configurable LLM gateway for BookStack agent#90
Merged
Conversation
BookstackQAAgent now accepts an optional llm_base_url parameter (also read from LLM_BASE_URL env var) so the Anthropic SDK can be pointed at a proxy gateway instead of the Anthropic API directly. The API server passes LLM_BASE_URL through at startup. Also fixes a Pyright unreachable-code diagnostic in get_agent() by using getattr with an explicit BookstackQAAgent | None annotation.
- cryptography>=48.0.1 (GHSA-537c-gmf6-5ccf) - starlette>=1.3.1 (CVE-2026-54282, CVE-2026-54283) - python-multipart>=0.0.31 (CVE-2026-53538, CVE-2026-53539, CVE-2026-53540) - pyjwt>=2.13.0 (PYSEC-2026-175/176/177/178/179) - pip>=26.1.2 (PYSEC-2026-196) Co-authored-by: aieng-bot <aieng-bot@vectorinstitute.ai>
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
llm_base_urlparameter toBookstackQAAgent(also read fromLLM_BASE_URLenv var) so the Anthropic SDK can target a proxy gateway (e.g.https://proxy.vectorinstitute.ai) instead of the Anthropic API directlyLLM_BASE_URLthrough at startupget_agent()Test plan
LLM_BASE_URL=https://proxy.vectorinstitute.aiandCLAUDE_MODEL=Qwen3_5-122B-A10Band verify the agent responds correctlyLLM_BASE_URLstill falls back to the Anthropic API