Skip to content

Commit

Permalink
Address PR reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
javisperez committed Dec 3, 2024
1 parent 771ad9e commit fefa761
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build-devmode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

## install build dependencies for frontend generation
- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: 20
node-version-file: './frontend/dev-mode/.nvmrc'

- uses: pnpm/action-setup@v2
name: Install pnpm
- name: Install pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
with:
package_json_file: frontend/dev-mode/package.json
version: 8
package_json_file: frontend/dev-mode/package.json
run_install: false

- name: Get pnpm store directory
Expand Down
12 changes: 8 additions & 4 deletions frontend/dev-mode/src/components/ChatPrompt.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ const stats = inject('stats', {} as Stats)
const isGenerating = inject('isGenerating', false)
const isPending = inject('isPending', false)
const isChatStarted = inject('isChatStarted', false)
const runChat = inject('runChat', (message: string) => message)
const runCompletion = inject('runCompletion', () => {})
const stop = inject('stop', (e: Event) => e)
const uploadImage = inject('uploadImage', () => {})
const runChat = inject<Function>('runChat')
const runCompletion = inject<Function>('runCompletion')
const stop = inject<Function>('stop')
const uploadImage = inject<Function>('uploadImage')
if (!runChat || !runCompletion || !stop || !uploadImage) {
throw new Error('required function not provided')
}
const send = (customMessage: string = '') => {
if (!message.value && !customMessage) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/dev-mode/src/components/InputCodeSnippets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ data=$'{
"stream": true,
${
Object.entries(parameters.value).map(([key, value]) => {
return `"${key}"": ${value}`
return `"${key}": ${value}`
}).join(',\n ')
}
}'
Expand Down

0 comments on commit fefa761

Please sign in to comment.