False45 commited on
Commit
7916855
·
1 Parent(s): 6951cf0

chore: clean up obsolete legacy files from previous architecture

Browse files
Files changed (2) hide show
  1. test_stream.py +0 -19
  2. test_stream2.py +0 -19
test_stream.py DELETED
@@ -1,19 +0,0 @@
1
- import requests
2
- import json
3
-
4
- url = "http://localhost:8080/api/v1/chat/stream"
5
- headers = {"Content-Type": "application/json"}
6
- payload = {
7
- "query": "What is 2+2?",
8
- "session_id": "test-123"
9
- }
10
-
11
- print("Sending request to chat/stream...")
12
- response = requests.post(url, headers=headers, json=payload, stream=True)
13
- print(f"Status: {response.status_code}")
14
-
15
- for line in response.iter_lines():
16
- if line:
17
- decoded_line = line.decode('utf-8')
18
- print(decoded_line)
19
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
test_stream2.py DELETED
@@ -1,19 +0,0 @@
1
- import requests
2
- import json
3
-
4
- url = "http://localhost:8080/api/v1/chat/stream"
5
- headers = {"Content-Type": "application/json"}
6
- payload = {
7
- "query": "What is 2+2?",
8
- "session_id": "test-123"
9
- }
10
-
11
- print("Sending request to chat/stream...")
12
- response = requests.post(url, headers=headers, json=payload, stream=True)
13
- print(f"Status: {response.status_code}")
14
-
15
- for line in response.iter_lines():
16
- if line:
17
- decoded_line = line.decode('utf-8')
18
- print(decoded_line)
19
-