mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Remove redundant continue statement for cluster message handling
Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>
This commit is contained in:
parent
098b2401ea
commit
21113c51a6
1 changed files with 1 additions and 3 deletions
|
|
@ -109,9 +109,7 @@ class GradientNetwork(AsyncGeneratorProvider, ProviderModelMixin):
|
||||||
if content:
|
if content:
|
||||||
yield content
|
yield content
|
||||||
|
|
||||||
elif msg_type in ("clusterInfo", "blockUpdate"):
|
# Skip clusterInfo and blockUpdate GPU visualization messages
|
||||||
# Skip GPU cluster visualization messages
|
|
||||||
continue
|
|
||||||
|
|
||||||
except json.JSONDecodeError:
|
except json.JSONDecodeError:
|
||||||
# Skip non-JSON lines (may be partial data or empty)
|
# Skip non-JSON lines (may be partial data or empty)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue