Skip to content

Commit

Permalink
Merge branch 'main' into more-packed
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia authored Apr 25, 2024
2 parents 6cdb036 + 4d7e30e commit ccac324
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 79 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [4.7.6](https://github.com/graasp/graasp-sdk/compare/v4.7.5...v4.7.6) (2024-04-23)


### Bug Fixes

* add gpt enum ([#494](https://github.com/graasp/graasp-sdk/issues/494)) ([80b2169](https://github.com/graasp/graasp-sdk/commit/80b2169c5a49fbcd3843869ddd53476b29464781))

## [4.7.5](https://github.com/graasp/graasp-sdk/compare/v4.7.4...v4.7.5) (2024-04-19)


Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graasp/sdk",
"version": "4.7.5",
"version": "4.7.6",
"description": "Development kit including type definitions and util functions for the Graasp ecosystem.",
"license": "AGPL-3.0-only",
"repository": "[email protected]:graasp/graasp-sdk.git",
Expand Down Expand Up @@ -52,15 +52,15 @@
"uuid": "^9"
},
"devDependencies": {
"@commitlint/cli": "19.2.2",
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@trivago/prettier-plugin-sort-imports": "4.3.0",
"@types/eslint": "8.56.9",
"@types/eslint": "8.56.10",
"@types/js-cookie": "3.0.6",
"@types/uuid": "9.0.8",
"@types/validator": "13.11.9",
"@typescript-eslint/eslint-plugin": "7.7.0",
"@typescript-eslint/parser": "7.7.0",
"@typescript-eslint/eslint-plugin": "7.7.1",
"@typescript-eslint/parser": "7.7.1",
"date-fns": "3.6.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
Expand All @@ -70,7 +70,7 @@
"tsc-alias": "1.8.8",
"typescript": "5.4.5",
"uuid": "9.0.1",
"vite-plugin-dts": "3.8.3",
"vite-plugin-dts": "3.9.0",
"vitest": "1.5.0"
},
"packageManager": "[email protected]"
Expand Down
6 changes: 6 additions & 0 deletions src/chatbot/chatbot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ export enum ChatbotRole {
User = 'user',
}

export enum GPTVersion {
GPT_3_5_TURBO = 'gpt-3.5-turbo-0125',
GPT_4 = 'gpt-4',
GPT_4_TURBO = 'gpt-4-turbo',
}

export type ChatBotMessage = {
role: `${ChatbotRole}` | ChatbotRole;
content: string;
Expand Down
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,4 +281,8 @@ export {
/**
* Chatbot related types
*/
export { ChatbotRole, type ChatBotMessage } from './chatbot/chatbot.js';
export {
ChatbotRole,
type ChatBotMessage,
GPTVersion,
} from './chatbot/chatbot.js';
144 changes: 72 additions & 72 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ __metadata:
languageName: node
linkType: hard

"@commitlint/cli@npm:19.2.2":
version: 19.2.2
resolution: "@commitlint/cli@npm:19.2.2"
"@commitlint/cli@npm:19.3.0":
version: 19.3.0
resolution: "@commitlint/cli@npm:19.3.0"
dependencies:
"@commitlint/format": "npm:^19.0.3"
"@commitlint/format": "npm:^19.3.0"
"@commitlint/lint": "npm:^19.2.2"
"@commitlint/load": "npm:^19.2.0"
"@commitlint/read": "npm:^19.2.1"
Expand All @@ -177,7 +177,7 @@ __metadata:
yargs: "npm:^17.0.0"
bin:
commitlint: cli.js
checksum: 10c0/25f4acaaafd089ceee0d5e1fe670eec85999b5dbcf20eb93cd053d9e42de0bec69d18f4f6c9d68be448fcf8889ef3eca91302d828f8b601fddf00180d7ae6396
checksum: 10c0/12049b6ccb1fd3939c5713fdc9b2aa9054985f3ced465e9494ce7c23b3c69a9e9ea25c84fffa5ba147b6bb5cd086a29000dfac2218a7592494b007bab592e057
languageName: node
linkType: hard

Expand Down Expand Up @@ -222,13 +222,13 @@ __metadata:
languageName: node
linkType: hard

"@commitlint/format@npm:^19.0.3":
version: 19.0.3
resolution: "@commitlint/format@npm:19.0.3"
"@commitlint/format@npm:^19.3.0":
version: 19.3.0
resolution: "@commitlint/format@npm:19.3.0"
dependencies:
"@commitlint/types": "npm:^19.0.3"
chalk: "npm:^5.3.0"
checksum: 10c0/9d8a5b55ca8e35351c6f1dbbec8f749fe3f7c66f01ba0e248574530fa1dac944b87ee5bd63153a14e3748068a2e9b0b8341cec21c768f384bb5a5c8124902a1f
checksum: 10c0/857a1784481edad9013514cbcc9ec93af33acc8bd491f5d23625c53fb93841566ce110e3004ecaab7f4f89c9331940fe63b83922a4a81f419e67b70e0dc90e41
languageName: node
linkType: hard

Expand Down Expand Up @@ -570,16 +570,16 @@ __metadata:
version: 0.0.0-use.local
resolution: "@graasp/sdk@workspace:."
dependencies:
"@commitlint/cli": "npm:19.2.2"
"@commitlint/cli": "npm:19.3.0"
"@commitlint/config-conventional": "npm:19.2.2"
"@faker-js/faker": "npm:8.4.1"
"@trivago/prettier-plugin-sort-imports": "npm:4.3.0"
"@types/eslint": "npm:8.56.9"
"@types/eslint": "npm:8.56.10"
"@types/js-cookie": "npm:3.0.6"
"@types/uuid": "npm:9.0.8"
"@types/validator": "npm:13.11.9"
"@typescript-eslint/eslint-plugin": "npm:7.7.0"
"@typescript-eslint/parser": "npm:7.7.0"
"@typescript-eslint/eslint-plugin": "npm:7.7.1"
"@typescript-eslint/parser": "npm:7.7.1"
date-fns: "npm:3.6.0"
eslint: "npm:8.57.0"
eslint-config-prettier: "npm:9.1.0"
Expand All @@ -592,7 +592,7 @@ __metadata:
typescript: "npm:5.4.5"
uuid: "npm:9.0.1"
validator: "npm:13.11.0"
vite-plugin-dts: "npm:3.8.3"
vite-plugin-dts: "npm:3.9.0"
vitest: "npm:1.5.0"
peerDependencies:
date-fns: ^3
Expand Down Expand Up @@ -1005,13 +1005,13 @@ __metadata:
languageName: node
linkType: hard

"@types/eslint@npm:8.56.9":
version: 8.56.9
resolution: "@types/eslint@npm:8.56.9"
"@types/eslint@npm:8.56.10":
version: 8.56.10
resolution: "@types/eslint@npm:8.56.10"
dependencies:
"@types/estree": "npm:*"
"@types/json-schema": "npm:*"
checksum: 10c0/a800e3d10bd12fc837773101c35a65c189528e306bc41eca9f30176f5ede4d35944a0c0e16b668971db3521df2f2bef62ab2471740eadc72aeb39dbaba6c9101
checksum: 10c0/674349d6c342c3864d70f4d5a9965f96fb253801532752c8c500ad6a1c2e8b219e01ccff5dc8791dcb58b5483012c495708bb9f3ff929f5c9322b3da126c15d3
languageName: node
linkType: hard

Expand Down Expand Up @@ -1066,15 +1066,15 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/eslint-plugin@npm:7.7.0":
version: 7.7.0
resolution: "@typescript-eslint/eslint-plugin@npm:7.7.0"
"@typescript-eslint/eslint-plugin@npm:7.7.1":
version: 7.7.1
resolution: "@typescript-eslint/eslint-plugin@npm:7.7.1"
dependencies:
"@eslint-community/regexpp": "npm:^4.10.0"
"@typescript-eslint/scope-manager": "npm:7.7.0"
"@typescript-eslint/type-utils": "npm:7.7.0"
"@typescript-eslint/utils": "npm:7.7.0"
"@typescript-eslint/visitor-keys": "npm:7.7.0"
"@typescript-eslint/scope-manager": "npm:7.7.1"
"@typescript-eslint/type-utils": "npm:7.7.1"
"@typescript-eslint/utils": "npm:7.7.1"
"@typescript-eslint/visitor-keys": "npm:7.7.1"
debug: "npm:^4.3.4"
graphemer: "npm:^1.4.0"
ignore: "npm:^5.3.1"
Expand All @@ -1087,68 +1087,68 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: 10c0/d1f4c40523d284bce4b8272750c68aae5c0289ddb1c9267dd3477e0bfb8c8855bfb0c6e86dfec9911ca8302ef729d5f4e47d686a566f363b0f89bf7dc7670b5c
checksum: 10c0/11a085240e7daf4bdeb011aa53ac7cfeea6263c60d53607823f5c314eb5c9d559b28fce0d6686acb9702ee3d0cb0406534fafae61163e5a903eaf818c48194ad
languageName: node
linkType: hard

"@typescript-eslint/parser@npm:7.7.0":
version: 7.7.0
resolution: "@typescript-eslint/parser@npm:7.7.0"
"@typescript-eslint/parser@npm:7.7.1":
version: 7.7.1
resolution: "@typescript-eslint/parser@npm:7.7.1"
dependencies:
"@typescript-eslint/scope-manager": "npm:7.7.0"
"@typescript-eslint/types": "npm:7.7.0"
"@typescript-eslint/typescript-estree": "npm:7.7.0"
"@typescript-eslint/visitor-keys": "npm:7.7.0"
"@typescript-eslint/scope-manager": "npm:7.7.1"
"@typescript-eslint/types": "npm:7.7.1"
"@typescript-eslint/typescript-estree": "npm:7.7.1"
"@typescript-eslint/visitor-keys": "npm:7.7.1"
debug: "npm:^4.3.4"
peerDependencies:
eslint: ^8.56.0
peerDependenciesMeta:
typescript:
optional: true
checksum: 10c0/d756c2292737499a93913647af7493aded5dc720a5f4ab6f8e96d6cc81f19cf6a1769a1df0f516f8facd276d34f8464f1711e57b0216082e32eb6b75da81b12e
checksum: 10c0/ace43eeb8123bbee61e936650e1d57a2cf70f2030870c6dcad8602fce3f7cdf2cce350121dbbc66cffd60bac36652f426a1c5293c45ed28998b90cd95673b5c9
languageName: node
linkType: hard

"@typescript-eslint/scope-manager@npm:7.7.0":
version: 7.7.0
resolution: "@typescript-eslint/scope-manager@npm:7.7.0"
"@typescript-eslint/scope-manager@npm:7.7.1":
version: 7.7.1
resolution: "@typescript-eslint/scope-manager@npm:7.7.1"
dependencies:
"@typescript-eslint/types": "npm:7.7.0"
"@typescript-eslint/visitor-keys": "npm:7.7.0"
checksum: 10c0/014a3631c12bfbd5e33146a48e4b9eb5cc1c5c95bb458de33f8847eed33c04d7b9e66283971e48297673c4b92c3239d67e6dc3717efbe5836e0269a538c13d2e
"@typescript-eslint/types": "npm:7.7.1"
"@typescript-eslint/visitor-keys": "npm:7.7.1"
checksum: 10c0/4032da8fce8922044a6b659c8435ba203377778d5b7de6a5572c1172f2e3cf8ddd890a0f9e083c5d5315a9c2dba323707528ee4ad3cc1be2bd334de2527ef5cb
languageName: node
linkType: hard

"@typescript-eslint/type-utils@npm:7.7.0":
version: 7.7.0
resolution: "@typescript-eslint/type-utils@npm:7.7.0"
"@typescript-eslint/type-utils@npm:7.7.1":
version: 7.7.1
resolution: "@typescript-eslint/type-utils@npm:7.7.1"
dependencies:
"@typescript-eslint/typescript-estree": "npm:7.7.0"
"@typescript-eslint/utils": "npm:7.7.0"
"@typescript-eslint/typescript-estree": "npm:7.7.1"
"@typescript-eslint/utils": "npm:7.7.1"
debug: "npm:^4.3.4"
ts-api-utils: "npm:^1.3.0"
peerDependencies:
eslint: ^8.56.0
peerDependenciesMeta:
typescript:
optional: true
checksum: 10c0/064c28d4087a97fd175e07e02c0a9cf4526f61cc6a17b4199fba626932979210037643a30f868bda8174fad567a8ac6aed34120631d1ecfd502e0ea1e830f9e9
checksum: 10c0/bd083c4106e207aa8c2a71251eca52d23c7ea905399b8c62004f3bb1e85b9c88d601db9dcecae88beef0f8362d53450bb2721aab353ee731c1665496fea3fbda
languageName: node
linkType: hard

"@typescript-eslint/types@npm:7.7.0":
version: 7.7.0
resolution: "@typescript-eslint/types@npm:7.7.0"
checksum: 10c0/eb50793650c9a911c73586150807912e7b7a0ae12eeb26c7a322ac8ebb8edef15960cc9a4b7049dbb89b82500079963145f67d15583f5de270fe8290974db533
"@typescript-eslint/types@npm:7.7.1":
version: 7.7.1
resolution: "@typescript-eslint/types@npm:7.7.1"
checksum: 10c0/7d240503d9d0b12d68c8204167690609f02ededb77dcb035c1c8b932da08cf43553829c29a5f7889824a7337463c300343bc5abe532479726d4c83443a7e2704
languageName: node
linkType: hard

"@typescript-eslint/typescript-estree@npm:7.7.0":
version: 7.7.0
resolution: "@typescript-eslint/typescript-estree@npm:7.7.0"
"@typescript-eslint/typescript-estree@npm:7.7.1":
version: 7.7.1
resolution: "@typescript-eslint/typescript-estree@npm:7.7.1"
dependencies:
"@typescript-eslint/types": "npm:7.7.0"
"@typescript-eslint/visitor-keys": "npm:7.7.0"
"@typescript-eslint/types": "npm:7.7.1"
"@typescript-eslint/visitor-keys": "npm:7.7.1"
debug: "npm:^4.3.4"
globby: "npm:^11.1.0"
is-glob: "npm:^4.0.3"
Expand All @@ -1158,34 +1158,34 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: 10c0/19da9bf0948c9800fde19c5a408a80a3a4cf357ff67d47b516df5d2a05701a4fdd2b9ab5b692866bd84bfc17cea9132d1575a1423e01763a4c2918b5d77d0b34
checksum: 10c0/c6b32bd96fd13b9da0a30de01935066f7505f6214f5759e3cd019f7d1852f7bf19358765f62e51de72be47647656aa0e8f07ac0ab316c4149a4e6bd1dd12cbb6
languageName: node
linkType: hard

"@typescript-eslint/utils@npm:7.7.0":
version: 7.7.0
resolution: "@typescript-eslint/utils@npm:7.7.0"
"@typescript-eslint/utils@npm:7.7.1":
version: 7.7.1
resolution: "@typescript-eslint/utils@npm:7.7.1"
dependencies:
"@eslint-community/eslint-utils": "npm:^4.4.0"
"@types/json-schema": "npm:^7.0.15"
"@types/semver": "npm:^7.5.8"
"@typescript-eslint/scope-manager": "npm:7.7.0"
"@typescript-eslint/types": "npm:7.7.0"
"@typescript-eslint/typescript-estree": "npm:7.7.0"
"@typescript-eslint/scope-manager": "npm:7.7.1"
"@typescript-eslint/types": "npm:7.7.1"
"@typescript-eslint/typescript-estree": "npm:7.7.1"
semver: "npm:^7.6.0"
peerDependencies:
eslint: ^8.56.0
checksum: 10c0/c5f18ce198b420bdc201fd4278b4fa97bfe86178db565f3c4e1991bb452c9ea0b657e7980572555e2ec2fe218d07c42c794d217b9369903019cf784eea7e2164
checksum: 10c0/0986b8c297d6bfdbd2ac8cd3bcf447ef9b934e2dae536771d3368a5c284a0b16c0ea041f82aa100c48d05acc33198e1a3d9d721d3319ae80abba0f5e69c21633
languageName: node
linkType: hard

"@typescript-eslint/visitor-keys@npm:7.7.0":
version: 7.7.0
resolution: "@typescript-eslint/visitor-keys@npm:7.7.0"
"@typescript-eslint/visitor-keys@npm:7.7.1":
version: 7.7.1
resolution: "@typescript-eslint/visitor-keys@npm:7.7.1"
dependencies:
"@typescript-eslint/types": "npm:7.7.0"
"@typescript-eslint/types": "npm:7.7.1"
eslint-visitor-keys: "npm:^3.4.3"
checksum: 10c0/0f3b9720a962c04462a75d4872714c07320c8f672841881ada797ae960f9f6bd0e5f7494178917034f42635ef76f0f09fa3c8d4bd84f31ec58ee968fe75bada7
checksum: 10c0/19cbd14ac9a234d847f457cbd880cbd98b83c331a46d2dc2d8c0e6cb54ce6159552f6dd2f7236035be1a71f13f48df4a2aa09e70ad1f1e2ff3da7c3622927bd3
languageName: node
linkType: hard

Expand Down Expand Up @@ -4640,9 +4640,9 @@ __metadata:
languageName: node
linkType: hard

"vite-plugin-dts@npm:3.8.3":
version: 3.8.3
resolution: "vite-plugin-dts@npm:3.8.3"
"vite-plugin-dts@npm:3.9.0":
version: 3.9.0
resolution: "vite-plugin-dts@npm:3.9.0"
dependencies:
"@microsoft/api-extractor": "npm:7.43.0"
"@rollup/pluginutils": "npm:^5.1.0"
Expand All @@ -4657,7 +4657,7 @@ __metadata:
peerDependenciesMeta:
vite:
optional: true
checksum: 10c0/8b9e0fa985d05d9cfd0037e32c4b6a82352f74f97a66ebb539da76ac18fd68b00f825a6f98ec6d48bb8258db8fa35ea59022cba8731621230c91959e19775c92
checksum: 10c0/6f0e0d0262fc6ef4b437ae5ccf75d881e793dcee7980c49d7b4047025c36507e77b0be690fd45ef7e7060d1ded484d5d6ba3c78e57097b0e86a601821475631b
languageName: node
linkType: hard

Expand Down

0 comments on commit ccac324

Please sign in to comment.