Update utils.py
Browse files
utils.py
CHANGED
|
@@ -26,6 +26,7 @@ def validate_api_key(api_key:str) -> bool:
|
|
| 26 |
get_all_groq_model(api_key=api_key)
|
| 27 |
return True
|
| 28 |
except Exception as e:
|
|
|
|
| 29 |
return False
|
| 30 |
|
| 31 |
def validate_uri(uri:str) -> bool:
|
|
@@ -33,6 +34,7 @@ def validate_uri(uri:str) -> bool:
|
|
| 33 |
SQLDatabase.from_uri(uri)
|
| 34 |
return True
|
| 35 |
except Exception as e:
|
|
|
|
| 36 |
return False
|
| 37 |
|
| 38 |
def get_info(uri:str) -> dict[str, str] | None:
|
|
|
|
| 26 |
get_all_groq_model(api_key=api_key)
|
| 27 |
return True
|
| 28 |
except Exception as e:
|
| 29 |
+
print(e)
|
| 30 |
return False
|
| 31 |
|
| 32 |
def validate_uri(uri:str) -> bool:
|
|
|
|
| 34 |
SQLDatabase.from_uri(uri)
|
| 35 |
return True
|
| 36 |
except Exception as e:
|
| 37 |
+
print(e)
|
| 38 |
return False
|
| 39 |
|
| 40 |
def get_info(uri:str) -> dict[str, str] | None:
|