ahensd commited on
Commit
ec650ca
·
verified ·
1 Parent(s): ed46d1b

Update client.py

Browse files
Files changed (1) hide show
  1. client.py +4 -7
client.py CHANGED
@@ -32,7 +32,7 @@ def get_completion(ticket:model.Ticket):
32
  max_tokens=1000,
33
  n=1,
34
  stop=None,
35
- temperature=1
36
  )
37
  result = response.choices[0].text.strip()
38
  print(result)
@@ -45,17 +45,14 @@ def create_prompt(subject:str, desc:str):
45
  You are an AI Customer Service Agent for booking.com. Please use the below instructions to answer.
46
  What is the intent of this request ```
47
  Subject: {{subject}} Description: {{desc}}``` in 1 single word? Use the one of the below options for intent:
48
- Information Request
49
- Complaint
50
- Service Request
51
  Cancellation Request
52
  Refund Request
53
 
54
  In the context of the previous request, Suggest a resolution response to address the customer query from the following actions list:
55
- Issue Refund
56
  Cancellation
57
- Information
58
- Modify booking
59
 
60
  Finally, Summarize the message: ```
61
  Subject: {{subject}}Description:{{desc}}``` and generate a mail content for the customer about the whole conversation.
 
32
  max_tokens=1000,
33
  n=1,
34
  stop=None,
35
+ temperature=0.8
36
  )
37
  result = response.choices[0].text.strip()
38
  print(result)
 
45
  You are an AI Customer Service Agent for booking.com. Please use the below instructions to answer.
46
  What is the intent of this request ```
47
  Subject: {{subject}} Description: {{desc}}``` in 1 single word? Use the one of the below options for intent:
48
+
 
 
49
  Cancellation Request
50
  Refund Request
51
 
52
  In the context of the previous request, Suggest a resolution response to address the customer query from the following actions list:
53
+
54
  Cancellation
55
+ Issue Refund
 
56
 
57
  Finally, Summarize the message: ```
58
  Subject: {{subject}}Description:{{desc}}``` and generate a mail content for the customer about the whole conversation.