Commit
·
3a7a107
1
Parent(s):
ebb7fd5
Update
Browse files- app-ngrok.py +2 -2
app-ngrok.py
CHANGED
|
@@ -102,8 +102,8 @@ def generate(input_message: str, db_info="", temperature=0.1, top_p=0.9, top_k=0
|
|
| 102 |
|
| 103 |
if log:
|
| 104 |
# Log the request to Firestore
|
| 105 |
-
|
| 106 |
-
log_to_firestore(input_message, db_info, temperature,
|
| 107 |
|
| 108 |
if format_sql:
|
| 109 |
return formatted_query
|
|
|
|
| 102 |
|
| 103 |
if log:
|
| 104 |
# Log the request to Firestore
|
| 105 |
+
output = format(response_text)
|
| 106 |
+
log_to_firestore(input_message, db_info, temperature, output if format_sql else response_text)
|
| 107 |
|
| 108 |
if format_sql:
|
| 109 |
return formatted_query
|