mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-14 17:08:31 +08:00
Fix: align chat recommendation and thumbup APIs (#14413)
### What problem does this PR solve? align chat recommendation and thumbup APIs ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -42,7 +42,7 @@ export default function ChunkResultBar({
|
||||
};
|
||||
const filterContent = (
|
||||
<div className="w-[200px]">
|
||||
<Radio.Group onChange={handleFilterChange} value={available}>
|
||||
<Radio.Group onChange={handleFilterChange} value={available ?? -1}>
|
||||
<div className="flex flex-col gap-2 p-4">
|
||||
<Radio value={-1}>{t('all')}</Radio>
|
||||
<Radio value={1}>{t('enabled')}</Radio>
|
||||
|
||||
@@ -78,7 +78,7 @@ const methods = {
|
||||
},
|
||||
thumbup: {
|
||||
url: thumbup,
|
||||
method: 'patch',
|
||||
method: 'put',
|
||||
},
|
||||
chatsTts: {
|
||||
url: chatsTts,
|
||||
|
||||
@@ -161,7 +161,7 @@ export default {
|
||||
searchCompletion: (searchId: string) =>
|
||||
`${restAPIv1}/searches/${searchId}/completion`,
|
||||
chatsMindmap: `${restAPIv1}/chat/mindmap`,
|
||||
chatsRelatedQuestions: `${restAPIv1}/chat/recommandation`,
|
||||
chatsRelatedQuestions: `${restAPIv1}/chat/recommendation`,
|
||||
|
||||
// next chat
|
||||
fetchExternalChatInfo: (id: string) => `${restAPIv1}/chatbots/${id}/info`,
|
||||
|
||||
Reference in New Issue
Block a user