Set grok-2 as default model for GrokLLMSService

This commit is contained in:
Mark Backman
2025-02-25 10:00:45 -05:00
parent fe9fc61c4e
commit 36a729cbfe
2 changed files with 5 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ All notable changes to **Pipecat** will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
## [Unreleased]
### Added
@@ -32,6 +32,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- `GrokLLMSService` now uses `grok-2` as the default model.
- `AnthropicLLMService` now uses `claude-3-7-sonnet-20250219` as the default
model.

View File

@@ -125,7 +125,7 @@ class GrokLLMService(OpenAILLMService):
Args:
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"
model (str, optional): The model identifier to use. Defaults to "grok-beta"
model (str, optional): The model identifier to use. Defaults to "grok-2"
**kwargs: Additional keyword arguments passed to OpenAILLMService
"""
@@ -134,7 +134,7 @@ class GrokLLMService(OpenAILLMService):
*,
api_key: str,
base_url: str = "https://api.x.ai/v1",
model: str = "grok-beta",
model: str = "grok-2",
**kwargs,
):
super().__init__(api_key=api_key, base_url=base_url, model=model, **kwargs)