[loop-cycle-1675] fix: replace hardcoded xAI base URL with config setting (#647) #649

Closed
Timmy wants to merge 0 commits from fix/xai-base-url-config into main
Owner

Summary

Replaces 3 hardcoded https://api.x.ai/v1 URLs with settings.xai_base_url config field.

Changes

  • src/config.py: Added xai_base_url setting (default: https://api.x.ai/v1)
  • src/timmy/backends.py: Both _get_client() and _get_async_client() now use settings.xai_base_url
  • src/infrastructure/router/cascade.py: Fallback URL now uses settings.xai_base_url

Testing

  • tox -e unit: 1887 passed (256 errors are pre-existing swarm ModuleNotFoundError)
  • No new failures introduced

Closes #647

## Summary Replaces 3 hardcoded `https://api.x.ai/v1` URLs with `settings.xai_base_url` config field. ## Changes - **src/config.py**: Added `xai_base_url` setting (default: `https://api.x.ai/v1`) - **src/timmy/backends.py**: Both `_get_client()` and `_get_async_client()` now use `settings.xai_base_url` - **src/infrastructure/router/cascade.py**: Fallback URL now uses `settings.xai_base_url` ## Testing - `tox -e unit`: 1887 passed (256 errors are pre-existing `swarm` ModuleNotFoundError) - No new failures introduced Closes #647
Timmy closed this pull request 2026-03-20 22:32:53 +00:00
Author
Owner

Closing: branch is identical to main (same SHA). Changes were already merged.

Closing: branch is identical to main (same SHA). Changes were already merged.
Some checks failed
Tests / lint (push) Has been cancelled
Tests / test (push) Has been cancelled
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#649