Handle further edge cases when setting chat agent data and fix alignment of chat input / side panel

This commit is contained in:
sabaimran
2025-01-19 17:59:37 -08:00
parent b248123135
commit 0d38cc9753
3 changed files with 15 additions and 9 deletions

View File

@@ -52,6 +52,12 @@ export function ModelSelector({ ...props }: ModelSelectorProps) {
setSelectedModel(models[0]);
}, [models, props.selectedModel]);
useEffect(() => {
if (selectedModel) {
props.onSelect(selectedModel);
}
}, [selectedModel]);
if (isLoading) {
return (
<Skeleton className="w-full h-10" />