ragflow/api/apps
flygithub 409310aae9
Update agent session API, to support uploading files while create a new session (#5039)
### What problem does this PR solve?
Update the agent session API "POST /api/v1/agents/{agent_id}/sessions",
to support uploading files while create a new session:
- currently, the API only supports requesting with a json body. If user
wants to upload a doc or image when create session, like what is already
supported on the web client, we need to update the API.
- if upload an image, ragflow will call image2text, and a user_id is
needed for the image2text model. So we need to send user_id in the API
request. As form-data is needed to upload files, not json body, seems we
need to put the user_id in the url as an optional parameter (currently
user_id is an optional in json body).


### Type of change

- [x] Documentation Update
- [x] Other (please describe):
2025-02-18 09:45:40 +08:00
..
sdk Update agent session API, to support uploading files while create a new session (#5039) 2025-02-18 09:45:40 +08:00
__init__.py Fix: Starting the source code on Windows, the 'HTTP API' returns 404 (#5042) 2025-02-17 19:33:49 +08:00
api_app.py Tagging (#4426) 2025-01-09 17:07:21 +08:00
canvas_app.py Update error message for agent name conflict (#4299) 2024-12-31 14:36:23 +08:00
chunk_app.py Light GraphRAG (#4585) 2025-01-22 19:43:14 +08:00
conversation_app.py Light GraphRAG (#4585) 2025-01-22 19:43:14 +08:00
dialog_app.py Code refactor. (#4291) 2024-12-30 18:38:51 +08:00
document_app.py Check meta data format in json map (#4461) 2025-01-13 17:34:50 +08:00
file2document_app.py Added static check at PR CI (#3921) 2024-12-08 21:23:51 +08:00
file_app.py Added static check at PR CI (#3921) 2024-12-08 21:23:51 +08:00
kb_app.py Ignore exceptions when no index ahead. (#5047) 2025-02-18 09:09:22 +08:00
llm_app.py Reformat error message. (#4829) 2025-02-10 16:47:53 +08:00
system_app.py Compatible with former API keys. (#4055) 2024-12-17 13:58:26 +08:00
tenant_app.py Update team invite message (#4085) 2024-12-18 14:20:09 +08:00
user_app.py Added static check at PR CI (#3921) 2024-12-08 21:23:51 +08:00