fix: set default AGENT_BASE_URL to production doc-agents URL#345
fix: set default AGENT_BASE_URL to production doc-agents URL#345afterrburn merged 1 commit intomainfrom
Conversation
Co-Authored-By: srith@agentuity.com <rithsenghorn@gmail.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis PR introduces a default backend URL configuration constant and updates the agent base URL initialization logic to fall back to this default when environment variables are not provided. The explicit AGENT_BASE_URL requirement check has been removed with simplified error handling. Changes
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
✏️ Tip: You can disable this entire section by setting Comment |
Summary
Fixes 503 errors on AI search by setting a default value for
AGENT_BASE_URLtohttps://p0f83a312791b60ff.agentuity.run. Previously, the middleware returned 503 if this env var was not explicitly set.Changes:
AGENT_BASE_URLinlib/config.tsandmiddleware.tsAGENT_BEARER_TOKEN(sinceAGENT_BASE_URLnow has a default)Review & Testing Checklist for Human
https://p0f83a312791b60ff.agentuity.runis the intended production doc-agents endpointAGENT_BEARER_TOKENis set in Cloudflare: This env var is still required and will cause 503 if missingNote: The default URL is duplicated in two files. Consider extracting to a shared constant if this becomes a maintenance concern.
Notes
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.