Skip to content

Slide Deck 生成:LLM 调用与 Streaming 输出 #2

Description

@NewPZP

What to build

用户在 Conversation Pane 输入需求后,Server Action 调用 LLM(通过 Vercel AI SDK provider),以 streaming 方式返回一个完整的 Reveal.js HTML 字符串。Slide Deck 内容由 LLM 根据用户需求生成,包含多个 <section> 页面。

Acceptance criteria

  • Server Action 接收用户文本输入,调用 Vercel AI SDK 的 streamText
  • Provider 抽象层支持切换模型(MVP 先接入一个,如 OpenAI 或 Anthropic)
  • System prompt 引导 LLM 输出合法的 Reveal.js HTML 结构
  • Streaming 响应能被前端逐步消费(useChat 或 useCompletion)
  • 生成结果为完整可渲染的 Reveal.js HTML(含 <section> 嵌套结构)

Blocked by

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions