mirror of https://github.com/xtekky/gpt4free.git
Update AItianhu.py
This commit is contained in:
parent
ad78589843
commit
a2b803a56c
|
@ -72,7 +72,8 @@ class AItianhu(AsyncGeneratorProvider):
|
|||
if "detail" not in line:
|
||||
raise RuntimeError(f"Response: {line}")
|
||||
|
||||
if content := line["detail"]["choices"][0]["delta"].get(
|
||||
content = line["detail"]["choices"][0]["delta"].get(
|
||||
"content"
|
||||
):
|
||||
yield content
|
||||
)
|
||||
if content:
|
||||
yield content
|
||||
|
|
Loading…
Reference in New Issue