oddfar / coze-discord

Using two Discord robot proxies for Coze service, free access to the API features of the GPT-4 advanced model.使用两个Discord机器人代理Coze服务,免费使用GPT-4高级模型的API功能(项目已失效,仅供学习)
MIT License
179 stars 38 forks source link

[Feature] 对话支持文生图 #2

Closed oddfar closed 8 months ago

oddfar commented 8 months ago

功能请求

对话支持文生图

解决方案和应用场景

image

收到消息的回调中:MessageListener,可根据以下代码获取图片的url

        List<MessageEmbed> embeds = message.getEmbeds();
        for (MessageEmbed messageEmbed : embeds) {
            MessageEmbed.ImageInfo image = messageEmbed.getImage();
            log.info("嵌套消息图片Url {}", image.getUrl());
        }

当它有嵌套消息时,一般为图片作答

oddfar commented 8 months ago

已完成:https://github.com/oddfar/coze-discord/pull/3 默认超时时间为60秒,有时候会超时

image

后续增加自定义