From c1b7b0e070ba2565c993e95490e77e09ec5d35aa Mon Sep 17 00:00:00 2001 From: Rudolf Olah <89982117+rudolfolah@users.noreply.github.com> Date: Thu, 30 Mar 2023 22:10:11 -0400 Subject: [PATCH] Feature: add link to openai account usage (#319) * Update ModelSelect.tsx to include link to account usage It would be helpful to be able to click a link to see the account usage and billing, and the model selection is related to the pricing. * updated styling and added icon for external link * fixed missing import --- components/Chat/ModelSelect.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/Chat/ModelSelect.tsx b/components/Chat/ModelSelect.tsx index b16ad0f..cdd9e7e 100644 --- a/components/Chat/ModelSelect.tsx +++ b/components/Chat/ModelSelect.tsx @@ -1,5 +1,6 @@ import { OpenAIModel, OpenAIModelID } from '@/types/openai'; import { useTranslation } from 'next-i18next'; +import { IconExternalLink } from '@tabler/icons-react'; import { FC } from 'react'; interface Props { @@ -48,6 +49,12 @@ export const ModelSelect: FC = ({ ))} +
+ + + {t('View Account Usage')} + +
); };