Spaces:
Sleeping
Sleeping
update
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def stream_words_mcp(query: str):
|
|
| 45 |
except Exception as e:
|
| 46 |
return f"生成单词时出错: {str(e)}"
|
| 47 |
|
| 48 |
-
async def stream_words_mcp_stream(query: str):
|
| 49 |
"""MCP工具:流式返回英文单词"""
|
| 50 |
try:
|
| 51 |
async for token in stream_words(query):
|
|
|
|
| 45 |
except Exception as e:
|
| 46 |
return f"生成单词时出错: {str(e)}"
|
| 47 |
|
| 48 |
+
async def stream_words_mcp_stream(query: str = "give me some english words"):
|
| 49 |
"""MCP工具:流式返回英文单词"""
|
| 50 |
try:
|
| 51 |
async for token in stream_words(query):
|