try to fix the frontend e2e test errors
This commit is contained in:
@@ -101,7 +101,7 @@ export default function NewAgentPage() {
|
|||||||
|
|
||||||
const threadId = useMemo(() => uuid(), []);
|
const threadId = useMemo(() => uuid(), []);
|
||||||
|
|
||||||
const [thread, sendMessage] = useThreadStream({
|
const { thread, sendMessage } = useThreadStream({
|
||||||
threadId: step === "chat" ? threadId : undefined,
|
threadId: step === "chat" ? threadId : undefined,
|
||||||
context: {
|
context: {
|
||||||
mode: "flash",
|
mode: "flash",
|
||||||
|
|||||||
@@ -162,22 +162,34 @@ Install: `cd backend && uv add 'deerflow-harness[firecrawl]'`
|
|||||||
|
|
||||||
<Tabs items={["Jina AI (default)", "Exa", "InfoQuest", "Firecrawl"]}>
|
<Tabs items={["Jina AI (default)", "Exa", "InfoQuest", "Firecrawl"]}>
|
||||||
<Tabs.Tab>
|
<Tabs.Tab>
|
||||||
```yaml tools: - use: deerflow.community.jina_ai.tools:web_fetch_tool
|
```yaml
|
||||||
api_key: $JINA_API_KEY # optional; anonymous usage has rate limits ```
|
tools:
|
||||||
Converts web pages to clean Markdown. Works without an API key at reduced
|
- use: deerflow.community.jina_ai.tools:web_fetch_tool
|
||||||
rate limits.
|
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>
|
||||||
<Tabs.Tab>
|
<Tabs.Tab>
|
||||||
```yaml tools: - use: deerflow.community.exa.tools:web_fetch_tool api_key:
|
```yaml
|
||||||
$EXA_API_KEY ```
|
tools:
|
||||||
|
- use: deerflow.community.exa.tools:web_fetch_tool
|
||||||
|
api_key: $EXA_API_KEY
|
||||||
|
```
|
||||||
</Tabs.Tab>
|
</Tabs.Tab>
|
||||||
<Tabs.Tab>
|
<Tabs.Tab>
|
||||||
```yaml tools: - use: deerflow.community.infoquest.tools:web_fetch_tool
|
```yaml
|
||||||
api_key: $INFOQUEST_API_KEY ```
|
tools:
|
||||||
|
- use: deerflow.community.infoquest.tools:web_fetch_tool
|
||||||
|
api_key: $INFOQUEST_API_KEY
|
||||||
|
```
|
||||||
</Tabs.Tab>
|
</Tabs.Tab>
|
||||||
<Tabs.Tab>
|
<Tabs.Tab>
|
||||||
```yaml tools: - use: deerflow.community.firecrawl.tools:web_fetch_tool
|
```yaml
|
||||||
api_key: $FIRECRAWL_API_KEY ```
|
tools:
|
||||||
|
- use: deerflow.community.firecrawl.tools:web_fetch_tool
|
||||||
|
api_key: $FIRECRAWL_API_KEY
|
||||||
|
```
|
||||||
</Tabs.Tab>
|
</Tabs.Tab>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
|
|||||||
@@ -148,13 +148,19 @@ Firecrawl 驱动的搜索和爬取。需要 [Firecrawl](https://firecrawl.dev) A
|
|||||||
|
|
||||||
<Tabs items={["Jina AI(默认)", "Exa"]}>
|
<Tabs items={["Jina AI(默认)", "Exa"]}>
|
||||||
<Tabs.Tab>
|
<Tabs.Tab>
|
||||||
```yaml tools: - use: deerflow.community.jina_ai.tools:web_fetch_tool
|
```yaml
|
||||||
api_key: $JINA_API_KEY # 可选;匿名使用有速率限制 ``` 将网页转换为干净的
|
tools:
|
||||||
Markdown。无 API Key 也可使用,但有更严格的速率限制。
|
- use: deerflow.community.jina_ai.tools:web_fetch_tool
|
||||||
|
api_key: $JINA_API_KEY # 可选;匿名使用有速率限制
|
||||||
|
```
|
||||||
|
将网页转换为干净的 Markdown。无 API Key 也可使用,但有更严格的速率限制。
|
||||||
</Tabs.Tab>
|
</Tabs.Tab>
|
||||||
<Tabs.Tab>
|
<Tabs.Tab>
|
||||||
```yaml tools: - use: deerflow.community.exa.tools:web_fetch_tool api_key:
|
```yaml
|
||||||
$EXA_API_KEY ```
|
tools:
|
||||||
|
- use: deerflow.community.exa.tools:web_fetch_tool
|
||||||
|
api_key: $EXA_API_KEY
|
||||||
|
```
|
||||||
</Tabs.Tab>
|
</Tabs.Tab>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user