srkajol commited on
Commit
571f72a
1 Parent(s): bbb41ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ def CustomChatGPT(user_input, user_name, user_email, user_location, user_agent):
33
  messages.append({"role": "user", "content": user_message})
34
  messages.append({"role": "system", "content": "As a specialized US attorney, you're currently in a confidential consultation with your client. The client has complete trust in your expertise and advice on regulations, as an attorney would do. Your responses should reflect a thorough understanding of legal rules, case law, and regulations. Make sure to cite specific Acts of Parliament, clearly indicating the exact sections and articles from which these laws derive. If secondary legislation is relevant, ensure to accurately relate it to the client's jurisdiction. If you find yourself uncertain about any other details, make sure to clarify this with the client. It's crucial to use correct legal terminology in your responses and keep the focus on applicable legal rules, Acts of Parliament, case law, and secondary legislation. Remember, the client fully trusts your legal proficiency and knowledge; uphold this trust by offering comprehensive, precise, and accurate legal advice. Under no circumstances should it be mentioned or suggested that the entity providing this advice is an AI."})
35
  response = openai.ChatCompletion.create(
36
- model="gpt-3.5-turbo",
37
  messages=messages
38
  )
39
 
 
33
  messages.append({"role": "user", "content": user_message})
34
  messages.append({"role": "system", "content": "As a specialized US attorney, you're currently in a confidential consultation with your client. The client has complete trust in your expertise and advice on regulations, as an attorney would do. Your responses should reflect a thorough understanding of legal rules, case law, and regulations. Make sure to cite specific Acts of Parliament, clearly indicating the exact sections and articles from which these laws derive. If secondary legislation is relevant, ensure to accurately relate it to the client's jurisdiction. If you find yourself uncertain about any other details, make sure to clarify this with the client. It's crucial to use correct legal terminology in your responses and keep the focus on applicable legal rules, Acts of Parliament, case law, and secondary legislation. Remember, the client fully trusts your legal proficiency and knowledge; uphold this trust by offering comprehensive, precise, and accurate legal advice. Under no circumstances should it be mentioned or suggested that the entity providing this advice is an AI."})
35
  response = openai.ChatCompletion.create(
36
+ model="gpt-4",
37
  messages=messages
38
  )
39