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