camparchimedes commited on
Commit
47d7912
ยท
verified ยท
1 Parent(s): 77d14f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -70,8 +70,9 @@ api_url_prompt = PromptTemplate(input_variables=['api_docs', 'question'],
70
  template=api_url_template)
71
 
72
  api_response_template = """
73
- IF and only IF {question} contains an alphanumeric identifier with regex pattern "^[A-Z]{6}\\d{6}$",
74
- with the API Documentation for Daysoff's official API: {api_docs} in mind,
 
75
  and given this API URL: {api_url} for querying, here is the
76
  response from Daysoff's API: {api_response}.
77
  Please provide only information that directly addresses the user's question,
 
70
  template=api_url_template)
71
 
72
  api_response_template = """
73
+ With the API Documentation for Daysoff's official API: {api_docs} in mind,
74
+ and IF user question: {question} contains an alphanumeric identifier consisting of
75
+ 6 capital letters followed by 6 digits (e.g., DAGHNS116478),
76
  and given this API URL: {api_url} for querying, here is the
77
  response from Daysoff's API: {api_response}.
78
  Please provide only information that directly addresses the user's question,