Skip to content

Commit

Permalink
fix: update query client version and add recommended label next to 3.…
Browse files Browse the repository at this point in the history
…5 gpt version
  • Loading branch information
LinaYahya authored and spaenleh committed May 7, 2024
1 parent 5f0fb96 commit 548e689
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@codemirror/lang-javascript": "^6.2.1",
"@emotion/react": "11.11.4",
"@emotion/styled": "11.11.5",
"@graasp/apps-query-client": "https://github.com/graasp/graasp-apps-query-client.git#renovate/graasp-sdk-4.x",
"@graasp/apps-query-client": "3.4.13",
"@graasp/sdk": "4.8.1",
"@graasp/ui": "4.8.5",
"@mui/icons-material": "5.15.16",
Expand Down
5 changes: 3 additions & 2 deletions src/langs/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@
"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" : "ptimized for speed and efficiency, suitable for applications where quick interactions are needed.",
"GPT_3_5_TURBO_DESCRIPTION" : "Optimized 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."
"CHATBOT_MODEL_VERSION_HELPER": "This defines gpt version used within the model, default version is gpt-3.5-turbo-0125.",
"RECOMMENDED": "Recommended"
}
}
12 changes: 11 additions & 1 deletion src/modules/settings/ChatbotSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
Button,
Card,
CardContent,
Chip,
FormLabel,
Link,
MenuItem,
Expand Down Expand Up @@ -301,7 +302,16 @@ const ChatbotSettings = (): JSX.Element => {
>
{Object.entries(GPTVersion).map(([key, v]) => (
<MenuItem key={v} value={v} sx={{ display: 'block' }}>
<Typography>{v}</Typography>
<Stack direction="row" spacing={1}>
<Typography>{v}</Typography>
{v === GPTVersion.GPT_3_5_TURBO && (
<Chip
label={t('RECOMMENDED')}
size="small"
color="primary"
/>
)}
</Stack>
<Typography variant="caption" color="text.secondary">
{t(`${key}_DESCRIPTION`)}
</Typography>
Expand Down
27 changes: 21 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2630,13 +2630,13 @@ __metadata:
languageName: node
linkType: hard

"@graasp/apps-query-client@https://github.com/graasp/graasp-apps-query-client.git#renovate/graasp-sdk-4.x":
version: 3.4.12
resolution: "@graasp/apps-query-client@https://github.com/graasp/graasp-apps-query-client.git#commit=ab1efe0a3001fbeb20a2c293da9df6055b69e5de"
"@graasp/apps-query-client@npm:3.4.13":
version: 3.4.13
resolution: "@graasp/apps-query-client@npm:3.4.13"
dependencies:
"@emotion/react": "npm:11.11.4"
"@emotion/styled": "npm:11.11.5"
"@graasp/sdk": "npm:4.8.1"
"@graasp/sdk": "npm:4.7.6"
"@mui/icons-material": "npm:5.15.15"
"@mui/material": "npm:5.15.15"
axios: "npm:0.28.1"
Expand All @@ -2653,7 +2653,22 @@ __metadata:
date-fns: ^3.3.0
react: ^18.0.0
react-dom: ^18.0.0
checksum: 10/b8a75a59ae5f8112c10db833dde54fe930cc65664b8527d30279fc6d4b83c6e00da85a3429e799b6f2152545d1d2015e4ea4d055be53db28ba9f561a30942995
checksum: 10/181808446a2861608ee199bfc8a02b08c5bc72330d072700e4ae8d6ae873e71186def65db3819bb7646857b9ac9fff062444842ddc3aa1fe0ccd6095da3cc4fe
languageName: node
linkType: hard

"@graasp/sdk@npm:4.7.6":
version: 4.7.6
resolution: "@graasp/sdk@npm:4.7.6"
dependencies:
"@faker-js/faker": "npm:8.4.1"
filesize: "npm:10.1.1"
js-cookie: "npm:3.0.5"
validator: "npm:13.11.0"
peerDependencies:
date-fns: ^3
uuid: ^9
checksum: 10/ac12c6438b0c71502b4b837f98b0dbc164c604a98c23064a5bc0ef233486be8012176fd4cbee3879db2cd468cefd5489678703709ae1b4e766f431ef3ac9f7b2
languageName: node
linkType: hard

Expand Down Expand Up @@ -8354,7 +8369,7 @@ __metadata:
"@cypress/code-coverage": "npm:3.12.38"
"@emotion/react": "npm:11.11.4"
"@emotion/styled": "npm:11.11.5"
"@graasp/apps-query-client": "https://github.com/graasp/graasp-apps-query-client.git#renovate/graasp-sdk-4.x"
"@graasp/apps-query-client": "npm:3.4.13"
"@graasp/sdk": "npm:4.8.1"
"@graasp/ui": "npm:4.8.5"
"@mui/icons-material": "npm:5.15.16"
Expand Down

0 comments on commit 548e689

Please sign in to comment.