Skip to content

Conversation

@kylecarbs
Copy link
Member

Summary

  • add the xAI provider and Grok model metadata
  • extend configuration, env hydration, and runtime wiring for xai
  • refresh docs and tests to surface Grok support

Testing

  • bun test ./tests/models/knownModels.test.ts
  • make typecheck

_Generated with _

@kylecarbs kylecarbs force-pushed the add-grok-support branch 7 times, most recently from 038ea63 to 000a4d0 Compare November 18, 2025 18:56
- Revert jest.config.js coverage exclusions to original state
- Restore ToolDefinition interface needed for proper typing
- Keep eslint-disable comments for necessary 'as any' cast in zodToJsonSchema
Match origin/main implementation which uses 'as const' directly
without intermediate interface or 'as any' cast.
- Replace grok-4 and grok-3-mini with correct model IDs
- Add grok-4-fast-non-reasoning (default for grok-4)
- Add grok-code-fast-1 (for coding tasks)
- Implement reasoning toggle: automatically swaps grok-4 between
  non-reasoning and reasoning variants based on thinkingLevel
- Update docs to reflect model behavior
- Revert tests/ipcMain/helpers.ts debugging additions
- Revert tests/models/knownModels.test.ts xAI-specific logic

These were debugging changes not related to Grok feature.
xAI models in models.json are prefixed with 'xai/' so we need
to add that prefix when looking them up.
- Replace grok-4-fast with grok-4.1-fast variants
- Update reasoning toggle to use grok-4.1-fast-reasoning
- Keep aliases pointing to grok-4.1 as primary
- Replace grok-4.1 with grok-4-1 (hyphenated) to match xAI API
- Update model IDs: grok-4-1-fast-non-reasoning (default) and grok-4-1-fast-reasoning (with thinking)
- Add grok-4-1-fast-* entries to models.json with pricing/limits
- Update reasoning toggle logic in aiService.ts
- Update docs to reflect grok-4-1 naming

Grok 4.1 Fast released Nov 2025: tops LMArena at 1483 Elo, improved EQ/creativity, 3x fewer hallucinations
@kylecarbs kylecarbs merged commit b0c6721 into main Nov 20, 2025
16 checks passed
@kylecarbs kylecarbs deleted the add-grok-support branch November 20, 2025 15:23
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.

2 participants