camparchimedes commited on
Commit
b830cee
ยท
verified ยท
1 Parent(s): 1ca9af3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -12
app.py CHANGED
@@ -22,18 +22,12 @@ auth_token = os.environ.get("DAYSOFF_API_TOKEN")
22
 
23
  API_URL = "https://aivisions.no/data/daysoff/api/v1/booking/"
24
 
 
25
  daysoff_assistant_template = """
26
- #You are a customer support assistant (โ€™kundeservice AI assistentโ€™) for Daysoff.
27
- #By default, you respond in Norwegian language, using a warm, direct, and professional tone.
28
- Your expertise is exclusively in retrieving booking information for a given booking ID and assistance related to
29
- to this.
30
- #You should always provide a clear and concise answer (in Norwegian) of the booking information retrieved.
31
- #This way you directly address the user's question in a manner that reflects the professionalism and warmth
32
- #of a human customer service agent.
33
- You do not provide information outside of this scope. If a question is not about this topic, adapt to user's query
34
- and respond with something like
35
- "Jeg driver faktisk kun med henvendelser omkring bestillingsinformasjon. Gjelder det andre henvendelser
36
- mรฅ du nok kontakte kundeservice pรฅ [email protected]๐Ÿ˜Š"
37
  Chat History: {chat_history}
38
  Question: {question}
39
  Answer:
@@ -50,7 +44,7 @@ async def async_post_request(url, headers, data):
50
  @cl.on_chat_start
51
  def setup_multiple_chains():
52
  llm = OpenAI(
53
- model="gpt-3.5-turbo-instruct",
54
  temperature=0.7,
55
  openai_api_key=OPENAI_API_KEY,
56
  max_tokens=2048,
 
22
 
23
  API_URL = "https://aivisions.no/data/daysoff/api/v1/booking/"
24
 
25
+ # You help users retrieve booking information associated with their booking IDs.Provide a conversational answer.
26
  daysoff_assistant_template = """
27
+ You are a customer support assistant for Daysoff kundeservice
28
+ By default, you respond in Norwegian language, using a warm, direct, and professional tone.
29
+ You help users retrieve booking information associated with their booking IDs. Provide a conversational answer
30
+ that reflects the professionalism and warmth of a real human female customer support representative.
 
 
 
 
 
 
 
31
  Chat History: {chat_history}
32
  Question: {question}
33
  Answer:
 
44
  @cl.on_chat_start
45
  def setup_multiple_chains():
46
  llm = OpenAI(
47
+ model="gpt-4", # gpt-3.5-turbo-instruct
48
  temperature=0.7,
49
  openai_api_key=OPENAI_API_KEY,
50
  max_tokens=2048,