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

Method FetchPricing

api/client.go:337–345  ·  view source on GitHub ↗

FetchPricing retrieves the public pricing data from the API.

()

Source from the content-addressed store, hash-verified

335
336// FetchPricing retrieves the public pricing data from the API.
337func (c *Client) FetchPricing() (map[string]float64, error) {
338 var result struct {
339 Pricing map[string]float64 `json:"pricing"`
340 }
341 if err := c.doRequest(context.Background(), "GET", "/v2/pricing", nil, &result); err != nil {
342 return nil, err
343 }
344 return result.Pricing, nil
345}
346
347// GetSpecs retrieves GPU spec configurations from the API.
348func (c *Client) GetSpecs() (map[string]GpuSpecConfig, error) {

Callers 4

fetchModifyPricingCmdFunction · 0.80
fetchCreatePricingCmdFunction · 0.80
runModifyFunction · 0.80
runCreateFunction · 0.80

Calls 1

doRequestMethod · 0.95

Tested by

no test coverage detected