Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] SDK 中提供的 API 更新数据时貌似都是插件级别的数据?不能做到消息级别的数据隔离么? #44

Open
Bitzo opened this issue Jan 23, 2025 · 2 comments
Labels
😇 Help Wanted Need help | 需要帮助

Comments

@Bitzo
Copy link

Bitzo commented Jan 23, 2025

🧐 问题描述 | Proposed Solution

我在尝试开发一个自己使用的插件,Standalone 类型的,对话过程中有可能触发多次插件,每次触发会去创建及处理一个任务,并且任务结果可能存在一些交互,进行对话进行进一步的任务处理(再次触发插件)

我使用了 setPluginMessage 方法来存储任务的处理结果,但是当触发了多次插件时,我一旦使用方法后,所有的插件 iframe 中获取到的 message 都变更了

所以想问下是否有 API 可以只对当前的消息更新 message 或 state ?

还有个疑问:lobeChat.triggerAIMessage(id) 这个 API 需要传 id,但是文档里没有提及具体用法,不知道可以怎么取到这个 id

📝 补充信息 | Additional Information

No response

@Bitzo Bitzo added the 😇 Help Wanted Need help | 需要帮助 label Jan 23, 2025
@lobehubbot
Copy link
Member

👀 @Bitzo
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@arvinxx
Copy link
Contributor

arvinxx commented Jan 24, 2025

这个应该是 bug,我后面修正一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
😇 Help Wanted Need help | 需要帮助
Projects
None yet
Development

No branches or pull requests

3 participants