mirror of
https://github.com/jie65535/JChatGPT.git
synced 2026-09-15 02:56:10 +08:00
tools: integrate QWeather JWT weather service
Replace the unavailable weather endpoint with QWeather location, forecast, minutely precipitation, and alert APIs. Add configurable JWT credentials, automatic alert lookup, setup documentation, and bump the plugin to 1.13.0.
This commit is contained in:
@@ -87,6 +87,18 @@ object PluginConfig : AutoSavePluginConfig("Config") {
|
||||
@ValueDescription("在线运行代码 glot.io 的 api token,在官网注册账号即可获取。")
|
||||
val glotToken: String by value("")
|
||||
|
||||
@ValueDescription("和风天气专属 API Host,例如 abc1234xyz.def.qweatherapi.com")
|
||||
val qWeatherApiHost: String by value("")
|
||||
|
||||
@ValueDescription("和风天气项目 ID,用于 JWT 的 sub")
|
||||
val qWeatherProjectId: String by value("")
|
||||
|
||||
@ValueDescription("和风天气凭据 ID,用于 JWT 的 kid")
|
||||
val qWeatherCredentialId: String by value("")
|
||||
|
||||
@ValueDescription("和风天气 Ed25519 私钥文件路径,相对于插件配置目录,也可以填写绝对路径")
|
||||
val qWeatherPrivateKeyPath: String by value("qweather-ed25519-private.pem")
|
||||
|
||||
@ValueDescription("群管理是否自动拥有对话权限,默认是")
|
||||
val groupOpHasChatPermission: Boolean by value(true)
|
||||
|
||||
@@ -171,4 +183,4 @@ object PluginConfig : AutoSavePluginConfig("Config") {
|
||||
|
||||
@ValueDescription("聊天记录搜索最大查询条数,防止内存溢出")
|
||||
val searchHistoryMaxRecords: Int by value(5000)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user