diff --git a/.github/workflows/fmt.yaml b/.github/workflows/fmt.yaml new file mode 100644 index 0000000..c2df7f6 --- /dev/null +++ b/.github/workflows/fmt.yaml @@ -0,0 +1,29 @@ +name: Lint + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js 18 + uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Cache dependencies + uses: actions/cache@v3 + with: + path: ~/.cache/yarn + key: ${{ runner.OS }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.OS }}-yarn- + - name: Install dependencies + run: yarn install + - name: Lint + run: yarn format:check diff --git a/package.json b/package.json index b7c6b46..ace5224 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "scripts": { "lint": "eslint --ext .js,.vue ./", "format": "prettier --write \"**/*.{js,vue,scss,html,md,json}\" --ignore-path .gitignore", + "format:check": "prettier --check \"**/*.{js,vue,scss,html,md,json}\" --ignore-path .gitignore", "test": "echo \"No test specified\" && exit 0", "dev": "quasar dev", "build": "quasar build" @@ -27,6 +28,7 @@ "dompurify": "^3.0.9", "ethers": "6.11.1", "highlight.js": "^11.9.0", + "langchain": "^0.1.30", "libertai-js": "https://github.com/Libertai/libertai-js", "marked": "^12.0.0", "marked-highlight": "^2.1.1", diff --git a/src/pages/Chat.vue b/src/pages/Chat.vue index 212b023..3f94965 100644 --- a/src/pages/Chat.vue +++ b/src/pages/Chat.vue @@ -180,7 +180,6 @@ export default defineComponent({ prompt.value, chat.value.model, )) { - console.log(output); currentMessage.content = output.content; currentMessage.unfinished = output.unfinished; @@ -268,8 +267,6 @@ export default defineComponent({ if (chat.value.title === "") { setChatName(chat.value.messages[0].content); } - nextTick(scrollBottom) - } if (chat.value.messages.length == 1) { await generatePersonaMessage(); @@ -333,7 +330,6 @@ export default defineComponent({ }; }, }); -