@christianriedl/utils 1.0.145 → 1.0.146
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/OpenAIConfig.vue +12 -11
package/package.json
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
const metadata = ref<IDataItem[]>([]);
|
|
37
37
|
const toolName = ref('');
|
|
38
38
|
const toolFunctions = reactive<IFunction[]>([]);
|
|
39
|
+
const canClear = !props.ismobile;
|
|
39
40
|
let fileHandle: FileSystemFileHandle | null = null;
|
|
40
41
|
let vsSelected = false;
|
|
41
42
|
|
|
@@ -364,13 +365,13 @@
|
|
|
364
365
|
</v-select>
|
|
365
366
|
</v-col>
|
|
366
367
|
<v-col cols="2">
|
|
367
|
-
<v-number-input v-model="options.max_output_tokens" control-variant="hidden" hide-details clearable label="Max Token" density="compact" @change="onOptionChange"></v-number-input>
|
|
368
|
+
<v-number-input v-model="options.max_output_tokens" control-variant="hidden" hide-details :clearable="canClear" label="Max Token" density="compact" @change="onOptionChange"></v-number-input>
|
|
368
369
|
</v-col>
|
|
369
370
|
<v-col cols="1">
|
|
370
|
-
<v-number-input v-model="options.temperature" control-variant="hidden" :precision="2" hide-details clearable label="Temperature" density="compact" @change="onOptionChange"></v-number-input>
|
|
371
|
+
<v-number-input v-model="options.temperature" control-variant="hidden" :precision="2" hide-details :clearable="canClear" label="Temperature" density="compact" @change="onOptionChange"></v-number-input>
|
|
371
372
|
</v-col>
|
|
372
373
|
<v-col cols="1">
|
|
373
|
-
<v-number-input v-model="options.top_p" control-variant="hidden" :precision="2" hide-details clearable label="Top P" density="compact" @change="onOptionChange"></v-number-input>
|
|
374
|
+
<v-number-input v-model="options.top_p" control-variant="hidden" :precision="2" hide-details :clearable="canClear" label="Top P" density="compact" @change="onOptionChange"></v-number-input>
|
|
374
375
|
</v-col>
|
|
375
376
|
<v-col cols="1">
|
|
376
377
|
<v-checkbox v-model="options.store" label="Store" hide-details density="compact" @change="onOptionChange"></v-checkbox>
|
|
@@ -378,7 +379,7 @@
|
|
|
378
379
|
</v-row>
|
|
379
380
|
<v-row dense align="center">
|
|
380
381
|
<v-col cols="12">
|
|
381
|
-
<v-text-field v-model="options.instructions" type="string" hide-details clearable label="System Message" density="compact" @change="onOptionChange"></v-text-field>
|
|
382
|
+
<v-text-field v-model="options.instructions" type="string" hide-details :clearable="canClear" label="System Message" density="compact" @change="onOptionChange"></v-text-field>
|
|
382
383
|
</v-col>
|
|
383
384
|
</v-row>
|
|
384
385
|
<template v-for="(tool, key) in tools">
|
|
@@ -387,13 +388,13 @@
|
|
|
387
388
|
<v-text-field v-model="tool.server_label" type="string " hide-details disabled label="mcp" density="compact" @change="onToolChange"></v-text-field>
|
|
388
389
|
</v-col>
|
|
389
390
|
<v-col cols="3">
|
|
390
|
-
<v-text-field v-model="tool.server_url" type="string" hide-details clearable label="Url" density="compact" @change="onToolChange"></v-text-field>
|
|
391
|
+
<v-text-field v-model="tool.server_url" type="string" hide-details :clearable="canClear" label="Url" density="compact" @change="onToolChange"></v-text-field>
|
|
391
392
|
</v-col>
|
|
392
393
|
<v-col cols="2">
|
|
393
|
-
<v-text-field v-model="tool.connector_id" type="string" hide-details clearable label="Connector Id" density="compact" @change="onToolChange"></v-text-field>
|
|
394
|
+
<v-text-field v-model="tool.connector_id" type="string" hide-details :clearable="canClear" label="Connector Id" density="compact" @change="onToolChange"></v-text-field>
|
|
394
395
|
</v-col>
|
|
395
396
|
<v-col cols="2">
|
|
396
|
-
<v-text-field v-model="tool.server_description" type="string" hide-details clearable label="Description" density="compact" @change="onToolChange"></v-text-field>
|
|
397
|
+
<v-text-field v-model="tool.server_description" type="string" hide-details :clearable="canClear" label="Description" density="compact" @change="onToolChange"></v-text-field>
|
|
397
398
|
</v-col>
|
|
398
399
|
<v-col cols="props.isMobile ? 2 : 1">
|
|
399
400
|
<v-select v-model="tool.require_approval" :items="mcpApprovals" hide-details
|
|
@@ -419,7 +420,7 @@
|
|
|
419
420
|
</v-select>
|
|
420
421
|
</v-col>
|
|
421
422
|
<v-col cols="2">
|
|
422
|
-
<v-number-input v-model="tool.max_num_results" control-variant="hidden" hide-details clearable label="Max Results" density="compact" @change="onToolChange"></v-number-input>
|
|
423
|
+
<v-number-input v-model="tool.max_num_results" control-variant="hidden" hide-details :clearable="canClear" label="Max Results" density="compact" @change="onToolChange"></v-number-input>
|
|
423
424
|
</v-col>
|
|
424
425
|
<v-col cols="1">
|
|
425
426
|
<v-btn icon="$delete" variant="tonal" @click.stop.prevent="onDelete(key)"></v-btn>
|
|
@@ -433,13 +434,13 @@
|
|
|
433
434
|
<v-text-field :model-value="key" type="string" hide-details disabled label="file_search" density="compact" @change="onToolChange"></v-text-field>
|
|
434
435
|
</v-col>
|
|
435
436
|
<v-col cols="2">
|
|
436
|
-
<v-text-field v-model="tool.user_location.country" type="string" hide-details clearable label="Country" density="compact" @change="onToolChange"></v-text-field>
|
|
437
|
+
<v-text-field v-model="tool.user_location.country" type="string" hide-details :clearable="canClear" label="Country" density="compact" @change="onToolChange"></v-text-field>
|
|
437
438
|
</v-col>
|
|
438
439
|
<v-col cols="3">
|
|
439
|
-
<v-text-field v-model="tool.user_location.city" type="string" hide-details clearable label="City" density="compact" @change="onToolChange"></v-text-field>
|
|
440
|
+
<v-text-field v-model="tool.user_location.city" type="string" hide-details :clearable="canClear" label="City" density="compact" @change="onToolChange"></v-text-field>
|
|
440
441
|
</v-col>
|
|
441
442
|
<v-col cols="4">
|
|
442
|
-
<v-text-field v-model="tool.user_location.region" type="string" hide-details clearable label="Region" density="compact" @change="onToolChange"></v-text-field>
|
|
443
|
+
<v-text-field v-model="tool.user_location.region" type="string" hide-details :clearable="canClear" label="Region" density="compact" @change="onToolChange"></v-text-field>
|
|
443
444
|
</v-col>
|
|
444
445
|
<v-col cols="1">
|
|
445
446
|
<v-btn icon="$delete" variant="tonal" @click.stop.prevent="onDelete(key)"></v-btn>
|