Open grayTele opened 10 months ago
设置 DefaultHandler::setDefaultHandler(SwooleHandler::class); 不生效,只能设置单个设置才行
$handler = new SwooleHandler();
$stack = HandlerStack::create($handler);
$client = new \GuzzleHttp\Client(['handler' => $stack]);
请求openai的流式响应输出