app.py
CHANGED
@@ -566,7 +566,8 @@ def chatbot_response(message, history, window_size, threshold, score_threshold,u
|
|
566 |
initial_response=raw_initial_response.choices[0].message.content
|
567 |
|
568 |
fusion_message="f原回复{initial_response} <sep>品牌\n{brand}<sep>广告描述\n{ad_summary}"
|
569 |
-
|
|
|
570 |
fusion_messages.append({"role":"user","content":fusion_message})
|
571 |
response = openai_client.chat.completions.create(
|
572 |
model="gpt-4o",
|
|
|
566 |
initial_response=raw_initial_response.choices[0].message.content
|
567 |
|
568 |
fusion_message="f原回复{initial_response} <sep>品牌\n{brand}<sep>广告描述\n{ad_summary}"
|
569 |
+
print(f"fusion_message: {fusion_message} ")
|
570 |
+
fusion_messages=[{"role":"system","content":"请在原回复中巧妙地插入带有广告品牌的广告描述,使得插入后的回复尽可能连贯,插入位置和连接方式请根据上下文决定,注意:请只输出插入广告后的回复,不要输出任何其他的信息"}]
|
571 |
fusion_messages.append({"role":"user","content":fusion_message})
|
572 |
response = openai_client.chat.completions.create(
|
573 |
model="gpt-4o",
|