mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-02 08:45:42 +08:00
### What problem does this PR solve? Before change, update_document in api/apps/restful_apis/document_api.py is using "PUT". After change, it will use "PATCH" which is more suitable. ### Type of change - [x] Refactoring
17 lines
352 B
TypeScript
17 lines
352 B
TypeScript
import api from '@/utils/api';
|
|
import registerServer from '@/utils/register-server';
|
|
import request from '@/utils/request';
|
|
|
|
const { llmTools } = api;
|
|
|
|
const methods = {
|
|
getLlmTools: {
|
|
url: llmTools,
|
|
method: 'get',
|
|
},
|
|
} as const;
|
|
|
|
const pluginService = registerServer<keyof typeof methods>(methods, request);
|
|
|
|
export default pluginService;
|