Graphorin API reference v0.15.1
Graphorin API reference / @graphorin/pricing / / isGenaiPricesShape
Function: isGenaiPricesShape()
ts
function isGenaiPricesShape(body): boolean;Defined in: pricing/src/convert-genai-prices.ts:76
Stable
Cheap structural detector: does this body look like the genai-prices dataset (a providers array of objects carrying models arrays, or the published bare top-level array of those provider objects)?
Parameters
| Parameter | Type |
|---|---|
body | unknown |
Returns
boolean