Copilot commented on code in PR #245:
URL:
https://github.com/apache/incubator-hugegraph-ai/pull/245#discussion_r2097733619
##########
hugegraph-llm/src/hugegraph_llm/models/llms/openai.py:
##########
@@ -149,6 +149,9 @@ def generate_streaming(
)
for chunk in completions:
+ if not chunk.choices:
Review Comment:
[nitpick] The guard logic for empty `chunk.choices` is duplicated in both
the synchronous and asynchronous loops. Consider extracting this into a shared
helper function to reduce duplication and simplify future updates.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]