mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Set default model in HuggingFaceMedia
Improve handling of shared chats Show api_key input if required
This commit is contained in:
parent
6767000604
commit
ce500f0d49
18 changed files with 206 additions and 111 deletions
|
|
@ -30,6 +30,7 @@ class Grok(AsyncAuthedProvider, ProviderModelMixin):
|
|||
|
||||
default_model = "grok-3"
|
||||
models = [default_model, "grok-3-thinking", "grok-2"]
|
||||
model_aliases = {"grok-3-r1": "grok-3-thinking"}
|
||||
|
||||
@classmethod
|
||||
async def on_auth_async(cls, cookies: Cookies = None, proxy: str = None, **kwargs) -> AsyncIterator:
|
||||
|
|
@ -73,7 +74,7 @@ class Grok(AsyncAuthedProvider, ProviderModelMixin):
|
|||
"sendFinalMetadata": True,
|
||||
"customInstructions": "",
|
||||
"deepsearchPreset": "",
|
||||
"isReasoning": model.endswith("-thinking"),
|
||||
"isReasoning": model.endswith("-thinking") or model.endswith("-r1"),
|
||||
}
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue