Comments (9)
有个替代方案,可以从dom中按“Bubble text”类查到当前正在输出文字的元素,设置innerHTML属性,代码见:https://github.com/git-cloner/codegen/blob/main/chat/src/App.js,效果如https://gitclone.com/aiit/chat/
from chatui.
感谢,我试试
from chatui.
有个替代方案,可以从dom中按“Bubble text”类查到当前正在输出文字的元素,设置innerHTML属性,代码见:https://github.com/git-cloner/codegen/blob/main/chat/src/App.js,效果如https://gitclone.com/aiit/chat/
有没有兴趣部署个Vicuna-13B、ChatGLM-6B 不太行了。参见 https://lmsys.org/blog/2023-05-25-leaderboard/
from chatui.
from chatui.
这有个不太成熟的解决方案:写个含有updateMsg的回调,让处理EventStream的方法不断去执行这个回调
from chatui.
from chatui.
这里有解决方案了嘛~求求
from chatui.
from chatui.
这有个不太成熟的解决方案:写个含有updateMsg的回调,让处理EventStream的方法不断去执行这个回调
这样执行了,但是并做不到一个字一个字的渲染,怎么解决的?
from chatui.
Related Issues (20)
- 不能通过改变Chat对话容器的inputType值切换输入框<=>语音输入框 HOT 5
- 服务端渲染报错 `window is not defined`, HOT 1
- 有提供voice语音类型的消息气泡吗? HOT 1
- 切换语音模式 按住说话时 只能在手机上能有点击回调,浏览器不能点击。 HOT 1
- 能提供pro的git源码吗 HOT 1
- chatUI对接入产品商业化有哪些要求吗?
- typescript Tab类型检查出错 HOT 3
- Error: Super expression must either be null or a function
- react hooks项目里可以使用语音输入吗?
- 由于项目框架老旧,使用hooks写法打包报错。 HOT 2
- 小程序开发如何使用 HOT 1
- 样式污染全局怎么解决 HOT 1
- renderMessageContent为空函数的情况下,message对象中的{user: {avatar: '', name: ''} 头像和用户名依然会被渲染
- 如何禁用 Input Box
- BUG:<chat/>组件使用composer渲染自定义组件<inputarea/>之后,每次发送完消息,我自己定义的<inputarea/>就会强制刷新 HOT 2
- 如果做打字机效果回复的 时候 HOT 3
- rightAction
- 发送消息后滚动条没有滚到最下面还有一些像素,这个怎么解决? HOT 2
- 等待回复过程中禁用输入 HOT 1
- _id动态设置不成功 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatui.