嗯嗯。我刚才把newapi的令牌中的dall-e-3关掉了,开启插件也画不出来了。这样说明是调用的azure的dall-e-3,这样理解对么?
是这个意思
测试了几次:如果内置sk的话,确实还是一次画4张;单独添加的话,一次画一张
单独添加是指在网页端手动配置key吗
是的,是的
好的 (^o^)/~
这一个,我是azure通过oneapi转一下,然后在这上面就能直接用了。
感谢感谢,我一会儿再试试,上午拉了个容器,用始皇的二开new-api 转的,贴进去没成功,可能是我设置不对。
大佬能不能丢个docker~compose的模板,借鉴一下。
或者帮我看看我的是不是有不对的地方
version: '3'
services:
chatgpt-next-web-langchain:
image: gosuto/chatgpt-next-web-langchain
container_name: dall-e-3-next-web
ports:
- "3000:3000"
environment:
OPENAI_API_KEY: sk-xxxxxxxxxxxxxxxxxxxxxx2DeB9988f9a
BASE_URL: https://xxxxxxxxx/v1
CUSTOM_MODELS: -all,+gpt-4o,dall-e-3,gpt-4o-2024-05-13,gemini-1.0-pro,gemini-1.5-pro-latest,gemini-pro
CODE: "abcdefg"
restart: unless-stopped
我没有勾选面具右边那个插件里的DALL-E
调用不对,不需要在CUSTOM_MODELS
中加入dall-e-3
。
你打开插件,选择Dall-E
,然后在聊天框中选个聊天模型,直接给他说让他画图,就可以了
注意你选择的模型要支持函数调用,不然它也画不出来。
大佬,再求教一下,azure经过new-api中转的API,能否在ssh里直接用命令测试画图?我用这个测试,报该令牌无权访问模型dall-e
curl https://new-api.abc.com/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-kagqxxxxxxxxxxxxxxxxxxxxxxxb" \
-d '{
"prompt": "A cute baby sea otter",
"n": 2,
"size": "1024x1024"
}'
解决了,加上模型名称就行了
curl https://new-api.abc.com/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-kagqxxxxxxxxxxxxxxxxxxxxxxxb" \
-d '{
"prompt": "A cute baby sea otter",
"model": "dall-e-3"
"n": 2,
"size": "1024x1024"
}'
始皇二开的new-api和原来的有什么区别吗?
差别不大,就是加了 linux.do 的授权登录,方便面向论坛
在对话中提出要求,一次画一张,是可以的