Markdown

安全地渲染来自模型或用户的 Markdown:标题、列表、表格、代码块和链接,原始 HTML 保留为文本。

查看源码

Why the 429s started

Requests to gpt-5 from checkout-api hit the project's limit of 60 a minute at 14:05 UTC. Three things changed:

  1. The retry loop in the worker doubled its traffic.
  2. A new key, kae_live_…3f9a, shares the same limit.
  3. The budget alert fired at 80% — see the usage page(在新标签页中打开).
ModelRequestsp95
gpt-54,8122.4 s
gpt-5-mini1,2040.9 s
for attempt in range(3):    try:        return client.responses.create(model="gpt-5", input=prompt)    except RateLimitError:        time.sleep(2 ** attempt)

Raise the limit only after the retry loop backs off.

  • [x]
    Find the cause
  • [ ]
    Ship the backoff
import { Markdown } from "@logicplanes/kaeso-ui/markdown";

属性

  • collapseAfter
    number = 24000

    超过此字符数的文本只显示开头和“显示全部”(默认 24,000;0 表示从不折叠)。

  • headingLevel
    4 | 1 | 2 | 3 | 5 | 6 = 3

    # 对应的标题级别(默认 3:低于页面和区块自身的标题)。

  • size
    "lg" | "body" | "small" = body

    字号:small、body 或 lg。

  • streaming
    boolean = false

    文本仍在输出:不折叠,也不缓存 token。

  • text
    string

    Markdown 源文本。其中的原始 HTML 保留为文本。

  • tone
    "secondary" | "default" = default

    主要文字(default)或次要文字(secondary)。

  • trailing
    ReactNode

    以内联方式绘制在段落、标题或列表项最后一个词之后(绝不单独占一行)。

  • wrapCode
    boolean = false

    长代码行自动换行而不是横向滚动(窄栏)。