From 026532f2c29837a8137f4c679440bd5d96d7fb55 Mon Sep 17 00:00:00 2001 From: arcticfly <41524992+arcticfly@users.noreply.github.com> Date: Tue, 1 Aug 2023 18:45:15 -0700 Subject: [PATCH] Model selection styling changes (#107) * Model selection styling changes * Fix prettier --- .../ChangeModelModal/ModelSearch.tsx | 4 ++-- .../ChangeModelModal/ModelStatsCard.tsx | 20 +++++++++++++------ src/modelProviders/replicate-llama2/index.ts | 2 +- src/server/utils/deriveNewContructFn.ts | 2 +- 4 files changed, 18 insertions(+), 10 deletions(-) diff --git a/src/components/ChangeModelModal/ModelSearch.tsx b/src/components/ChangeModelModal/ModelSearch.tsx index 8f03de4..4fa9ae6 100644 --- a/src/components/ChangeModelModal/ModelSearch.tsx +++ b/src/components/ChangeModelModal/ModelSearch.tsx @@ -22,8 +22,8 @@ export const ModelSearch = (props: { const [containerRef, containerDimensions] = useElementDimensions(); return ( - } w="full"> - Browse Models + } w="full" fontFamily="inconsolata"> + Browse Models styles={{ control: (provided) => ({ ...provided, width: containerDimensions?.width }) }} getOptionLabel={(data) => modelLabel(data.provider, data.model)} diff --git a/src/components/ChangeModelModal/ModelStatsCard.tsx b/src/components/ChangeModelModal/ModelStatsCard.tsx index 1ce42a3..4d831cd 100644 --- a/src/components/ChangeModelModal/ModelStatsCard.tsx +++ b/src/components/ChangeModelModal/ModelStatsCard.tsx @@ -23,16 +23,24 @@ export const ModelStatsCard = ({ {label} - + - - - {model.provider} /{" "} - + {model.name} - + + Provider: {model.provider} + +