fix: content setting right panel default to collapse (#2026)
This commit is contained in:
parent
3ab23d571f
commit
ab77622e73
@ -31,7 +31,7 @@ export default function CardSidebar({
|
||||
rightAction,
|
||||
hideMoreVerticalAction,
|
||||
}: Props) {
|
||||
const [show, setShow] = useState(true)
|
||||
const [show, setShow] = useState(false)
|
||||
const [more, setMore] = useState(false)
|
||||
const [menu, setMenu] = useState<HTMLDivElement | null>(null)
|
||||
const [toggle, setToggle] = useState<HTMLDivElement | null>(null)
|
||||
|
||||
@ -156,7 +156,6 @@ const Sidebar: React.FC = () => {
|
||||
<div>
|
||||
{activeThread?.assistants[0]?.tools &&
|
||||
componentDataAssistantSetting.length > 0 && (
|
||||
<div className="mt-2">
|
||||
<CardSidebar title="Tools">
|
||||
<div className="px-2 pt-4">
|
||||
<div className="mb-2">
|
||||
@ -179,11 +178,10 @@ const Sidebar: React.FC = () => {
|
||||
className="max-w-[240px]"
|
||||
>
|
||||
<span>
|
||||
Retrieval helps the assistant use
|
||||
information from files you send to it. Once
|
||||
you share a file, the assistant
|
||||
automatically fetches the relevant content
|
||||
based on your request.
|
||||
Retrieval helps the assistant use information
|
||||
from files you send to it. Once you share a
|
||||
file, the assistant automatically fetches the
|
||||
relevant content based on your request.
|
||||
</span>
|
||||
<TooltipArrow />
|
||||
</TooltipContent>
|
||||
@ -210,8 +208,7 @@ const Sidebar: React.FC = () => {
|
||||
type: 'retrieval',
|
||||
enabled: e,
|
||||
settings:
|
||||
(activeThread.assistants[0]
|
||||
.tools &&
|
||||
(activeThread.assistants[0].tools &&
|
||||
activeThread.assistants[0]
|
||||
.tools[0]?.settings) ??
|
||||
{},
|
||||
@ -248,14 +245,14 @@ const Sidebar: React.FC = () => {
|
||||
className="max-w-[240px]"
|
||||
>
|
||||
<span>
|
||||
Embedding model is crucial for
|
||||
understanding and processing the input
|
||||
text effectively by converting text to
|
||||
numerical representations. Align the model
|
||||
choice with your task, evaluate its
|
||||
performance, and consider factors like
|
||||
resource availability. Experiment to find
|
||||
the best fit for your specific use case.
|
||||
Embedding model is crucial for understanding
|
||||
and processing the input text effectively by
|
||||
converting text to numerical
|
||||
representations. Align the model choice with
|
||||
your task, evaluate its performance, and
|
||||
consider factors like resource availability.
|
||||
Experiment to find the best fit for your
|
||||
specific use case.
|
||||
</span>
|
||||
<TooltipArrow />
|
||||
</TooltipContent>
|
||||
@ -312,7 +309,6 @@ const Sidebar: React.FC = () => {
|
||||
)}
|
||||
</div>
|
||||
</CardSidebar>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user