Dooy / chatgpt-web-midjourney-proxy

One UI is all done with chatgpt web, midjourney, gpts,suno,luma,runway,viggle,flux,ideogram; Simultaneous support Web / PWA / Linux / Win / MacOS platform
https://vercel.ddaiai.com
MIT License
4.76k stars 1.23k forks source link

请问大佬前端ui设置了api地址和key之后 上传如果配置了R2 文件上传是走R2吗 文件上传一直不知道应该怎么配置 #143

Closed lyzcodebool closed 6 months ago

lyzcodebool commented 7 months ago

希望大佬指点一下,非常感谢

Dooy commented 7 months ago

文件服务器 优先 R2> 前端UI设置文件服务> 后端文件服务

xiaopaul commented 7 months ago

谢谢,我再试试

h1xy commented 7 months ago

我在docker环境变量设置了R2,UI填了api地址,上传的时候从报错信息看还是上传到API地址了。去掉API地址后,可以正常上传到R2。和你说的不一样啊。

另外,可以指定某个模型也可以上传文档格式吗?目前只有gpt-4-all可以。

Dooy commented 7 months ago

额 前后顺序不一样?

文档GPTs都支持 不限gpt-4-all, 如果是一般模型图片会去调用gpt-4-version

h1xy commented 7 months ago

额 前后顺序不一样?

文档GPTs都支持 不限gpt-4-all, 如果是一般模型图片会去调用gpt-4-version

one-api的网站怎样让它支持上传。。

Dooy commented 7 months ago

ui上能设置文件服务器

h1xy commented 7 months ago

上传地址设置了R2里面的S3 API 地址: https://c62bb13e1f35exxxxxxx.r2.cloudflarestorage.com/[bucket name] 或https://c62bb13e1f35exxxxxxx.r2.cloudflarestorage.com 还是上传到openai base URL去了。

lyzcodebool commented 7 months ago

上传地址设置了R2里面的S3 API 地址: [https://c62bb13e1f35exxxxxxx.r2.cloudflarestorage.com/[bucket](https://c62bb13e1f35exxxxxxx.r2.cloudflarestorage.com/%5Bbucket) name] 或https://c62bb13e1f35exxxxxxx.r2.cloudflarestorage.com 还是上传到openai base URL去了。

我现在用中转 支持文件上传 可以直接用,不用配置上传那些了,之前上传的配置搞了半天

henryhu55 commented 7 months ago

文件服务器优先 R2> 前端UI设置文件服务> 文件夹文件服务 大佬,请问一下,我设置了r2,前端配置了上传链接,也能解析图片,但是显示用的是base64, 图片在服务器/data/uploads路径和r2存储桶里面都没有是什么问题 image

h1xy commented 7 months ago

文件服务器优先 R2> 前端UI设置文件服务> 文件夹文件服务 大佬,请问一下,我设置了r2,前端配置了上传链接,也能解析图片,但是显示用的是base64, 图片在服务器/data/uploads路径和r2存储桶里面都没有是什么问题 image

看你截图里用的vison模型,这个是识别图片的,你要画图应该用dall-e3模型

henryhu55 commented 7 months ago

文件服务器优先 R2> 前端UI设置文件服务> 文件夹文件服务 大佬,请问一下,我设置了r2,前端配置了上传链接,也能解析图片,但是显示用的是base64, 图片在服务器/data/uploads路径和r2存储桶里面都没有是什么问题 image

看你截图里用的vison模型,这个是识别图片的,你要画图应该用dall-e3模型

我不是画图呀,我是上传图片,然后用vision模型解释图片,我的意思是,应该是上传文件传到r2桶里面,然后请求vison模型带的地址应该是r2的地址才对吧,但是我这里只有base64

Dooy commented 7 months ago

gpt-4-vision 模型都是走base64 因为他支持 ;

图片上传主要是为GPTs服务的 比如gpt-4-all 还有其他

henryhu55 commented 7 months ago

gpt-4-vision 模型都是走base64 因为他支持 ;

图片上传主要是为GPTs服务的 比如gpt-4-all 还有其他

哦哦,原来如此,那还有新的问题,就是有时候会提示无法解析图片内容,其实参数里没有带base64,我以为是上传没配置好,配置了r2就能解析,但是r2在这里好像也没用呀 image

Dooy commented 7 months ago

问下你的中转 #175 你们是不是同一拨人?

你这个提示就是逆向没下载到内容的提示

bujueone22 commented 6 months ago

不是,很多中转连接都不支持文件上传,还是之前上传到部署服务器方便很多。(每天一看发现还没有完美的解决方法

Dooy commented 6 months ago

不是,很多中转连接都不支持文件上传,还是之前上传到部署服务器方便很多。(每天一看发现还没有完美的解决方法

自己写一个文件服务 也不难啊 ;实在不会请中转帮忙解决 反正也能跟随中转

哪有收钱不干活的? 哪有不收钱而干活的?

ChuckZengxf commented 6 months ago

上传地址设置了R2里面的S3 API 地址: [https://c62bb13e1f35exxxxxxx.r2.cloudflarestorage.com/[bucket](https://c62bb13e1f35exxxxxxx.r2.cloudflarestorage.com/%5Bbucket) name] 或https://c62bb13e1f35exxxxxxx.r2.cloudflarestorage.com 还是上传到openai base URL去了。

你r2 搞定了吗

h1xy commented 6 months ago

上传地址设置了R2里面的S3 API 地址: [https://c62bb13e1f35exxxxxxx.r2.cloudflarestorage.com/[bucket](https://c62bb13e1f35exxxxxxx.r2.cloudflarestorage.com/%5Bbucket) name] 或https://c62bb13e1f35exxxxxxx.r2.cloudflarestorage.com 还是上传到openai base URL去了。

你r2 搞定了吗

没有,换程序了