chore: update file permissions to executable across repository

- 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
This commit is contained in:
oib
2026-03-06 22:17:54 +01:00
parent bb5363bebc
commit 15427c96c0
1794 changed files with 43849 additions and 530 deletions

7
cli/aitbc_cli/commands/client.py Normal file → Executable file
View File

@@ -50,9 +50,9 @@ def submit(ctx, job_type: str, prompt: Optional[str], model: Optional[str],
for attempt in range(1, max_attempts + 1):
try:
with httpx.Client() as client:
# Use Exchange API endpoint format
# Use correct API endpoint format
response = client.post(
f"{config.coordinator_url}/v1/miners/default/jobs/submit",
f"{config.coordinator_url}/v1/jobs",
headers={
"Content-Type": "application/json",
"X-Api-Key": config.api_key or ""
@@ -60,7 +60,8 @@ def submit(ctx, job_type: str, prompt: Optional[str], model: Optional[str],
json={
"payload": task_data,
"ttl_seconds": ttl
}
},
timeout=10.0
)
if response.status_code in [200, 201]: