ApplyCarbonOptions
Auto-generated API reference for ApplyCarbonOptions.
Interface: ApplyCarbonOptions
Defined in: adapters/src/carbon.ts:67
#Properties
#fallback?
optionalfallback?:number
Defined in: adapters/src/carbon.ts:77
Fallback gCO2eq per 1k tokens when no table entry is found.
#keyFor?
optionalkeyFor?: (candidate) =>`$\{string\}:$\{string\}`|undefined
Defined in: adapters/src/carbon.ts:75
How to derive the lookup key for a candidate. Defaults to
$\{provider\}:$\{region\} where provider is the candidate id
before the first - and region is candidate.region.
#Parameters
candidate
#Returns
`$\{string\}:$\{string\}` | undefined
#table?
optionaltable?:CarbonTable
Defined in: adapters/src/carbon.ts:69
Override the default table.