diff --git a/app/components/ui-lib.module.scss b/app/components/ui-lib.module.scss index d114882eb..12cc9f09a 100644 --- a/app/components/ui-lib.module.scss +++ b/app/components/ui-lib.module.scss @@ -326,3 +326,10 @@ align-items: center; justify-content: center; } + +.modal-mask-container { + //min-width: 80vw; + .ant-card .ant-card-body { + padding: 12px; + } +} diff --git a/app/components/ui-lib.tsx b/app/components/ui-lib.tsx index c9e43b036..1810ef0bc 100644 --- a/app/components/ui-lib.tsx +++ b/app/components/ui-lib.tsx @@ -15,7 +15,8 @@ import Locale from "../locales"; import { createRoot } from "react-dom/client"; import React, { HTMLProps, useEffect, useState } from "react"; import { IconButton } from "./button"; -import { Card as AntCard, List as AntList, Row, Col, Grid } from "antd"; +import { Card as AntCard, List as AntList, Row, Col, Grid, Avatar } from "antd"; +const { Meta } = AntCard; export function Popover(props: { children: JSX.Element; @@ -501,20 +502,79 @@ export function ModalSelector(props: { console.log("-----", props); return ( -
- props.onClose?.()}> - - - - - Card - - - - - Card - - +
+ props.onClose?.()}> + + + {props.items.map((item, i) => { + const selected = props.defaultSelectedValue === item.value; + return ( + + + { + props.onSelection?.([item.value]); + props.onClose?.(); + }} + > + + {selected ? ( +
+ ) : ( + <> + )} +
+
+ + ); + })} + + {/**/} + {/* */} + {/* Card*/} + {/* */} + {/**/} + {/**/} + {/* */} + {/* Card*/} + {/* */} + {/**/} + {/**/} + {/* */} + {/* Card*/} + {/* */} + {/**/}
diff --git a/app/constant.ts b/app/constant.ts index 1a4e244dd..77d83c378 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -134,7 +134,6 @@ export const KnowledgeCutOffDate: Record = { "gpt-4-turbo": "2023-12", "gpt-4-turbo-2024-04-09": "2023-12", "gpt-4-turbo-preview": "2023-12", - "gpt-4o": "2023-10", "gpt-4o-2024-05-13": "2023-10", "gpt-4-vision-preview": "2023-04", // After improvements,