Merge remote-tracking branch 'origin/main'
Browse files- modules/chat_func.py +3 -0
modules/chat_func.py
CHANGED
@@ -213,6 +213,8 @@ def predict_all(
|
|
213 |
else:
|
214 |
all_token_counts.append(count_token(construct_user(inputs)))
|
215 |
try:
|
|
|
|
|
216 |
# 如果能传入index,则此处里获得初筛后的店铺和菜名
|
217 |
response = get_response(
|
218 |
openai_api_key,
|
@@ -224,6 +226,7 @@ def predict_all(
|
|
224 |
selected_model,
|
225 |
)
|
226 |
response = json.loads(response.text)
|
|
|
227 |
response = response["choices"][0]["message"]["content"]
|
228 |
|
229 |
logging.info(f"初次响应推荐店铺:{response}")
|
|
|
213 |
else:
|
214 |
all_token_counts.append(count_token(construct_user(inputs)))
|
215 |
try:
|
216 |
+
logging.info(f"system_prompt:{system_prompt}")
|
217 |
+
logging.info(f"history:{history}")
|
218 |
# 如果能传入index,则此处里获得初筛后的店铺和菜名
|
219 |
response = get_response(
|
220 |
openai_api_key,
|
|
|
226 |
selected_model,
|
227 |
)
|
228 |
response = json.loads(response.text)
|
229 |
+
logging.info(f"初次响应推荐店铺:{response}")
|
230 |
response = response["choices"][0]["message"]["content"]
|
231 |
|
232 |
logging.info(f"初次响应推荐店铺:{response}")
|