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