jackkuo commited on
Commit
e8c87c6
·
1 Parent(s): 460107d
Files changed (1) hide show
  1. app.py +1 -1
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):