feat: implement AI city forecast streaming service and UI components for scan terminal

This commit is contained in:
2569718930@qq.com
2026-04-26 13:43:55 +08:00
parent 5344779e32
commit d42cdf6b51
5 changed files with 77 additions and 48 deletions
@@ -425,8 +425,8 @@ function AiPinnedCityCard({
<p className={aiForecast.streamText ? "scan-ai-weather-summary" : undefined}>
{aiForecast.streamText ||
(isEn
? "Deepseek V4 pro is reading the latest airport bulletin..."
: "Deepseek V4 pro 正在解读最新机场报文...")}
? "DeepSeek is reading the latest airport bulletin..."
: "DeepSeek 正在解读最新机场报文...")}
</p>
{!aiForecast.streamText ? (
<p className="scan-ai-city-muted">
@@ -460,8 +460,8 @@ function AiPinnedCityCard({
<p>
{aiForecast.payload?.status === "timeout"
? isEn
? "Deepseek V4-Pro timed out. You can retry; city data and the right briefing were not refreshed."
: "Deepseek V4-Pro 本次解读超时,可稍后重试;城市数据和右侧简报不会被刷新。"
? "DeepSeek enhancement timed out. You can retry; city data and the right briefing were not refreshed."
: "DeepSeek 增强本次超时,可稍后重试;城市数据和右侧简报不会被刷新。"
: fallbackAiReason ||
(isEn
? "AI read is unavailable for this city right now."