MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / GetSpecs

Method GetSpecs

api/client.go:348–356  ·  view source on GitHub ↗

GetSpecs retrieves GPU spec configurations from the API.

()

Source from the content-addressed store, hash-verified

346
347// GetSpecs retrieves GPU spec configurations from the API.
348func (c *Client) GetSpecs() (map[string]GpuSpecConfig, error) {
349 var result struct {
350 Specs map[string]GpuSpecConfig `json:"specs"`
351 }
352 if err := c.doRequest(context.Background(), "GET", "/v2/specs", nil, &result); err != nil {
353 return nil, err
354 }
355 return result.Specs, nil
356}
357
358// GetAvailability retrieves per-spec GPU availability from the API.
359func (c *Client) GetAvailability() (*GPUAvailabilityResponse, error) {

Callers 1

FetchSpecStoreFunction · 0.80

Calls 1

doRequestMethod · 0.95

Tested by

no test coverage detected