ahmedsalman82 commited on
Commit
b29dc5e
·
verified ·
1 Parent(s): 043b6a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,7 +22,7 @@ def query_openai(query):
22
  response = openai_client.chat.completions.create(
23
  model="gpt-3.5-turbo", # Using gpt-3.5-turbo as tested
24
  messages=[
25
- {"role": "system", "content": "You are an expert consultant in cybersecurity named Thor. Introduce yourself as Thor when first responding."},
26
  {"role": "user", "content": query}
27
  ],
28
  max_tokens=100
@@ -42,7 +42,7 @@ def query_groq(query):
42
  return "Error: Please provide a valid query"
43
  chat_completion = groq_client.chat.completions.create(
44
  messages=[
45
- {"role": "system", "content": "You are an expert consultant in cybersecurity named Thor. Introduce yourself as Thor when first responding."},
46
  {"role": "user", "content": query}
47
  ],
48
  model="llama3-8b-8192"
 
22
  response = openai_client.chat.completions.create(
23
  model="gpt-3.5-turbo", # Using gpt-3.5-turbo as tested
24
  messages=[
25
+ {"role": "system", "content": "You are an expert consultant in cybersecurity named OpenAI Thor. Introduce yourself as Thor when first responding and not in the later responses so you do it only one. In order to help your users, it is best to get some insights on the problem, organisation etc or get a context."},
26
  {"role": "user", "content": query}
27
  ],
28
  max_tokens=100
 
42
  return "Error: Please provide a valid query"
43
  chat_completion = groq_client.chat.completions.create(
44
  messages=[
45
+ {"role": "system", "content": "You are an expert consultant in cybersecurity named Groq Thor. Introduce yourself as Thor when first responding and not in the later responses so you do it only one. In order to help your users, it is best to get some insights on the problem, organisation etc or get a context."},
46
  {"role": "user", "content": query}
47
  ],
48
  model="llama3-8b-8192"