feat: Add comprehensive cost tracking display for LLM usage (#2992)

Co-authored-by: jack <jack@deck.local>
Co-authored-by: Bradley Axen <baxen@squareup.com>
This commit is contained in:
jack
2025-06-26 10:46:14 +01:00
committed by GitHub
parent 9d48ed980f
commit d2ff4f3746
24 changed files with 1985 additions and 47 deletions
+12
View File
@@ -229,10 +229,22 @@ export type ModelInfo = {
* The maximum context length this model supports
*/
context_limit: number;
/**
* Currency for the costs (default: "$")
*/
currency?: string | null;
/**
* Cost per token for input (optional)
*/
input_token_cost?: number | null;
/**
* The name of the model
*/
name: string;
/**
* Cost per token for output (optional)
*/
output_token_cost?: number | null;
};
export type PermissionConfirmationRequest = {