This commit is contained in:
wangjinlei
2023-08-18 09:45:53 +08:00
parent 3818cd0951
commit d7edd953a4
4 changed files with 34 additions and 3 deletions

View File

@@ -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):'';