Guzzle-Swoole icon indicating copy to clipboard operation
Guzzle-Swoole copied to clipboard

让基于 Guzzle 的项目完美无缝兼容 Swoole 协程,支持:Guzzle、Elasticsearch client——来自宇润 PHP 全家桶

Results 2 Guzzle-Swoole issues
Sort by recently updated
recently updated
newest added

请求openai的流式响应输出 ```json { "url": "https:\/\/api.openai.com\/v1\/chat\/completions", "method": "POST", "data": { "model": "gpt-3.5-turbo", "messages": [{ "role": "user", "content": "200字以上笑话" }], "temperature": 1, "frequency_penalty": 0, "presence_penalty": 0, "stream": true, "top_p": 1 } }...

https://github.com/Yurunsoft/Guzzle-Swoole/blob/89bb58446aa0a3d6448de3943b40a5d79b18cbda/src/SwooleHandler.php#L97-L110 按照这里的代码来看, 永远都是使用http代理, 因为`$options['curl']`一定是空的? 当guzzle使用socks5代理时, 就会导致异常