Roo-Code/packages
Hannes Rudolph a981925065 feat(xai): add dynamic model discovery with correct pricing
- Implemented dynamic model discovery for xAI provider using /v1/language-models endpoint
- Models are now fetched at runtime with real-time pricing and capabilities
- Fixed pricing conversion: XAI API returns fractional cents (basis points), divide by 10,000 not 100
- This fixes pricing display showing $20.00 instead of $0.20 per 1M tokens
- Removed static xAI models from MODELS_BY_PROVIDER to rely on dynamic discovery
- Enhanced error logging with detailed status and URL information
- Support dynamic model context window overrides from API
- Fixed parseApiPrice to handle zero values correctly (for free models)
- Provided complete ModelInfo fallback in useSelectedModel for UI type safety
- Added comprehensive test coverage for cost utilities and XAI fetcher
- Updated all tests to reflect correct pricing scale and dynamic model behavior
2025-11-03 21:38:03 -07:00
..
build Fix: Transform keybindings in nightly build to fix command+y shortcut (#8070) 2025-09-17 19:27:43 -04:00
cloud Revert cloud agents for now (#8713) 2025-10-17 16:59:16 -04:00
config-eslint Upgrade to ESLint 9 + share eslint config across workspaces (#3815) 2025-05-21 21:30:21 -07:00
config-typescript Move @roo-code/cloud to the Roo-Code repo (#7503) 2025-08-28 11:18:45 -07:00
evals Set port 3446 for web-evals in production mode (#8288) 2025-09-24 08:43:05 -07:00
ipc Add an API for resuming tasks by ID (#7122) 2025-08-15 12:03:58 -04:00
telemetry Track when telemetry settings change (#8339) 2025-09-26 22:48:33 -04:00
types feat(xai): add dynamic model discovery with correct pricing 2025-11-03 21:38:03 -07:00