进程外插件改为只读环境变量和自身配置,避免读宿主 appsettings;宿主按 plugin.json 声明注入 LLM / OpenWeather 等凭据。
14 lines
332 B
JSON
14 lines
332 B
JSON
{
|
|
"Weather": {
|
|
"Provider": "Wttr",
|
|
"Language": "zh",
|
|
"Wttr": {
|
|
"UrlTemplate": "https://wttr.in/{location}?lang={lang}&format=3"
|
|
},
|
|
"OpenWeather": {
|
|
"UrlTemplate": "https://api.openweathermap.org/data/2.5/weather?q={location}&appid={apiKey}&units=metric&lang={lang}",
|
|
"ApiKey": ""
|
|
}
|
|
}
|
|
}
|