add template

This commit is contained in:
2023-07-20 01:34:33 +08:00
parent 7ad28386b7
commit 4caf8ba669
4 changed files with 87 additions and 2 deletions

View File

@@ -71,6 +71,7 @@ const STORAGE_NAME = "chatgpt-api-web";
const STORAGE_NAME_SELECTED = `${STORAGE_NAME}-selected`;
const STORAGE_NAME_INDEXES = `${STORAGE_NAME}-indexes`;
const STORAGE_NAME_TOTALCOST = `${STORAGE_NAME}-totalcost`;
export const STORAGE_NAME_TEMPLATE = `${STORAGE_NAME}-template`;
export function addTotalCost(cost: number) {
let totalCost = getTotalCost();