|
@@ -2,7 +2,7 @@ import { useCallback } from 'react';
|
|
|
|
|
|
|
|
import { useTranslation } from 'react-i18next';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
|
|
|
|
-import { apiv3Put } from '~/client/util/apiv3-client';
|
|
|
|
|
|
|
+import { apiv3Post } from '~/client/util/apiv3-client';
|
|
|
import { toastSuccess, toastError } from '~/client/util/toastr';
|
|
import { toastSuccess, toastError } from '~/client/util/toastr';
|
|
|
|
|
|
|
|
|
|
|
|
@@ -11,7 +11,7 @@ export const AiIntegration = (): JSX.Element => {
|
|
|
|
|
|
|
|
const clickRebuildVectorStoreButtonHandler = useCallback(async() => {
|
|
const clickRebuildVectorStoreButtonHandler = useCallback(async() => {
|
|
|
try {
|
|
try {
|
|
|
- await apiv3Put('/openai/rebuild-vector-store');
|
|
|
|
|
|
|
+ await apiv3Post('/openai/rebuild-vector-store');
|
|
|
toastSuccess(t('ai_integration.rebuild_vector_store_succeeded'));
|
|
toastSuccess(t('ai_integration.rebuild_vector_store_succeeded'));
|
|
|
}
|
|
}
|
|
|
catch {
|
|
catch {
|