Skip to content

Commit

Permalink
feat: add translation for different versions
Browse files Browse the repository at this point in the history
  • Loading branch information
LinaYahya authored and spaenleh committed May 7, 2024
1 parent 73bf730 commit 5f0fb96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/langs/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@
"ABOUT_DESCRIPTION": "The chatbot app uses OpenAI's ChatGPT model as a base to provide the chatbot integration. Users responses are transmitted to OpenAI trough their API to be processed and for responses to be generated. No other user data is transmitted. If users provide personal data in their messages there is nothing we can do to protect that data.",
"ABOUT_PRIVACY_POLICY_OPENAI": "See the <1>OpenAI Privacy Policy for EU users</1>.",
"MODEL_VERSION": "Model version",
"GPT_3_5_TURBO_DESCRIPTION" : "gpt-3.5-turbo-0125",
"GPT_4_DESCRIPTION" : "gpt-4",
"GPT_4_TURBO_DESCRIPTION" : "gpt-4-turbo"
"GPT_3_5_TURBO_DESCRIPTION" : "ptimized for speed and efficiency, suitable for applications where quick interactions are needed.",
"GPT_4_DESCRIPTION" : "Features deeper learning and more comprehensive knowledge, ideal for content creation and technical support.",
"GPT_4_TURBO_DESCRIPTION" : "Combines the depth of GPT-4 with enhanced speed, perfect for high-demand scenarios.",
"CHATBOT_MODEL_VERSION_HELPER": "This defines gpt version used within the model, default version is gpt-3.5-turbo-0125."
}
}
4 changes: 2 additions & 2 deletions src/modules/settings/ChatbotSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ const ChatbotSettings = (): JSX.Element => {
<Stack>
<FormLabel>{t('MODEL_VERSION')}</FormLabel>
<Typography variant="caption" color="text.secondary">
{t('CHATBOT_CUE_HELPER')}
{t('CHATBOT_MODEL_VERSION_HELPER')}
</Typography>
</Stack>
<Select
Expand Down Expand Up @@ -381,7 +381,7 @@ const ChatbotSettings = (): JSX.Element => {
<Stack direction="column">
<FormLabel> {t('MODEL_VERSION')}</FormLabel>
<Typography variant="caption" color="text.secondary">
{t('CHATBOT_CUE_HELPER')}
{t('CHATBOT_MODEL_VERSION_HELPER')}
</Typography>
<Typography>{newChatbotVersion}</Typography>
</Stack>
Expand Down

0 comments on commit 5f0fb96

Please sign in to comment.