Skip to content

Commit 67d2a6b

Browse files
authored
add grok-4 model (#253)
Signed-off-by: ChengZi <chen.zhang@zilliz.com>
1 parent a575a9a commit 67d2a6b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
---
1313

14-
DeepSearcher combines cutting-edge LLMs (OpenAI o3, Qwen3, DeepSeek, Grok 3, Claude 4 Sonnet, Llama 4, QwQ, etc.) and Vector Databases (Milvus, Zilliz Cloud etc.) to perform search, evaluation, and reasoning based on private data, providing highly accurate answer and comprehensive report. This project is suitable for enterprise knowledge management, intelligent Q&A systems, and information retrieval scenarios.
14+
DeepSearcher combines cutting-edge LLMs (OpenAI o3, Qwen3, DeepSeek, Grok 4, Claude 4 Sonnet, Llama 4, QwQ, etc.) and Vector Databases (Milvus, Zilliz Cloud etc.) to perform search, evaluation, and reasoning based on private data, providing highly accurate answer and comprehensive report. This project is suitable for enterprise knowledge management, intelligent Q&A systems, and information retrieval scenarios.
1515

1616
![Architecture](./assets/pic/deep-searcher-arch.png)
1717

@@ -148,7 +148,7 @@ result = query("Write a report about xxx.") # Your question here
148148
<details>
149149
<summary>Example (XAI Grok)</summary>
150150
<p> Make sure you have prepared your XAI API KEY as an env variable <code>XAI_API_KEY</code>.</p>
151-
<pre><code>config.set_provider_config("llm", "XAI", {"model": "grok-2-latest"})</code></pre>
151+
<pre><code>config.set_provider_config("llm", "XAI", {"model": "grok-4-0709"})</code></pre>
152152
<p> More details about XAI Grok: https://docs.x.ai/docs/overview#featured-models </p>
153153
</details>
154154

@@ -552,7 +552,7 @@ nest_asyncio.apply()
552552
### 🔹 LLM Support
553553
- [OpenAI](https://platform.openai.com/docs/models) (`OPENAI_API_KEY` env variable required)
554554
- [DeepSeek](https://api-docs.deepseek.com/) (`DEEPSEEK_API_KEY` env variable required)
555-
- [XAI Grok](https://x.ai/blog/grok-3) (`XAI_API_KEY` env variable required)
555+
- [XAI Grok](https://x.ai/api) (`XAI_API_KEY` env variable required)
556556
- [Anthropic Claude](https://docs.anthropic.com/en/home) (`ANTHROPIC_API_KEY` env variable required)
557557
- [SiliconFlow Inference Service](https://docs.siliconflow.cn/en/userguide/introduction) (`SILICONFLOW_API_KEY` env variable required)
558558
- [PPIO](https://ppinfra.com/model-api/product/llm-api?utm_source=github_deep-searcher) (`PPIO_API_KEY` env variable required)

deepsearcher/llm/xai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class XAI(BaseLLM):
1818
client: The OpenAI-compatible client instance for X.AI API.
1919
"""
2020

21-
def __init__(self, model: str = "grok-2-latest", **kwargs):
21+
def __init__(self, model: str = "grok-4", **kwargs):
2222
"""
2323
Initialize an X.AI language model client.
2424

0 commit comments

Comments
 (0)