try to fix the frontend e2e test errors

This commit is contained in:
Willem Jiang 2026-04-26 15:48:57 +08:00
parent 9eca429a29
commit 3f88045b98
3 changed files with 34 additions and 16 deletions

View File

@ -101,7 +101,7 @@ export default function NewAgentPage() {
const threadId = useMemo(() => uuid(), []);
const [thread, sendMessage] = useThreadStream({
const { thread, sendMessage } = useThreadStream({
threadId: step === "chat" ? threadId : undefined,
context: {
mode: "flash",

View File

@ -162,22 +162,34 @@ Install: `cd backend && uv add 'deerflow-harness[firecrawl]'`
<Tabs items={["Jina AI (default)", "Exa", "InfoQuest", "Firecrawl"]}>
<Tabs.Tab>
```yaml tools: - use: deerflow.community.jina_ai.tools:web_fetch_tool
api_key: $JINA_API_KEY # optional; anonymous usage has rate limits ```
Converts web pages to clean Markdown. Works without an API key at reduced
rate limits.
```yaml
tools:
- use: deerflow.community.jina_ai.tools:web_fetch_tool
api_key: $JINA_API_KEY # optional; anonymous usage has rate limits
```
Converts web pages to clean Markdown. Works without an API key at reduced rate
limits.
</Tabs.Tab>
<Tabs.Tab>
```yaml tools: - use: deerflow.community.exa.tools:web_fetch_tool api_key:
$EXA_API_KEY ```
```yaml
tools:
- use: deerflow.community.exa.tools:web_fetch_tool
api_key: $EXA_API_KEY
```
</Tabs.Tab>
<Tabs.Tab>
```yaml tools: - use: deerflow.community.infoquest.tools:web_fetch_tool
api_key: $INFOQUEST_API_KEY ```
```yaml
tools:
- use: deerflow.community.infoquest.tools:web_fetch_tool
api_key: $INFOQUEST_API_KEY
```
</Tabs.Tab>
<Tabs.Tab>
```yaml tools: - use: deerflow.community.firecrawl.tools:web_fetch_tool
api_key: $FIRECRAWL_API_KEY ```
```yaml
tools:
- use: deerflow.community.firecrawl.tools:web_fetch_tool
api_key: $FIRECRAWL_API_KEY
```
</Tabs.Tab>
</Tabs>

View File

@ -148,13 +148,19 @@ Firecrawl 驱动的搜索和爬取。需要 [Firecrawl](https://firecrawl.dev) A
<Tabs items={["Jina AI默认", "Exa"]}>
<Tabs.Tab>
```yaml tools: - use: deerflow.community.jina_ai.tools:web_fetch_tool
api_key: $JINA_API_KEY # 可选;匿名使用有速率限制 ``` 将网页转换为干净的
Markdown。无 API Key 也可使用,但有更严格的速率限制。
```yaml
tools:
- use: deerflow.community.jina_ai.tools:web_fetch_tool
api_key: $JINA_API_KEY # 可选;匿名使用有速率限制
```
将网页转换为干净的 Markdown。无 API Key 也可使用,但有更严格的速率限制。
</Tabs.Tab>
<Tabs.Tab>
```yaml tools: - use: deerflow.community.exa.tools:web_fetch_tool api_key:
$EXA_API_KEY ```
```yaml
tools:
- use: deerflow.community.exa.tools:web_fetch_tool
api_key: $EXA_API_KEY
```
</Tabs.Tab>
</Tabs>