[loop-cycle-1] fix: use config for xAI base URL (#647) #655

Merged
Timmy merged 1 commits from fix/xai-base-url-config into main 2026-03-20 22:47:05 +00:00
Owner

Summary

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

Changes

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

Closes #647

## Summary Replaces 3 hardcoded `https://api.x.ai/v1` URLs with `settings.xai_base_url` from config. ### Changes - `src/config.py`: Added `xai_base_url` setting with default `https://api.x.ai/v1` - `src/timmy/backends.py`: Both `_get_client()` and `_get_async_client()` now use config - `src/infrastructure/router/cascade.py`: Fallback URL now uses config Closes #647
Timmy added 1 commit 2026-03-20 22:47:02 +00:00
fix: use config for xAI base URL instead of hardcoding (#647)
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
fa53050ea2
Timmy merged commit d2a5866650 into main 2026-03-20 22:47:05 +00:00
Timmy deleted branch fix/xai-base-url-config 2026-03-20 22:47:06 +00:00
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#655