Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Chabot: Server-side chatbot state management

未关闭
#1,278 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@Ayush8923 已经在做这个了。

开始于 2026年10月20日。

  • #293 来自 @Ayush8923 —— 未关闭
  • #1300 来自 @Ayush8923 —— 未关闭
  • #1301 来自 @Ayush8923 —— 已合并

评估

这个 Issue 还没有评估数据。

描述

Is your feature request related to a problem?
The current /chatbot/message endpoint is stateless and requires sending the full conversation history every turn. This is impractical for clients like Glific that struggle with state management.

Describe the solution you'd like
Implement a session-based API where the server manages history:

  • POST /chatbot/sessions to create a session (send system prompt + config once) and receive a session_id
  • POST /chatbot/sessions/{session_id}/message to send a new message; the server manages history and replies asynchronously to webhook_url
Original issue

Problem
Now the /chatbot/message endpoint is stateless, the full conversation history is sent to the caller every turn. This is impractical for clients like Glific that cannot manage state.

Solution
Make a session-based API where the server stores history:

  • POST /chatbot/sessions — create a session (send system prompt + config once), you'll get a session_id
  • POST /chatbot/sessions/{session_id}/message, just send the new message; server tracks history on its own; reply will be delivered async to webhook_url

Acceptance Criteria

  • Session create karne pe session_id return ho
  • Messages DB mein persist hon
  • Bot reply webhook pe POST ho (success aur failure dono cases)
  • Agar session beech mein ruk jaaye, same session_id se resume ho sake
主要语言
Python
星标
18
派生
11
平均合并
2 天 2 小时
30 天内合并 PR
33

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ProjectTech4DevAI/kaapi-backend 的其他 Issue

查看 ProjectTech4DevAI/kaapi-backend 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。