Avoid error catching

This commit is contained in:
Ashwin Bharambe 2025-02-07 09:46:02 -08:00 committed by GitHub
parent ff3cb032a6
commit 2493eb794f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -134,13 +134,7 @@ client = (
) # or create_http_client() depending on the environment you picked
# List available models
try:
models = client.models.list()
except ValueError as e:
print(e)
sys.exit(1)
print("--- Available models: ---")
for m in models:
print(f"- {m.identifier}")