-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
接口调用不成功 #4
Comments
你好。目前我的部署你可以尝试这样调用。你自己部署的是Docker容器吗?可以看看uvicorn的输出,看看是什么错误?
|
您好,我是通过postman调用测试的,我自己部署用的是vercel,也试过你的api地址 |
你能把postman里的请求code发来看看吗?curl的就行。如果你用了自己的密钥,记得把app id,key,secret这些隐藏掉 |
服务器上线后的地址+/v1/chat/completions,headers和 body 也都是跟你一样 |
那你在本地开发环境能在localhost跑吗?正常不?还是有同样的问题? |
你现在用项目里贴的那个vercel的地址可以直接调用吗? |
那个部署我已经停掉了。Vercel上的部署无法支持流式。 你可以尝试这个域名 - gateway.openai-cloud.com 这是我的一个新的部署 |
你好,这个域名是可以的,我之前也是在vercel里部署的,看来是不能在vercel上部署?
…On Fri, Dec 22, 2023 at 7:53 AM sugarforever ***@***.***> wrote:
那你在本地开发环境能在localhost跑吗?正常不?还是有同样的问题?
你现在用项目里贴的那个vercel的地址可以直接调用吗?
那个部署我已经停掉了。Vercel上的部署无法支持流式。
你可以尝试这个域名 - gateway.openai-cloud.com
这是我的一个新的部署
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A77NZSUQG3IA53SY3OLXLSDYKTDWRAVCNFSM6AAAAABAYLCAT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRXGA3DEMBQGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
vercel可以部署。但是vercel的部署还是以serverless
function的形式服务的,这样就会有10s执行时间的限制。因此时常会有调用失败的情况。
…On Sat, 23 Dec 2023 at 14:47, fatwang2 ***@***.***> wrote:
你好,这个域名是可以的,我之前也是在vercel里部署的,看来是不能在vercel上部署?
On Fri, Dec 22, 2023 at 7:53 AM sugarforever ***@***.***>
wrote:
> 那你在本地开发环境能在localhost跑吗?正常不?还是有同样的问题?
>
> 你现在用项目里贴的那个vercel的地址可以直接调用吗?
>
> 那个部署我已经停掉了。Vercel上的部署无法支持流式。
>
> 你可以尝试这个域名 - gateway.openai-cloud.com
>
> 这是我的一个新的部署
>
> —
> Reply to this email directly, view it on GitHub
> <
#4 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/A77NZSUQG3IA53SY3OLXLSDYKTDWRAVCNFSM6AAAAABAYLCAT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRXGA3DEMBQGA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADCXRJIJQNVPFUYBOU2SDDYK3VGJAVCNFSM6AAAAABAYLCAT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGMYDQNZXG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
明白,那我还是用docker自己搭建吧
On Sat, Dec 23, 2023 at 11:26 PM sugarforever ***@***.***>
wrote:
… vercel可以部署。但是vercel的部署还是以serverless
function的形式服务的,这样就会有10s执行时间的限制。因此时常会有调用失败的情况。
On Sat, 23 Dec 2023 at 14:47, fatwang2 ***@***.***> wrote:
> 你好,这个域名是可以的,我之前也是在vercel里部署的,看来是不能在vercel上部署?
>
> On Fri, Dec 22, 2023 at 7:53 AM sugarforever ***@***.***>
> wrote:
>
> > 那你在本地开发环境能在localhost跑吗?正常不?还是有同样的问题?
> >
> > 你现在用项目里贴的那个vercel的地址可以直接调用吗?
> >
> > 那个部署我已经停掉了。Vercel上的部署无法支持流式。
> >
> > 你可以尝试这个域名 - gateway.openai-cloud.com
> >
> > 这是我的一个新的部署
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
>
#4 (comment)>,
>
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/A77NZSUQG3IA53SY3OLXLSDYKTDWRAVCNFSM6AAAAABAYLCAT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRXGA3DEMBQGA>
>
> > .
> > You are receiving this because you authored the thread.Message ID:
> > ***@***.***>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <
#4 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AADCXRJIJQNVPFUYBOU2SDDYK3VGJAVCNFSM6AAAAABAYLCAT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGMYDQNZXG4>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A77NZSTGYVFE7BU662MKMM3YK3ZZ3AVCNFSM6AAAAABAYLCAT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGMYTKMZTGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
这里的imageurl不支持base64的编码,只支持图片url,作者考虑优化么? |
当然。这个可以优化。圣诞假期我抽时间给加上。方便介绍一下,目前你使用这个项目的应用场景吗
…On Sun, 24 Dec 2023 at 12:49, fatwang2 ***@***.***> wrote:
这里的imageurl不支持base64的编码,只支持图片url,作者考虑优化么?
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADCXRMPCXJTN3242JLFMBDYLAQGPAVCNFSM6AAAAABAYLCAT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGUYDSNJSGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
哈哈 我是希望简化我这个项目的代码 https://github.com/fatwang2/sum4all |
nice! 我努力
…On Sun, 24 Dec 2023 at 23:39, fatwang2 ***@***.***> wrote:
哈哈 我是希望简化我这个项目的代码 https://github.com/fatwang2/sum4all
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADCXRP3FUXWUGGM4TCKUSDYLC4L3AVCNFSM6AAAAABAYLCAT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGYYTENRWHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
感谢
sugarforever ***@***.***>于2023年12月25日 周一08:00写道:
… nice! 我努力
On Sun, 24 Dec 2023 at 23:39, fatwang2 ***@***.***> wrote:
> 哈哈 我是希望简化我这个项目的代码 https://github.com/fatwang2/sum4all
>
> —
> Reply to this email directly, view it on GitHub
> <
#4 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AADCXRP3FUXWUGGM4TCKUSDYLC4L3AVCNFSM6AAAAABAYLCAT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGYYTENRWHA>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A77NZSTHDD47DE7NZSVZ6F3YLC6YTAVCNFSM6AAAAABAYLCAT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGYYTKNJQGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Closing it now as it's not an issue any more. The enhancement mentioned will be tracked by a separate issue. |
您好,请问base64是不是暂时依然不支持,我刚才试了下还是不行 |
感谢开发者,非常需要这个项目,但是我不管是用你的api地址,还是我自己部署了一个api地址,调用之后响应都是,不知道是哪里的问题。
The text was updated successfully, but these errors were encountered: