sunshine-lang/dsh-weather ↗★ 2
dsh-weather
Weather tool for DeepSeek Harness: current conditions and multi-day forecasts via Open-Meteo (free, no API key).
AI 分析
核心用途是赋予 AI 查询实时天气和天气预报的能力。适合需要让 AI 辅助规划行程或获取气象信息的日常使用场景,调用免费的 Open-Meteo 接口。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sunshine-lang/dsh-weatherドキュメント
README 全文を読む ↗使用方法
启动 Web UI 后,向模型提问,例如:
上海现在天气怎么样?
查一下东京的天气,用华氏度,并给出 3 天预报。
模型会调用 get_weather:参数 location(必填),可选 units(celsius | fahrenheit)和 days(1–7)。
配置
可通过 cordis.patch.yml 或 profile 的 patch 层覆盖任意配置项:
- patch:
- id: dsh-weather
config:
defaultUnits: fahrenheit
timeoutMs: 15000
maxForecastDays: 5
| 配置项 | 默认值 | 含义 |
|---|---|---|
defaultUnits | celsius | 模型未传 units 时使用的温度单位 |
timeoutMs | 10000 | 每次天气 API 调用的超时时间(毫秒) |
maxForecastDays | 7 | days 参数的上限(1–7) |
配置无效时插件加载会直接失败,并给出可操作的错误信息。