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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ragflow-cli
3
- Version: 0.25.1
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.1
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.1
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.1"
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.1
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.1
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
- "conversation_id": session_id,
1218
+ "session_id": session_id,
1219
1219
  "messages": [{"role": "user", "content": message}]
1220
1220
  }
1221
1221
 
1222
- response = self.http_client.request("POST", "/conversation/completion", json_body=payload,
1223
- use_api_base=False, auth_kind="web", stream=True)
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