Commit 10789e49 by CalciumIon

feat: update playground roleConfig

parent e82909fe
...@@ -20,6 +20,21 @@ const defaultMessage = [ ...@@ -20,6 +20,21 @@ const defaultMessage = [
} }
]; ];
const roleInfo = {
user: {
name: 'User',
avatar: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/docs-icon.png'
},
assistant: {
name: 'Assistant',
avatar: 'logo.png'
},
system: {
name: 'System',
avatar: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/other/logo.png'
}
}
let id = 4; let id = 4;
function getId() { function getId() {
return `${id++}` return `${id++}`
...@@ -330,6 +345,7 @@ const Playground = () => { ...@@ -330,6 +345,7 @@ const Playground = () => {
return <div></div> return <div></div>
} }
}} }}
roleConfig={roleInfo}
style={commonOuterStyle} style={commonOuterStyle}
chats={message} chats={message}
onMessageSend={onMessageSend} onMessageSend={onMessageSend}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment