fix: correct time-weighted retrieval toggle
This commit is contained in:
parent
6d33ff60f9
commit
81fa0b80e8
@ -27,7 +27,7 @@ const Tools = () => {
|
|||||||
const componentDataAssistantSetting = getConfigurationsData(
|
const componentDataAssistantSetting = getConfigurationsData(
|
||||||
(activeThread?.assistants[0]?.tools &&
|
(activeThread?.assistants[0]?.tools &&
|
||||||
activeThread?.assistants[0]?.tools[0]?.settings) ??
|
activeThread?.assistants[0]?.tools[0]?.settings) ??
|
||||||
{}
|
{}
|
||||||
)
|
)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -183,19 +183,6 @@ const Tools = () => {
|
|||||||
your specific use case."
|
your specific use case."
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<div className="ml-auto flex items-center justify-between">
|
|
||||||
<Switch
|
|
||||||
name="use-time-weighted-retriever"
|
|
||||||
className="mr-2"
|
|
||||||
checked={
|
|
||||||
activeThread?.assistants[0].tools[0]
|
|
||||||
.useTimeWeightedRetriever || false
|
|
||||||
}
|
|
||||||
onChange={(e) =>
|
|
||||||
onTimeWeightedRetrieverSwitchUpdate(e.target.checked)
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="w-full">
|
<div className="w-full">
|
||||||
@ -223,6 +210,20 @@ const Tools = () => {
|
|||||||
also considers when they were added to give
|
also considers when they were added to give
|
||||||
newer ones more importance."
|
newer ones more importance."
|
||||||
/>
|
/>
|
||||||
|
<div className="ml-auto flex items-center justify-between">
|
||||||
|
<Switch
|
||||||
|
name="use-time-weighted-retriever"
|
||||||
|
className="mr-2"
|
||||||
|
checked={
|
||||||
|
activeThread?.assistants[0].tools[0]
|
||||||
|
.useTimeWeightedRetriever || false
|
||||||
|
}
|
||||||
|
onChange={(e) =>
|
||||||
|
onTimeWeightedRetrieverSwitchUpdate(e.target.checked)
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<AssistantSetting
|
<AssistantSetting
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user