ragflow/api/apps
Wanderson Pinto dos Santos 3654ae61c1
feat: add allowed factories variable to allow admins to restrict llms users can add (#11003)
### What problem does this PR solve?

Currently, if we want to restrict the allowed factories users can use we
need to delete from the database table manually. The proposal of this PR
is to include a variable to that, if set, will restrict the LLM
factories the users can see and add. This allow us to not touch the
llm_factories.json or the database if the LLM factory is already
inserted.

Obs.: All the lint changes were from the pre-commit hook which I did not
change.

### Type of change

- [X] New Feature (non-breaking change which adds functionality)
2025-11-05 10:47:50 +08:00
..
auth Fix: use jwks_uri from OIDC metadata for JWKS client (#8136) 2025-06-10 10:16:58 +08:00
sdk Move some constants to common (#11004) 2025-11-05 08:01:39 +08:00
__init__.py Move some constants to common (#11004) 2025-11-05 08:01:39 +08:00
api_app.py Move some constants to common (#11004) 2025-11-05 08:01:39 +08:00
canvas_app.py Move some enumerate type to constants.py (#10998) 2025-11-04 19:25:25 +08:00
chunk_app.py Move some constants to common (#11004) 2025-11-05 08:01:39 +08:00
connector_app.py Move some constants to common (#11004) 2025-11-05 08:01:39 +08:00
conversation_app.py Move some constants to common (#11004) 2025-11-05 08:01:39 +08:00
dialog_app.py Move some constants to common (#11004) 2025-11-05 08:01:39 +08:00
document_app.py Move some constants to common (#11004) 2025-11-05 08:01:39 +08:00
file2document_app.py Move some enumerate type to constants.py (#10998) 2025-11-04 19:25:25 +08:00
file_app.py Move some constants to common (#11004) 2025-11-05 08:01:39 +08:00
kb_app.py Move some constants to common (#11004) 2025-11-05 08:01:39 +08:00
langfuse_app.py Feat: add project_id and project_name to Langfuse API (#6481) 2025-03-25 10:36:34 +08:00
llm_app.py feat: add allowed factories variable to allow admins to restrict llms users can add (#11003) 2025-11-05 10:47:50 +08:00
mcp_server_app.py Move some constants to common (#11004) 2025-11-05 08:01:39 +08:00
plugin_app.py Fix typos: retrievaler -> retriever (#10372) 2025-10-10 09:17:36 +08:00
search_app.py Move some constants to common (#11004) 2025-11-05 08:01:39 +08:00
system_app.py Fix: predictable token generation (#10868) 2025-10-30 09:31:36 +08:00
tenant_app.py Move some constants to common (#11004) 2025-11-05 08:01:39 +08:00
user_app.py Move some enumerate type to constants.py (#10998) 2025-11-04 19:25:25 +08:00