Skip to content

Support configurable LLM gateway for BookStack agent#90

Merged
amrit110 merged 4 commits into
mainfrom
bookstack-gateway-support
Jun 16, 2026
Merged

Support configurable LLM gateway for BookStack agent#90
amrit110 merged 4 commits into
mainfrom
bookstack-gateway-support

Conversation

@amrit110

@amrit110 amrit110 commented Jun 16, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds llm_base_url parameter to BookstackQAAgent (also read from LLM_BASE_URL env var) so the Anthropic SDK can target a proxy gateway (e.g. https://proxy.vectorinstitute.ai) instead of the Anthropic API directly
  • API server passes LLM_BASE_URL through at startup
  • Fixes a Pyright unreachable-code diagnostic in get_agent()

Test plan

  • Set LLM_BASE_URL=https://proxy.vectorinstitute.ai and CLAUDE_MODEL=Qwen3_5-122B-A10B and verify the agent responds correctly
  • Verify unset LLM_BASE_URL still falls back to the Anthropic API

amrit110 and others added 4 commits June 16, 2026 08:09
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>
@amrit110 amrit110 merged commit 4a71325 into main Jun 16, 2026
9 checks passed
@amrit110 amrit110 deleted the bookstack-gateway-support branch June 16, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant