File tree 2 files changed +19
-15
lines changed
2 files changed +19
-15
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<q-btn
3
3
v-bind =" $attrs"
4
- :class =" model ? 'bg-secondary text-primary' : ''"
5
- :icon =" model ? onIcon : offIcon"
4
+ :class =" (reverse ? ! model : model) ? 'bg-secondary text-primary' : ''"
5
+ :icon =" (reverse ? ! model : model) ? onIcon : offIcon"
6
6
@click =" model = !model"
7
7
>
8
8
<slot ></slot >
@@ -19,5 +19,6 @@ const model = defineModel<boolean>({
19
19
defineProps <{
20
20
onIcon? : QBtnProps [' icon' ];
21
21
offIcon? : QBtnProps [' icon' ];
22
+ reverse? : boolean ;
22
23
}>();
23
24
</script >
Original file line number Diff line number Diff line change 204
204
dense
205
205
:on-icon =" mdiAutoFix"
206
206
:off-icon =" mdiAlphabeticalVariant"
207
- size =" md"
208
207
>
209
208
<div class =" q-pl-sm gt-xs" >Fancy AI</div >
210
209
<q-tooltip :delay =" 200" >
224
223
{{ llmSettings.shape.tryUsingVisionModels.description }}
225
224
</q-tooltip >
226
225
</ToggleButton >
227
- <!--
228
- <q-toggle
226
+ <ToggleButton
229
227
v-if =" expertMode"
230
- :icon="matHandyman"
231
- left-label
232
- color="secondary"
233
- dense
234
- size="xl"
235
228
v-model =" state.llmSettings.enableOpenAiTools"
236
- ><q-tooltip
237
- >Enable OpenAI Functions (use built-in function selection mode for
238
- OpenAI)</q-tooltip
239
- ></q-toggle
240
- >-->
229
+ on-icon =" svguse:/taskyon_mono_opt.svg#taskyon"
230
+ :off-icon =" matSmartToy"
231
+ dense
232
+ outline
233
+ reverse
234
+ >
235
+ <q-icon :name =" mdiFunctionVariant" ></q-icon >
236
+ <q-tooltip :dely =" 200" >
237
+ If turned on, use taskyon function selection mode for models which
238
+ support this. Otherwise use the built-in support for models which
239
+ support this. Taskyon mode is usually recommended as it is model
240
+ agnostic.</q-tooltip
241
+ ></ToggleButton
242
+ >
241
243
</div >
242
244
</div >
243
245
<q-slide-transition >
@@ -362,6 +364,7 @@ import {
362
364
mdiAlphabeticalVariant ,
363
365
mdiAutoFix ,
364
366
mdiTools ,
367
+ mdiFunctionVariant ,
365
368
} from ' @quasar/extras/mdi-v6' ;
366
369
import { deepMerge } from ' src/modules/utils' ;
367
370
import { getApiConfig } from ' src/modules/taskyon/taskWorker' ;
You can’t perform that action at this time.
0 commit comments