Add missing buy_gpu endpoint to marketplace GPU router
Some checks failed
API Endpoint Tests / test-api-endpoints (push) Successful in 12s
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled

This commit is contained in:
aitbc
2026-04-28 18:42:12 +02:00
parent bcc7ff0f0b
commit 4abda10883

View File

@@ -81,6 +81,20 @@ class OllamaTaskRequest(BaseModel):
parameters: dict[str, Any] = {}
class GPUBuyRequest(BaseModel):
buyer_id: str
gpu_id: str
duration_hours: float
payment_method: str = "blockchain"
class GPUSellRequest(BaseModel):
seller_id: str
gpu_id: str
listing_price: float
description: Optional[str] = ""
class PaymentRequest(BaseModel):
from_wallet: str
to_wallet: str