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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user