Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
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,
|