Skip to content

我看了一下混合object_string,图片或者是语音的支持,是不是有点不符合要求 #95

@bfyang5131

Description

@bfyang5131

func NewImageMessageObjectByURL(fileURL string) *MessageObjectString {
return &MessageObjectString{
Type: MessageObjectStringTypeImage,
FileURL: fileURL,
}
}

在这里,只传入类型是图片,和地址。但我看官方支持这样的。
"additional_messages":[
{
"role":"user",
"content":"[{"type":"image","file_url":"https://lf-bot-studio-plugin-resource.coze.cn/obj/bot-studio-platform-plugin-tos/artist/image/4ca71a5f55d54efc95ed9c06e019ff4b.png"},{"type":"text","text":"帮我看看这张图片里都有什么"}]",
"content_type":"object_string"
}
]
这里可以针对这个图片,说明我想要干什么,但上面的传入是不是不支持这个?
希望大佬 回答一下。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions