Skip to content

Commit

Permalink
Fix unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
hlohaus committed Dec 18, 2024
1 parent 6390fcc commit 2a853f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions g4f/Provider/Cloudflare.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ def get_models(cls) -> str:
try:
raise_for_status(response)
except ResponseStatusError:
cls._args = None
raise
return cls.models
json_data = response.json()
cls.models = [model.get("name") for model in json_data.get("models")]
return cls.models
Expand Down

0 comments on commit 2a853f0

Please sign in to comment.