updatePricingToLocal
client.llm.updatePricingToLocal(): Promise<unknown>
Syncs the latest LLM pricing information to local storage.
Downloads the most up-to-date pricing catalog from the remote source and persists it locally. Call this periodically to ensure cost calculations reflect current rates.
Parameters
No parameters.
Returns
Promise<unknown> — A promise that resolves when the local pricing data has been updated
Example
import { CodeBoltClient } from '@codebolt/clientsdk';
const client = new CodeBoltClient();
const result = await client.llm.updatePricingToLocal();
console.log(result);