Merge pull request #4209 from pipecat-ai/mb/grok-3-default
Change GrokLLMService default model to grok-3
This commit is contained in:
1
changelog/4209.changed.md
Normal file
1
changelog/4209.changed.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
- Changed `GrokLLMService` default model from `grok-3-beta` to `grok-3`, now that the model is generally available.
|
||||||
@@ -102,7 +102,7 @@ class GrokLLMService(OpenAILLMService):
|
|||||||
Args:
|
Args:
|
||||||
api_key: The API key for accessing Grok's API.
|
api_key: The API key for accessing Grok's API.
|
||||||
base_url: The base URL for Grok API. Defaults to "https://api.x.ai/v1".
|
base_url: The base URL for Grok API. Defaults to "https://api.x.ai/v1".
|
||||||
model: The model identifier to use. Defaults to "grok-3-beta".
|
model: The model identifier to use. Defaults to "grok-3".
|
||||||
|
|
||||||
.. deprecated:: 0.0.105
|
.. deprecated:: 0.0.105
|
||||||
Use ``settings=GrokLLMService.Settings(model=...)`` instead.
|
Use ``settings=GrokLLMService.Settings(model=...)`` instead.
|
||||||
@@ -112,7 +112,9 @@ class GrokLLMService(OpenAILLMService):
|
|||||||
**kwargs: Additional keyword arguments passed to OpenAILLMService.
|
**kwargs: Additional keyword arguments passed to OpenAILLMService.
|
||||||
"""
|
"""
|
||||||
# 1. Initialize default_settings with hardcoded defaults
|
# 1. Initialize default_settings with hardcoded defaults
|
||||||
default_settings = self.Settings(model="grok-3-beta")
|
default_settings = self.Settings(
|
||||||
|
model="grok-3",
|
||||||
|
)
|
||||||
|
|
||||||
# 2. Apply direct init arg overrides (deprecated)
|
# 2. Apply direct init arg overrides (deprecated)
|
||||||
if model is not None:
|
if model is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user