Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/lib/scss/custom/pages/_chat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -761,17 +761,26 @@
justify-content: space-evenly;
gap: 5px;
padding: 10px 15px;
overflow-y: auto;
scrollbar-width: none;
height: 200px;

.card-element-title {
font-size: 0.8rem;
font-size: 0.85rem;
font-weight: 700;
}

.card-element-subtitle {
font-size: 0.7rem;
font-size: 0.8rem;
font-weight: 500;
}

.card-element-text {
font-size: 0.75rem;
font-weight: 400;
padding: 5px;
}

.card-option-group {
margin-top: 5px;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
return {
title: op.title,
subtitle: op.subtitle,
text: op.text,
image_url: op.image_url,
options: options
};
Expand Down Expand Up @@ -114,6 +115,9 @@
{#if !!card.subtitle}
<div class="card-element-subtitle hide-text">{@html card.subtitle}</div>
{/if}
{#if !!card.text}
<div class="card-element-text hide-text">{card.text}</div>
{/if}
{#if card.options?.length > 0}
<div class="card-option-group">
{#each card.options as option, i (i)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
isMultiSelect = true;
} else if (richType === RichType.Generic) {
options = message?.rich_content?.message?.elements;
isComplexElement = true;
// @ts-ignore
isComplexElement = message?.rich_content?.message?.elements?.some(x => x.buttons?.length > 0) || false;
// isComplexElement = message?.rich_content?.message?.elements?.some(x => x.buttons?.length > 0) || false;
} else if (message?.rich_content?.editor === EditorType.File) {
options = message?.rich_content?.message?.buttons;
}
Expand Down
12 changes: 10 additions & 2 deletions src/routes/page/agent/[agentId]/agent-llm-config.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,16 @@
if (!!config.provider) {
models = await getLlmProviderModels(config.provider);
}
init();
});

function init() {
const foundProvider = providers.find(x => x === config.provider);
const foundModel = models.find(x => x.name === config.model);
config.provider = foundProvider || null;
config.model = foundModel?.name || null;
}

/** @param {any} e */
async function changeProvider(e) {
const provider = e.target.value;
Expand Down Expand Up @@ -67,7 +75,7 @@
<h5 class="mt-1 mb-3">LLM Config</h5>
<img src="images/brands/azure-openai-logo.avif" alt="" height="50" />
{#if agent.llm_config?.is_inherit}
<i class="bx bx-copy"></i> <span class="text-muted">Inherited</span>
<i class="bx bx-copy"></i> <span class="text-muted">Inherited</span>
{/if}
</div>

Expand All @@ -93,7 +101,7 @@
{#each models as option}
<option value={option.name} selected={option.name == config.model}>{option.name}</option>
{/each}
</Input>
</Input>
</div>
</div>

Expand Down
Loading