mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-23 17:06:42 +08:00
fix: eliminate one-frame flash of title without form content in data source pages (#17214)
This commit is contained in:
@@ -4216,8 +4216,8 @@ curl --request POST \
|
||||
Optional model override when a specific chat model should be used for this request.
|
||||
- `"pass_all_history_messages"`: (*Body Parameter*), `boolean`
|
||||
When `chat_id` and `session_id` are provided, defaults to `false`, so the server uses stored session history and only the latest user message from the request. Set to `true` to replace/use the submitted full `messages` history, and overrides the stored session history.
|
||||
- `"legacy"`: (*Body Parameter*), `boolean`
|
||||
Defaults to `false`. Enables backward compatibility with RAGFlow v0.23.0 for streaming responses. When set to `true`:
|
||||
- `"legacy"`: (*Body Parameter*), `boolean`
|
||||
Defaults to `false`. Enables backward compatibility with RAGFlow v0.23.0 for streaming responses. When set to `true`:
|
||||
- Cumulative output: The `"answer"` field in each chunk returns the entire text generated so far, rather than just the new tokens (deltas).
|
||||
- No reasoning markers: The `start_to_think` and `end_to_think` signals are stripped from the stream.
|
||||
|
||||
@@ -4801,7 +4801,7 @@ curl --request POST \
|
||||
Variables specified in the **Begin** component.
|
||||
- `"user_id"`: (*Body parameter*), `string`
|
||||
The optional user-defined ID. Valid *only* when no `session_id` is provided.
|
||||
- `"chat_template_kwargs"`: (*Body parameter*), `object`
|
||||
- `"chat_template_kwargs"`: (*Body parameter*), `object`
|
||||
Optional passthrough parameters for the underlying LLM's chat template. Commonly used to toggle thinking/reasoning modes on supported models (e.g., `{"enable_thinking": false}`).
|
||||
|
||||
:::tip NOTE
|
||||
@@ -4926,19 +4926,19 @@ curl --request POST \
|
||||
|
||||
##### Request parameters
|
||||
|
||||
- `"agent_id"`: (*Body parameter*), `string`, *Required*
|
||||
- `"agent_id"`: (*Body parameter*), `string`, *Required*
|
||||
The ID of the associated agent.
|
||||
- `"messages"`: (*Body parameter*), `list[object]`, *Required*
|
||||
- `"messages"`: (*Body parameter*), `list[object]`, *Required*
|
||||
OpenAI-style chat messages.
|
||||
- `"openai-compatible"`: (*Body parameter*), `boolean`, *Required*
|
||||
- `"openai-compatible"`: (*Body parameter*), `boolean`, *Required*
|
||||
Must be `true` to enable OpenAI-compatible responses.
|
||||
- `"stream"`: (*Body parameter*), `boolean`
|
||||
- `"stream"`: (*Body parameter*), `boolean`
|
||||
Whether to return streaming chunks.
|
||||
- `"session_id"`: (*Body parameter*), `string`
|
||||
- `"session_id"`: (*Body parameter*), `string`
|
||||
Optional existing session ID.
|
||||
- `"model"`: (*Body parameter*), `string`
|
||||
- `"model"`: (*Body parameter*), `string`
|
||||
Optional compatibility field. The server still routes by `agent_id`.
|
||||
- `"chat_template_kwargs"`: (*Body parameter*), `object`
|
||||
- `"chat_template_kwargs"`: (*Body parameter*), `object`
|
||||
Optional passthrough parameters for the underlying LLM's chat template. Commonly used to toggle thinking/reasoning modes on supported models (e.g., `{"enable_thinking": false}`).
|
||||
|
||||
##### Response
|
||||
@@ -7709,7 +7709,7 @@ or
|
||||
##### Request example
|
||||
|
||||
```bash
|
||||
curl --request POST \
|
||||
curl --request POST \
|
||||
--url http://{address}/api/v1/folders/{folder_id}/commits \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header 'Authorization: Bearer <YOUR_API_KEY>' \
|
||||
@@ -7721,9 +7721,9 @@ This endpoint also supports:
|
||||
]
|
||||
}'
|
||||
```
|
||||
|
||||
|
||||
##### Request parameters
|
||||
|
||||
|
||||
- `"message"`: (*Body parameter*), `string`, *Required*
|
||||
The commit message describing the changes.
|
||||
- `"files"`: (*Body parameter*), `list[object]`, *Required*
|
||||
@@ -7744,9 +7744,9 @@ curl --request POST \
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"code": 0,
|
||||
"data": {
|
||||
"id": "commit_uuid",
|
||||
"id": "commit_uuid",
|
||||
"folder_id": "folder_uuid",
|
||||
"parent_id": null,
|
||||
"message": "update config files",
|
||||
@@ -7797,7 +7797,7 @@ Failure:
|
||||
##### Request example
|
||||
|
||||
```bash
|
||||
curl --request GET \
|
||||
curl --request GET \
|
||||
--url 'http://{address}/api/v1/folders/{folder_id}/commits?page=1&page_size=15' \
|
||||
--header 'Authorization: Bearer <YOUR_API_KEY>'
|
||||
```
|
||||
@@ -7824,13 +7824,13 @@ curl --request GET \
|
||||
"total": 2,
|
||||
"page": 1,
|
||||
"page_size": 15,
|
||||
"commits": [
|
||||
"commits": [
|
||||
{
|
||||
"id": "commit_uuid",
|
||||
"id": "commit_uuid",
|
||||
"folder_id": "folder_uuid",
|
||||
"parent_id": null,
|
||||
"parent_id": null,
|
||||
"message": "first commit",
|
||||
"author_id": "user_uuid",
|
||||
"author_id": "user_uuid",
|
||||
"file_count": 3,
|
||||
"create_time": 1718200000000
|
||||
}
|
||||
@@ -7865,7 +7865,7 @@ Success:
|
||||
--header 'Authorization: Bearer <YOUR_API_KEY>'
|
||||
```
|
||||
|
||||
##### Request parameters
|
||||
##### Request parameters
|
||||
|
||||
- `"folder_id"`: (*Path parameter*), `string`, *Required*
|
||||
The folder ID.
|
||||
@@ -7887,9 +7887,9 @@ curl --request GET \
|
||||
"author_id": "user_uuid",
|
||||
"file_count": 2,
|
||||
"create_time": 1718200000000,
|
||||
"files": [
|
||||
"files": [
|
||||
{
|
||||
"file_id": "file_uuid",
|
||||
"file_id": "file_uuid",
|
||||
"operation": "add",
|
||||
"old_hash": null,
|
||||
"new_hash": "abcd1234",
|
||||
@@ -7936,7 +7936,7 @@ Failure:
|
||||
--header 'Authorization: Bearer <YOUR_API_KEY>'
|
||||
```
|
||||
|
||||
#### Response
|
||||
#### Response
|
||||
|
||||
Success:
|
||||
|
||||
@@ -7985,7 +7985,7 @@ Success:
|
||||
##### Request example
|
||||
|
||||
```bash
|
||||
curl --request GET \
|
||||
curl --request GET \
|
||||
--url 'http://{address}/api/v1/folders/{folder_id}/commits/diff?from=from_commit_id&to=to_commit_id' \
|
||||
--header 'Authorization: Bearer <YOUR_API_KEY>'
|
||||
```
|
||||
@@ -7997,9 +7997,9 @@ Also available at:
|
||||
- `"to"`: (*Query parameter*), `string`, *Required*
|
||||
The target commit ID.
|
||||
|
||||
#### Response
|
||||
#### Response
|
||||
|
||||
Success:
|
||||
Success:
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -8012,9 +8012,9 @@ curl --request GET \
|
||||
"old_hash": "abc123",
|
||||
"new_hash": "def456",
|
||||
"old_location": ".objects/abc123",
|
||||
"new_location": ".objects/def456"
|
||||
"new_location": ".objects/def456"
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
@@ -8053,7 +8053,7 @@ Failure:
|
||||
--header 'Authorization: Bearer <YOUR_API_KEY>'
|
||||
```
|
||||
|
||||
#### Response
|
||||
#### Response
|
||||
|
||||
Success:
|
||||
|
||||
@@ -8106,7 +8106,7 @@ Success:
|
||||
--header 'Authorization: Bearer <YOUR_API_KEY>'
|
||||
```
|
||||
|
||||
#### Response
|
||||
#### Response
|
||||
|
||||
Success:
|
||||
|
||||
@@ -8174,7 +8174,7 @@ Success:
|
||||
--header 'Authorization: Bearer <YOUR_API_KEY>'
|
||||
```
|
||||
|
||||
#### Response
|
||||
#### Response
|
||||
|
||||
Success:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user