mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-15 01:18:26 +08:00
19 lines
356 B
TypeScript
19 lines
356 B
TypeScript
|
|
import api from '@/utils/api';
|
||
|
|
import registerServer from '@/utils/register-server';
|
||
|
|
import request from '@/utils/request';
|
||
|
|
|
||
|
|
const {
|
||
|
|
llm_tools
|
||
|
|
} = api;
|
||
|
|
|
||
|
|
const methods = {
|
||
|
|
getLlmTools: {
|
||
|
|
url: llm_tools,
|
||
|
|
method: 'get',
|
||
|
|
},
|
||
|
|
} as const;
|
||
|
|
|
||
|
|
const pluginService = registerServer<keyof typeof methods>(methods, request);
|
||
|
|
|
||
|
|
export default pluginService;
|