Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/pricing / / isGenaiPricesShape
Function: isGenaiPricesShape()
ts
function isGenaiPricesShape(body): boolean;Defined in: packages/pricing/src/convert-genai-prices.ts:62
Cheap structural detector: does this body look like the genai-prices dataset (a providers array of objects carrying models arrays)?
Parameters
| Parameter | Type |
|---|---|
body | unknown |
Returns
boolean