mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Fix api streaming, fix AsyncClient (#2357)
* Fix api streaming, fix AsyncClient, Improve Client class, Some providers fixes, Update models list, Fix some tests, Update model list in Airforce provid er, Add OpenAi image generation url to api, Fix reload and debug in api arguments, Fix websearch in gui * Fix Cloadflare and Pi and AmigoChat provider * Fix conversation support in DDG provider, Add cloudflare bypass with nodriver * Fix unittests without curl_cffi
This commit is contained in:
parent
bc79969e5c
commit
6ce493d4df
34 changed files with 1161 additions and 1132 deletions
|
|
@ -219,9 +219,6 @@ def main():
|
|||
if not pull:
|
||||
print(f"No PR number found")
|
||||
exit()
|
||||
if pull.get_reviews().totalCount > 0 or pull.get_issue_comments().totalCount > 0:
|
||||
print(f"Has already a review")
|
||||
exit()
|
||||
diff = get_diff(pull.diff_url)
|
||||
except Exception as e:
|
||||
print(f"Error get details: {e.__class__.__name__}: {e}")
|
||||
|
|
@ -231,6 +228,9 @@ def main():
|
|||
except Exception as e:
|
||||
print(f"Error create review: {e}")
|
||||
exit(1)
|
||||
if pull.get_reviews().totalCount > 0 or pull.get_issue_comments().totalCount > 0:
|
||||
pull.create_issue_comment(body=review)
|
||||
return
|
||||
try:
|
||||
comments = analyze_code(pull, diff)
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue