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:
buua436
2026-04-28 12:55:16 +08:00
committed by GitHub
parent 7a70a0fd85
commit 444e564329
3 changed files with 3 additions and 3 deletions

View File

@@ -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>

View File

@@ -78,7 +78,7 @@ const methods = {
},
thumbup: {
url: thumbup,
method: 'patch',
method: 'put',
},
chatsTts: {
url: chatsTts,

View File

@@ -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`,