Update a.py
Browse files
a.py
CHANGED
|
@@ -7,10 +7,10 @@ import socket
|
|
| 7 |
|
| 8 |
# Get API key from Hugging Face secret "Key"
|
| 9 |
API_KEY = os.environ.get("Key", "")
|
| 10 |
-
|
| 11 |
# Initialize client with better timeout and retry settings
|
| 12 |
client = Ark(
|
| 13 |
-
base_url="https://
|
| 14 |
api_key=API_KEY,
|
| 15 |
timeout=30.0, # Shorter timeout to fail faster
|
| 16 |
max_retries=3,
|
|
|
|
| 7 |
|
| 8 |
# Get API key from Hugging Face secret "Key"
|
| 9 |
API_KEY = os.environ.get("Key", "")
|
| 10 |
+
#base_url="https://ark.ap-southeast.bytepluses.com/api/v3"
|
| 11 |
# Initialize client with better timeout and retry settings
|
| 12 |
client = Ark(
|
| 13 |
+
base_url="https://1hit.no/proxy/proxy.php",
|
| 14 |
api_key=API_KEY,
|
| 15 |
timeout=30.0, # Shorter timeout to fail faster
|
| 16 |
max_retries=3,
|