Skip to content

feat: use chat completions API#26

Merged
zhenghaoz merged 2 commits into
gorse-io:masterfrom
zhangzhenghao:proxy-chat-completions
Jun 14, 2026
Merged

feat: use chat completions API#26
zhenghaoz merged 2 commits into
gorse-io:masterfrom
zhangzhenghao:proxy-chat-completions

Conversation

@zhangzhenghao

@zhangzhenghao zhangzhenghao commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • update the Chat page to call /api/chat/completions with an OpenAI-style chat completion request body
  • change the Chat page from a single prompt/response view into a conversation-style chat UI
  • send accumulated user/assistant messages as chat history on each request
  • parse OpenAI-style streaming SSE events and append delta content to the latest assistant message

Related

Test Plan

  • pnpm install --frozen-lockfile
  • pnpm lint
  • pnpm build

@zhangzhenghao zhangzhenghao force-pushed the proxy-chat-completions branch from 3aad954 to 08146e7 Compare June 13, 2026 16:39
…t and update layout to conditionally hide footer
@zhenghaoz zhenghaoz merged commit cce3d61 into gorse-io:master Jun 14, 2026
4 checks passed
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.

2 participants