fatwang2 / search2ai

Help your LLMs online
https://sum4all.site/telegram
MIT License
1.05k stars 158 forks source link

不支持的请求方法: GET #4

Closed shentong0722 closed 6 months ago

shentong0722 commented 9 months ago

不支持的请求方法: GET 收到请求: GET /v1/chat/completions image

fatwang2 commented 9 months ago

对话api 本来就是 post 接口,你为啥要 get 请求

shentong0722 commented 9 months ago

为什么会有GET请求,但是我用ChatBox他发出的请求就是这样

fatwang2 @.***> 于2024年1月26日周五 19:43写道:

对话api 本来就是 post 接口,你为啥要 get 请求

— Reply to this email directly, view it on GitHub https://github.com/fatwang2/search2ai/issues/4#issuecomment-1911942979, or unsubscribe https://github.com/notifications/unsubscribe-auth/APBKW4OWGIIGEU4AP5HHIFDYQOJGXAVCNFSM6AAAAABCLVTVT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJRHE2DEOJXHE . You are receiving this because you authored the thread.Message ID: @.***>

fatwang2 commented 9 months ago

你是不是apibase填错了?每个客户端上要求填写的格式不一样

ErlichLiu commented 7 months ago

我确实遇到过一些需要 get 请求的情况。因为有些套壳客户端验证 API KEY 可行之前会先去 get 测试一下这个 api 接口可行,于是会先发一个 get 过去,get 通了再去验证 API KEY。具体忘记是哪个套壳产品了,我之前确实碰到过。

fatwang2 commented 7 months ago

正常get都是去请求/v1/models来做验证,这个是支持的。get /chat/completions我之前没遇到过

On Tue, Mar 12, 2024 at 12:06 PM Erlich @.***> wrote:

我确实遇到过一些需要 get 请求的情况。因为有些套壳客户端验证 API KEY 可行之前会先去 get 测试一下这个 api 接口可行,于是会先发一个 get 过去,get 通了再去验证 API KEY。具体忘记是哪个套壳产品了,我之前确实碰到过。

— Reply to this email directly, view it on GitHub https://github.com/fatwang2/search2ai/issues/4#issuecomment-1990195699, or unsubscribe https://github.com/notifications/unsubscribe-auth/A77NZSV5CCPIEIADC7HBLXLYXZ5K7AVCNFSM6AAAAABCLVTVT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJQGE4TKNRZHE . You are receiving this because you commented.Message ID: @.***>