Update AItianhu.py

pull/1274/head
H Lohaus 11 months ago committed by GitHub
parent ad78589843
commit a2b803a56c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save