1
This commit is contained in:
@@ -301,7 +301,7 @@ function GptChar($message,$ckey)
|
||||
if ($fp) {
|
||||
while (!feof($fp)) {
|
||||
$chunk = fgets($fp);
|
||||
// echo $chunk;
|
||||
echo $chunk;
|
||||
$cache = object_to_array(json_decode(substr($chunk,6)));
|
||||
if(isset($cache['choices'][0]['delta']['content'])){
|
||||
$cc = Cache::get($ckey)?Cache::get($ckey):'';
|
||||
|
||||
Reference in New Issue
Block a user