ragflow/docs/references
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
..
agent_component_reference Added a release notes (#4848) 2025-02-10 17:05:24 +08:00
_category_.json Added release notes for v0.13.0 (#3691) 2024-11-27 19:26:03 +08:00
faq.md Preparation for release. (#4739) 2025-02-06 15:15:13 +08:00
http_api_reference.md Update agent session API, to support uploading files while create a new session (#5039) 2025-02-18 09:45:40 +08:00
python_api_reference.md Fix typos (#4662) 2025-01-27 15:45:16 +08:00
supported_models.mdx Feat: add LLM provider PPIO (#5013) 2025-02-17 12:03:26 +08:00