Update AItianhu.py

This commit is contained in:
H Lohaus 2023-11-20 17:35:18 +01:00 committed by GitHub
parent ad78589843
commit a2b803a56c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -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