chore: format
This commit is contained in:
@@ -401,7 +401,9 @@ export const getOrchestratorLifecycle = async (
|
||||
});
|
||||
if (!res.ok) {
|
||||
const body = await res.json();
|
||||
throw Object.assign(new Error(body.detail || 'Failed to read lifecycle'), { status: res.status });
|
||||
throw Object.assign(new Error(body.detail || 'Failed to read lifecycle'), {
|
||||
status: res.status
|
||||
});
|
||||
}
|
||||
return res.json();
|
||||
};
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
{/if}
|
||||
|
||||
<div
|
||||
class=" mt-2 mb-4 text-3xl text-gray-800 dark:text-gray-100 text-left flex items-center gap-4 "
|
||||
class=" mt-2 mb-4 text-3xl text-gray-800 dark:text-gray-100 text-left flex items-center gap-4"
|
||||
>
|
||||
<div>
|
||||
<div class=" capitalize line-clamp-1" in:fade={{ duration: 200 }}>
|
||||
@@ -132,7 +132,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class=" w-full " in:fade={{ duration: 200, delay: 300 }}>
|
||||
<div class=" w-full" in:fade={{ duration: 200, delay: 300 }}>
|
||||
<Suggestions
|
||||
className="grid grid-cols-2"
|
||||
suggestionPrompts={atSelectedModel?.info?.meta?.suggestion_prompts ??
|
||||
|
||||
@@ -477,7 +477,9 @@
|
||||
$: contextPercent = contextHasThreshold
|
||||
? Math.max(0, Math.round(statusContextUsage?.percent ?? 0))
|
||||
: null;
|
||||
$: contextTokens = formatTokenCount(statusContextUsage?.estimated_tokens || statusContextUsage?.tokens || 0);
|
||||
$: contextTokens = formatTokenCount(
|
||||
statusContextUsage?.estimated_tokens || statusContextUsage?.tokens || 0
|
||||
);
|
||||
$: contextValue = statusContextUsage
|
||||
? contextHasThreshold
|
||||
? `${contextPercent}% ${contextTokens}/${formatTokenCount(statusContextUsage.threshold)}`
|
||||
|
||||
@@ -154,8 +154,12 @@
|
||||
}
|
||||
|
||||
const availableHeight = Math.max(0, openAbove ? spaceAbove : spaceBelow);
|
||||
const constrainedHeight = contentHeight ? Math.min(contentHeight, availableHeight) : contentHeight;
|
||||
const preferredTop = openAbove ? rect.top - constrainedHeight - sideOffset : rect.bottom + sideOffset;
|
||||
const constrainedHeight = contentHeight
|
||||
? Math.min(contentHeight, availableHeight)
|
||||
: contentHeight;
|
||||
const preferredTop = openAbove
|
||||
? rect.top - constrainedHeight - sideOffset
|
||||
: rect.bottom + sideOffset;
|
||||
const contentWidth = contentEl.offsetWidth || 0;
|
||||
const preferredLeft = align === 'end' && contentWidth ? rect.right - contentWidth : rect.left;
|
||||
const maxLeft = contentWidth ? viewportRight - contentWidth - pad : preferredLeft;
|
||||
|
||||
@@ -236,7 +236,7 @@
|
||||
|
||||
{#if loaded}
|
||||
<div
|
||||
class="fixed bg-transparent min-h-screen w-full flex justify-center z-50 text-black dark:text-white"
|
||||
class="fixed bg-transparent min-h-screen w-full flex justify-center z-50 text-black dark:text-white"
|
||||
id="auth-container"
|
||||
>
|
||||
<div class="w-full px-10 min-h-screen flex flex-col text-center">
|
||||
|
||||
Reference in New Issue
Block a user