Skip to content

feat(console): 接入页主区放大为多轮对话 - #392

Merged
caigee-cmd merged 6 commits into
mainfrom
feat/access-chat-ui
Oct 24, 2026
Merged

caigee-cmd merged 6 commits into
mainfrom
feat/access-chat-ui

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

摘要

  • 接入与调试页改为:大对话框为主舞台,账号/模型压缩;原始 API 折叠在对话下方。
  • 对话支持本会话多轮;流式展示 reasoning_content(可折叠思考)与 tool_calls(工具卡片)。
  • Composer 支持文本/常见代码附件(拼进 content)与图片 data URL(OpenAI image_url;是否生效取决于上游供应商)。
  • UI 参考 affectUI 的 Thinking / Tool Call / Composer 信息结构,用现有 HeroUI v3 + Tailwind 4 + Phosphor 自建,未用 shadcn CLI 引入 affectUI。

验证

  1. 打开控制台「接入与调试」
  2. 选账号/模型,发一条消息:主区应明显更高;可连续再发(多轮)
  3. 若上游返回思考/工具:应出现可折叠思考与工具参数卡片;无则不占位
  4. 点「展开原始 API」:原有 request builder / response / curl 可用
  5. cd frontend && npm run build 已通过

刻意未做

  • 未引入 markdown 重依赖(正文仍 whitespace-pre-wrap)
  • 未做工具执行/回填 tool result(仅展示模型发出的 tool_calls)
  • 未合 main、未发版

布局改为大对话框为主、原始 API 折叠在下;streamChat 解析 reasoning_content 与 tool_calls。参考 affectUI 信息结构,用现有 HeroUI/灰度 patterns 自建,未引入 affectUI 包。
副标题仍写「单轮」,与 #392 主区多轮对话不一致。
Move account/model into the composer footer with a round send control,
soften thinking/tool/attachment hierarchy, and add ?demo=1 / Preview sample.
Parse usage.credits from the chat SSE stream and render it under the
assistant bubble. Demo seed includes a sample amount for preview.
Collapse thinking to a shimmer pill, group tool calls, tighten
composer selects (menus open upward), soft assistant bubbles with
copy + token/credits foot, and quieter alerts/endpoint cards.
Lets ?demo=1 / ?demo=thinking open composer menus for visual QA
without writing real accounts into the preview database.
@caigee-cmd
caigee-cmd merged commit 2c9c26b into main Oct 24, 2026
6 checks passed
@caigee-cmd
caigee-cmd deleted the feat/access-chat-ui branch October 24, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant