Skip to content

Commit

Permalink
Integrate GPT API for query generation (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
mewim authored Dec 7, 2023
1 parent e6a3148 commit 941a036
Show file tree
Hide file tree
Showing 11 changed files with 424 additions and 19 deletions.
164 changes: 155 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"moment": "^2.29.4",
"monaco-editor": "^0.41.0",
"monaco-themes": "^0.4.4",
"openai": "^4.20.1",
"pinia": "^2.0.23",
"pino": "^8.16.1",
"pino-pretty": "^10.2.3",
Expand Down
11 changes: 10 additions & 1 deletion src/components/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,15 @@ export default {
updateNavbarHeight() {
this.navbarHeight = this.$refs.navbar.clientHeight;
},
...mapActions(useSettingsStore, ['initDefaultSettings', 'handleSchemaReload', 'setPlaceholderNodeTable', 'setPlaceholderRelTable', 'unsetPlaceholderNodeTable', 'unsetPlaceholderRelTable'])
...mapActions(useSettingsStore, [
'initDefaultSettings',
'handleSchemaReload',
'setPlaceholderNodeTable',
'setPlaceholderRelTable',
'unsetPlaceholderNodeTable',
'unsetPlaceholderRelTable',
'loadGptApiTokenFromLocalStorage'
])
},
computed: {
...mapStores(useModeStore)
Expand All @@ -295,6 +303,7 @@ export default {
this.updateNavbarHeight();
this.accessModeModal = new Modal(this.$refs.modal);
window.addEventListener("resize", this.updateNavbarHeight);
this.loadGptApiTokenFromLocalStorage();
},
beforeUnmount() {
this.accessModeModal.dispose();
Expand Down
Loading

0 comments on commit 941a036

Please sign in to comment.