- {$i18n.t('Advanced Params')}
+ {@const toggleableFilters = $functions.filter(
+ (func) =>
+ func.type === 'filter' &&
+ (filterIds.includes(func.id) || func?.is_global) &&
+ func?.meta?.toggle
+ )}
+
+ {#if toggleableFilters.length > 0}
+
+
+
+ {/if}
+ {/if}
+
+ {#if ($functions ?? []).filter((func) => func.type === 'action').length > 0}
+
+
func.type === 'action')}
+ />
+
+ {/if}
+ {/if}
+
+
+
+
+
+
+
+ {#if Object.keys(capabilities).filter((key) => capabilities[key]).length > 0}
+ {@const availableFeatures = Object.entries(capabilities)
+ .filter(
+ ([key, value]) =>
+ value && ['web_search', 'code_interpreter', 'image_generation'].includes(key)
+ )
+ .map(([key, value]) => key)}
+
+ {#if availableFeatures.length > 0}
+
+
+
+ {/if}
+ {/if}
+
+ {#if capabilities.builtin_tools}
+
+
+
+ {/if}
+
+ {#if capabilities.terminal}
+
+
+
+ {/if}
+
+
+
+
+ {$i18n.t('TTS Voice')}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{$i18n.t('JSON Preview')}
+
- {#if showAdvanced}
-
- {/if}
-
-
-
-
-
-
-
-
- {$i18n.t('Prompts')}
-
-
-
-
-
- {#if info?.meta?.suggestion_prompts}
-
- {/if}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {#if ($functions ?? []).filter((func) => func.type === 'filter').length > 0 || ($functions ?? []).filter((func) => func.type === 'action').length > 0}
-
-
- {#if ($functions ?? []).filter((func) => func.type === 'filter').length > 0}
-
- func.type === 'filter')}
- />
-
-
- {@const toggleableFilters = $functions.filter(
- (func) =>
- func.type === 'filter' &&
- (filterIds.includes(func.id) || func?.is_global) &&
- func?.meta?.toggle
- )}
-
- {#if toggleableFilters.length > 0}
-
-
+
{/if}
- {/if}
-
- {#if ($functions ?? []).filter((func) => func.type === 'action').length > 0}
-
-
func.type === 'action')}
- />
-
- {/if}
- {/if}
-
-
-
-
-
-
-
- {#if Object.keys(capabilities).filter((key) => capabilities[key]).length > 0}
- {@const availableFeatures = Object.entries(capabilities)
- .filter(
- ([key, value]) =>
- value && ['web_search', 'code_interpreter', 'image_generation'].includes(key)
- )
- .map(([key, value]) => key)}
-
- {#if availableFeatures.length > 0}
-
-
-
- {/if}
- {/if}
-
- {#if capabilities.builtin_tools}
-
-
- {/if}
-
- {#if capabilities.terminal}
-
-
-
- {/if}
-
-
-
-
- {$i18n.t('TTS Voice')}
-
-
-
-
-
-
-
-
-
-
-
-
-
{$i18n.t('JSON Preview')}
-
-
-
-
- {#if showPreview}
-
-
-
- {/if}
-
-