- Change file mode from 644 to 755 for all project files - Add chain_id parameter to get_balance RPC endpoint with default "ait-devnet" - Rename Miner.extra_meta_data to extra_metadata for consistency
13 lines
332 B
Python
Executable File
13 lines
332 B
Python
Executable File
import requests
|
|
|
|
data = {
|
|
"payload": {"type": "inference", "model": "test-model", "prompt": "test prompt"},
|
|
"ttl_seconds": 900
|
|
}
|
|
|
|
try:
|
|
resp = requests.post("http://10.1.223.93:8000/v1/jobs", json=data, headers={"X-Api-Key": "client_dev_key_1"})
|
|
print(resp.status_code, resp.text)
|
|
except Exception as e:
|
|
print(e)
|