GrokLLMService uses grok-3-beta as default model

This commit is contained in:
Mark Backman
2025-04-19 08:05:59 -04:00
parent dc3646f0e7
commit a9b551d73e
2 changed files with 6 additions and 4 deletions

View File

@@ -10,8 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### Added
- Added support for Smart Turn Detection via the `turn_analyzer` transport - Added support for Smart Turn Detection via the `turn_analyzer` transport
parameter. You can now choose between `SmartTurnAnalyzer()` for remote parameter. You can now choose between `SmartTurnAnalyzer()` for remote
inference or `LocalCoreMLSmartTurnAnalyzer()` for on-device inference using inference or `LocalCoreMLSmartTurnAnalyzer()` for on-device inference using
Core ML. Core ML.
- `DeepgramTTSService` accepts `base_url` argument again, allowing you to - `DeepgramTTSService` accepts `base_url` argument again, allowing you to
@@ -37,6 +37,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- `GrokLLMService` now uses `grok-3-beta` as its default model.
- Daily's REST helpers now include an `eject_at_token_exp` param, which ejects - Daily's REST helpers now include an `eject_at_token_exp` param, which ejects
the user when their token expires. This new parameter defaults to False. the user when their token expires. This new parameter defaults to False.
Also, the default value for `enable_prejoin_ui` changed to False and Also, the default value for `enable_prejoin_ui` changed to False and

View File

@@ -42,7 +42,7 @@ class GrokLLMService(OpenAILLMService):
Args: Args:
api_key (str): The API key for accessing Grok's API api_key (str): The API key for accessing Grok's API
base_url (str, optional): The base URL for Grok API. Defaults to "https://api.x.ai/v1" base_url (str, optional): The base URL for Grok API. Defaults to "https://api.x.ai/v1"
model (str, optional): The model identifier to use. Defaults to "grok-2" model (str, optional): The model identifier to use. Defaults to "grok-3-beta"
**kwargs: Additional keyword arguments passed to OpenAILLMService **kwargs: Additional keyword arguments passed to OpenAILLMService
""" """
@@ -51,7 +51,7 @@ class GrokLLMService(OpenAILLMService):
*, *,
api_key: str, api_key: str,
base_url: str = "https://api.x.ai/v1", base_url: str = "https://api.x.ai/v1",
model: str = "grok-2", model: str = "grok-3-beta",
**kwargs, **kwargs,
): ):
super().__init__(api_key=api_key, base_url=base_url, model=model, **kwargs) super().__init__(api_key=api_key, base_url=base_url, model=model, **kwargs)