Fix AI streaming, learn images, and full city regions.

Remove use server from stream helper to fix RSC errors; support OPENAI_API_BASE alias; render HTML tables via rehype-raw with gua-image API; expand regions to 356 prefecture-level cities.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-10 22:04:17 +08:00
parent 698a20a1d4
commit 3933905d66
11 changed files with 1565 additions and 77 deletions
+8 -5
View File
@@ -41,11 +41,14 @@ export function extractChangeDetails(
return changeList;
}
guaChange
.split(":")[1]
.trim()
.split(",")
.forEach((change) => {
const changePart = guaChange.includes(":")
? guaChange.split(":").slice(1).join(":").trim()
: guaChange.trim();
if (!changePart) {
return changeList;
}
changePart.split(",").forEach((change) => {
const detail = guaDetail
.match(`(\\*\\*${change}變卦[\\s\\S]*?)(?=${guaTitle}|$)`)?.[1]
?.replaceAll("\n\n", "\n");