We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 999eb91 commit e7a0421Copy full SHA for e7a0421
src/components/ContextChat/ContextChatInputForm.vue
@@ -260,6 +260,13 @@ export default {
260
taskType(newValue) {
261
this.onTaskTypeChange()
262
},
263
+ inputs: {
264
+ handler(newValue) {
265
+ if (Object.keys(newValue).length === 0) {
266
+ this.onInputsReset()
267
+ }
268
+ },
269
270
271
272
mounted() {
@@ -381,6 +388,12 @@ export default {
381
388
})
382
389
383
390
onTaskTypeChange() {
391
+ this.reinitializeInputs()
392
393
+ onInputsReset() {
394
395
396
+ reinitializeInputs() {
384
397
this.$emit('update:inputs', {
385
398
prompt: this.inputs.prompt ?? '',
386
399
limit: this.isSearch ? this.taskType.inputShapeDefaults?.limit : undefined,
0 commit comments