From 4732f25acf968bd98ae7a4fa8e8da0d207f7b9af Mon Sep 17 00:00:00 2001 From: Jeremy Marjollet Date: Wed, 8 Nov 2023 17:52:32 +0100 Subject: [PATCH] Update 0.3.0 - Reflect GPT 4 Turbo pricing --- package.json | 3 ++- src/components/Layout.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f28e28a..be92e98 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "chatpad", + "version": "0.3.0", "private": true, "source": "src/index.html", "browserslist": "> 0.5%, last 2 versions, not dead", @@ -53,4 +54,4 @@ "remark-gfm": "^3.0.1", "typescript": "4.9.5" } -} +} \ No newline at end of file diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 3c39330..7f13f39 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -283,7 +283,7 @@ export function Layout() { }} > {`${chat.description} - ${chat.totalTokens ?? 0} tokens ~ $${( - ((chat.totalTokens ?? 0) * 0.002) / + ((chat.totalTokens ?? 0) * 0.03) / 1000 ).toFixed(5)}`}