mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? add support for ollama Issue link:#221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -14,6 +14,7 @@ const {
|
||||
my_llm,
|
||||
set_api_key,
|
||||
set_tenant_info,
|
||||
add_llm,
|
||||
} = api;
|
||||
|
||||
const methods = {
|
||||
@ -61,6 +62,10 @@ const methods = {
|
||||
url: set_api_key,
|
||||
method: 'post',
|
||||
},
|
||||
add_llm: {
|
||||
url: add_llm,
|
||||
method: 'post',
|
||||
},
|
||||
} as const;
|
||||
|
||||
const userService = registerServer<keyof typeof methods>(methods, request);
|
||||
|
||||
Reference in New Issue
Block a user