Spaces:
Running
Running
update
Browse files
demo.py
CHANGED
|
@@ -242,15 +242,7 @@ def model_prompting(
|
|
| 242 |
if api_key:
|
| 243 |
print(f"π API Key available: {api_key[:8]}...{api_key[-4:]}")
|
| 244 |
print(f" Key length: {len(api_key)} characters")
|
| 245 |
-
|
| 246 |
-
# Validate the key
|
| 247 |
-
validation = validate_api_key(api_key)
|
| 248 |
-
if validation['valid']:
|
| 249 |
-
print(" β
Key format validation passed")
|
| 250 |
-
else:
|
| 251 |
-
print(" β Key format validation failed:")
|
| 252 |
-
for issue in validation['issues']:
|
| 253 |
-
print(f" - {issue}")
|
| 254 |
else:
|
| 255 |
print("β No API key found in environment")
|
| 256 |
|
|
|
|
| 242 |
if api_key:
|
| 243 |
print(f"π API Key available: {api_key[:8]}...{api_key[-4:]}")
|
| 244 |
print(f" Key length: {len(api_key)} characters")
|
| 245 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 246 |
else:
|
| 247 |
print("β No API key found in environment")
|
| 248 |
|