|
9 maanden geleden | |
---|---|---|
.. | ||
chat | 9 maanden geleden | |
contact-detail | 9 maanden geleden | |
contact-list | 9 maanden geleden | |
session | 9 maanden geleden | |
README.md | 9 maanden geleden | |
contact-routing.module.ts | 9 maanden geleden | |
contact.module.ts | 9 maanden geleden |
思考:图片链接和图片消息的区别,和表达方式? 图片链接,本质上是文本消息(基于字符串) 图片消息,本质上是结构化消息 {type:"image",imgUrl:"https://file-cloud.fmode.cn/E4KpGvTEto/20230822/3mkf41033623275.png"}
普通文本消息:
{
"role": "user",
"content": "Here is the text: 'The quick brown fox jumps over the lazy dog.'"
}
图片消息 {
"role": "user",
"content": {
"type": "image",
"data": {
"url": "https://example.com/image.jpg",
"alt_text": "A quick brown fox jumping over a lazy dog."
}
}
}
音频消息
{
"role": "user",
"content": {
"type": "audio",
"data": {
"url": "https://example.com/audio.mp3",
"alt_text": "An audio clip of a quick brown fox jumping over a lazy dog."
}
}
}