ragflow-cli 0.25.1__tar.gz → 0.25.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ragflow_cli-0.25.1 → ragflow_cli-0.25.2}/PKG-INFO +2 -2
- {ragflow_cli-0.25.1 → ragflow_cli-0.25.2}/README.md +1 -1
- {ragflow_cli-0.25.1 → ragflow_cli-0.25.2}/pyproject.toml +1 -1
- {ragflow_cli-0.25.1 → ragflow_cli-0.25.2}/ragflow_cli.egg-info/PKG-INFO +2 -2
- {ragflow_cli-0.25.1 → ragflow_cli-0.25.2}/ragflow_client.py +3 -3
- {ragflow_cli-0.25.1 → ragflow_cli-0.25.2}/http_client.py +0 -0
- {ragflow_cli-0.25.1 → ragflow_cli-0.25.2}/parser.py +0 -0
- {ragflow_cli-0.25.1 → ragflow_cli-0.25.2}/ragflow_cli.egg-info/SOURCES.txt +0 -0
- {ragflow_cli-0.25.1 → ragflow_cli-0.25.2}/ragflow_cli.egg-info/dependency_links.txt +0 -0
- {ragflow_cli-0.25.1 → ragflow_cli-0.25.2}/ragflow_cli.egg-info/entry_points.txt +0 -0
- {ragflow_cli-0.25.1 → ragflow_cli-0.25.2}/ragflow_cli.egg-info/requires.txt +0 -0
- {ragflow_cli-0.25.1 → ragflow_cli-0.25.2}/ragflow_cli.egg-info/top_level.txt +0 -0
- {ragflow_cli-0.25.1 → ragflow_cli-0.25.2}/ragflow_cli.py +0 -0
- {ragflow_cli-0.25.1 → ragflow_cli-0.25.2}/setup.cfg +0 -0
- {ragflow_cli-0.25.1 → ragflow_cli-0.25.2}/user.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ragflow-cli
|
|
3
|
-
Version: 0.25.
|
|
3
|
+
Version: 0.25.2
|
|
4
4
|
Summary: Admin Service's client of [RAGFlow](https://github.com/infiniflow/ragflow). The Admin Service provides user management and system monitoring.
|
|
5
5
|
Author-email: Lynn <lynn_inf@hotmail.com>
|
|
6
6
|
License: Apache License, Version 2.0
|
|
@@ -62,7 +62,7 @@ It consists of a server-side Service and a command-line client (CLI), both imple
|
|
|
62
62
|
1. Ensure the Admin Service is running.
|
|
63
63
|
2. Install ragflow-cli.
|
|
64
64
|
```bash
|
|
65
|
-
pip install ragflow-cli==0.25.
|
|
65
|
+
pip install ragflow-cli==0.25.2
|
|
66
66
|
```
|
|
67
67
|
3. Launch the CLI client:
|
|
68
68
|
```bash
|
|
@@ -48,7 +48,7 @@ It consists of a server-side Service and a command-line client (CLI), both imple
|
|
|
48
48
|
1. Ensure the Admin Service is running.
|
|
49
49
|
2. Install ragflow-cli.
|
|
50
50
|
```bash
|
|
51
|
-
pip install ragflow-cli==0.25.
|
|
51
|
+
pip install ragflow-cli==0.25.2
|
|
52
52
|
```
|
|
53
53
|
3. Launch the CLI client:
|
|
54
54
|
```bash
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "ragflow-cli"
|
|
3
|
-
version = "0.25.
|
|
3
|
+
version = "0.25.2"
|
|
4
4
|
description = "Admin Service's client of [RAGFlow](https://github.com/infiniflow/ragflow). The Admin Service provides user management and system monitoring. "
|
|
5
5
|
authors = [{ name = "Lynn", email = "lynn_inf@hotmail.com" }]
|
|
6
6
|
license = { text = "Apache License, Version 2.0" }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ragflow-cli
|
|
3
|
-
Version: 0.25.
|
|
3
|
+
Version: 0.25.2
|
|
4
4
|
Summary: Admin Service's client of [RAGFlow](https://github.com/infiniflow/ragflow). The Admin Service provides user management and system monitoring.
|
|
5
5
|
Author-email: Lynn <lynn_inf@hotmail.com>
|
|
6
6
|
License: Apache License, Version 2.0
|
|
@@ -62,7 +62,7 @@ It consists of a server-side Service and a command-line client (CLI), both imple
|
|
|
62
62
|
1. Ensure the Admin Service is running.
|
|
63
63
|
2. Install ragflow-cli.
|
|
64
64
|
```bash
|
|
65
|
-
pip install ragflow-cli==0.25.
|
|
65
|
+
pip install ragflow-cli==0.25.2
|
|
66
66
|
```
|
|
67
67
|
3. Launch the CLI client:
|
|
68
68
|
```bash
|
|
@@ -1215,12 +1215,12 @@ class RAGFlowClient:
|
|
|
1215
1215
|
# Prepare payload for completion API
|
|
1216
1216
|
# Note: stream parameter is not sent, server defaults to stream=True
|
|
1217
1217
|
payload = {
|
|
1218
|
-
"
|
|
1218
|
+
"session_id": session_id,
|
|
1219
1219
|
"messages": [{"role": "user", "content": message}]
|
|
1220
1220
|
}
|
|
1221
1221
|
|
|
1222
|
-
response = self.http_client.request("POST", "/
|
|
1223
|
-
use_api_base=
|
|
1222
|
+
response = self.http_client.request("POST", "/chat/completions", json_body=payload,
|
|
1223
|
+
use_api_base=True, auth_kind="web", stream=True)
|
|
1224
1224
|
|
|
1225
1225
|
if response.status_code != 200:
|
|
1226
1226
|
print(f"Fail to chat on session, status code: {response.status_code}")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|