mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
feat: 刪除continue命令
This commit is contained in:
parent
89bb364b16
commit
080e53d9a9
|
@ -1,27 +0,0 @@
|
||||||
from ..aamgr import AbstractCommandNode, Context
|
|
||||||
|
|
||||||
|
|
||||||
@AbstractCommandNode.register(
|
|
||||||
parent=None,
|
|
||||||
name="continue",
|
|
||||||
description="继续未完成的响应",
|
|
||||||
usage="!continue",
|
|
||||||
aliases=[],
|
|
||||||
privilege=1
|
|
||||||
)
|
|
||||||
class ContinueCommand(AbstractCommandNode):
|
|
||||||
@classmethod
|
|
||||||
def process(cls, ctx: Context) -> tuple[bool, list]:
|
|
||||||
import pkg.openai.session
|
|
||||||
import config
|
|
||||||
session_name = ctx.session_name
|
|
||||||
|
|
||||||
reply = []
|
|
||||||
|
|
||||||
session = pkg.openai.session.get_session(session_name)
|
|
||||||
|
|
||||||
text, _, _ = session.append()
|
|
||||||
|
|
||||||
reply = [text]
|
|
||||||
|
|
||||||
return True, reply
|
|
|
@ -180,7 +180,6 @@
|
||||||
!draw <提示语> 进行绘图
|
!draw <提示语> 进行绘图
|
||||||
!version 查看当前版本并检查更新
|
!version 查看当前版本并检查更新
|
||||||
!resend 重新回复上一个问题
|
!resend 重新回复上一个问题
|
||||||
!continue 继续响应未完成的回合(通常用于内容函数继续调用)
|
|
||||||
!plugin 用法请查看插件使用页的`管理`章节
|
!plugin 用法请查看插件使用页的`管理`章节
|
||||||
!default 查看可用的情景预设值
|
!default 查看可用的情景预设值
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user