Update app.py
Browse files
app.py
CHANGED
|
@@ -127,14 +127,13 @@ def generate(
|
|
| 127 |
conversation = []
|
| 128 |
|
| 129 |
# Fetch query params
|
| 130 |
-
params = request.query_params
|
| 131 |
print('those are the query params')
|
| 132 |
print(params)
|
| 133 |
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
print("Query parameters:", dict(request.query_params))
|
| 138 |
|
| 139 |
# Construct the input prompt using the functions from the system_prompt_config module
|
| 140 |
input_prompt = construct_input_prompt(chat_history, message)
|
|
|
|
| 127 |
conversation = []
|
| 128 |
|
| 129 |
# Fetch query params
|
| 130 |
+
params = dict(request.query_params)
|
| 131 |
print('those are the query params')
|
| 132 |
print(params)
|
| 133 |
|
| 134 |
+
print("Request headers dictionary:", request.headers)
|
| 135 |
+
print("IP address:", request.client.host)
|
| 136 |
+
print("Query parameters:", dict(request.query_params))
|
|
|
|
| 137 |
|
| 138 |
# Construct the input prompt using the functions from the system_prompt_config module
|
| 139 |
input_prompt = construct_input_prompt(chat_history, message)
|