fix(m09): correct minor code issues

This commit is contained in:
Annyfee
2026-01-07 17:19:49 +08:00
parent 722a26a4bd
commit d8cddf436f
@@ -19,9 +19,9 @@ llm = ChatOpenAI(
# 工具定义
@tool
def get_weather(loaction):
def get_weather(location):
"""模拟获取天气"""
return f'{loaction}当前天气:23℃,晴,风力2级'
return f'{location}当前天气:23℃,晴,风力2级'
tools = [get_weather]