sunshine-lang/dsh-weather2

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 接口。

패키지
dsh-weather
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 8. 14.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sunshine-lang/dsh-weather

使用方法

启动 Web UI 后,向模型提问,例如:

上海现在天气怎么样?

查一下东京的天气,用华氏度,并给出 3 天预报。

模型会调用 get_weather:参数 location(必填),可选 unitscelsius | fahrenheit)和 days(1–7)。

配置

可通过 cordis.patch.yml 或 profile 的 patch 层覆盖任意配置项:

- patch:
    - id: dsh-weather
      config:
        defaultUnits: fahrenheit
        timeoutMs: 15000
        maxForecastDays: 5
配置项默认值含义
defaultUnitscelsius模型未传 units 时使用的温度单位
timeoutMs10000每次天气 API 调用的超时时间(毫秒)
maxForecastDays7days 参数的上限(1–7)

配置无效时插件加载会直接失败,并给出可操作的错误信息。