|
@@ -112,7 +112,7 @@
|
|
{#if tools}
|
|
{#if tools}
|
|
{#if Object.keys(tools).length > 0}
|
|
{#if Object.keys(tools).length > 0}
|
|
<button
|
|
<button
|
|
- class="flex w-full justify-between gap-2 items-center px-3 py-1.5 text-sm cursor-pointer rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800"
|
|
|
|
|
|
+ class="flex w-full justify-between gap-2 items-center px-3 py-1.5 text-sm cursor-pointer rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800/50"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
tab = 'tools';
|
|
tab = 'tools';
|
|
}}
|
|
}}
|
|
@@ -141,7 +141,7 @@
|
|
{#each toggleFilters.sort( (a, b) => a.name.localeCompare( b.name, undefined, { sensitivity: 'base' } ) ) as filter, filterIdx (filter.id)}
|
|
{#each toggleFilters.sort( (a, b) => a.name.localeCompare( b.name, undefined, { sensitivity: 'base' } ) ) as filter, filterIdx (filter.id)}
|
|
<Tooltip content={filter?.description} placement="top-start">
|
|
<Tooltip content={filter?.description} placement="top-start">
|
|
<button
|
|
<button
|
|
- class="flex w-full justify-between gap-2 items-center px-3 py-1.5 text-sm cursor-pointer rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800"
|
|
|
|
|
|
+ class="flex w-full justify-between gap-2 items-center px-3 py-1.5 text-sm cursor-pointer rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800/50"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
if (selectedFilterIds.includes(filter.id)) {
|
|
if (selectedFilterIds.includes(filter.id)) {
|
|
selectedFilterIds = selectedFilterIds.filter((id) => id !== filter.id);
|
|
selectedFilterIds = selectedFilterIds.filter((id) => id !== filter.id);
|
|
@@ -190,7 +190,7 @@
|
|
{#if showWebSearchButton}
|
|
{#if showWebSearchButton}
|
|
<Tooltip content={$i18n.t('Search the internet')} placement="top-start">
|
|
<Tooltip content={$i18n.t('Search the internet')} placement="top-start">
|
|
<button
|
|
<button
|
|
- class="flex w-full justify-between gap-2 items-center px-3 py-1.5 text-sm cursor-pointer rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800"
|
|
|
|
|
|
+ class="flex w-full justify-between gap-2 items-center px-3 py-1.5 text-sm cursor-pointer rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800/50"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
webSearchEnabled = !webSearchEnabled;
|
|
webSearchEnabled = !webSearchEnabled;
|
|
}}
|
|
}}
|
|
@@ -221,7 +221,7 @@
|
|
{#if showImageGenerationButton}
|
|
{#if showImageGenerationButton}
|
|
<Tooltip content={$i18n.t('Generate an image')} placement="top-start">
|
|
<Tooltip content={$i18n.t('Generate an image')} placement="top-start">
|
|
<button
|
|
<button
|
|
- class="flex w-full justify-between gap-2 items-center px-3 py-1.5 text-sm cursor-pointer rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800"
|
|
|
|
|
|
+ class="flex w-full justify-between gap-2 items-center px-3 py-1.5 text-sm cursor-pointer rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800/50"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
imageGenerationEnabled = !imageGenerationEnabled;
|
|
imageGenerationEnabled = !imageGenerationEnabled;
|
|
}}
|
|
}}
|
|
@@ -252,7 +252,7 @@
|
|
{#if showCodeInterpreterButton}
|
|
{#if showCodeInterpreterButton}
|
|
<Tooltip content={$i18n.t('Execute code for analysis')} placement="top-start">
|
|
<Tooltip content={$i18n.t('Execute code for analysis')} placement="top-start">
|
|
<button
|
|
<button
|
|
- class="flex w-full justify-between gap-2 items-center px-3 py-1.5 text-sm cursor-pointer rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800"
|
|
|
|
|
|
+ class="flex w-full justify-between gap-2 items-center px-3 py-1.5 text-sm cursor-pointer rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800/50"
|
|
aria-pressed={codeInterpreterEnabled}
|
|
aria-pressed={codeInterpreterEnabled}
|
|
aria-label={codeInterpreterEnabled
|
|
aria-label={codeInterpreterEnabled
|
|
? $i18n.t('Disable Code Interpreter')
|
|
? $i18n.t('Disable Code Interpreter')
|
|
@@ -287,7 +287,7 @@
|
|
{:else if tab === 'tools' && tools}
|
|
{:else if tab === 'tools' && tools}
|
|
<div in:fly={{ x: 20, duration: 150 }}>
|
|
<div in:fly={{ x: 20, duration: 150 }}>
|
|
<button
|
|
<button
|
|
- class="flex w-full justify-between gap-2 items-center px-3 py-1.5 text-sm cursor-pointer rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800"
|
|
|
|
|
|
+ class="flex w-full justify-between gap-2 items-center px-3 py-1.5 text-sm cursor-pointer rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800/50"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
tab = '';
|
|
tab = '';
|
|
}}
|
|
}}
|
|
@@ -304,7 +304,7 @@
|
|
|
|
|
|
{#each Object.keys(tools) as toolId}
|
|
{#each Object.keys(tools) as toolId}
|
|
<button
|
|
<button
|
|
- class="flex w-full justify-between gap-2 items-center px-3 py-1.5 text-sm cursor-pointer rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800"
|
|
|
|
|
|
+ class="flex w-full justify-between gap-2 items-center px-3 py-1.5 text-sm cursor-pointer rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800/50"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
tools[toolId].enabled = !tools[toolId].enabled;
|
|
tools[toolId].enabled = !tools[toolId].enabled;
|
|
}}
|
|
}}
|