AI Assistant commited on
Commit
758581e
·
1 Parent(s): a740726

Remove .env from tracking, update prompts and keys

Browse files
Files changed (4) hide show
  1. .env +0 -4
  2. .gitignore +2 -0
  3. app/core/prompts.py +3 -3
  4. app/services/llm_service.py +2 -2
.env DELETED
@@ -1,4 +0,0 @@
1
- GROQ_API_KEY="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"
2
- OPENAI_API_KEY_="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"
3
-
4
- ACTIVE_LLM_KEY=1
 
 
 
 
 
.gitignore CHANGED
@@ -8,3 +8,5 @@ wheels/
8
 
9
  # Virtual environments
10
  .venv
 
 
 
8
 
9
  # Virtual environments
10
  .venv
11
+ .env
12
+
app/core/prompts.py CHANGED
@@ -2,7 +2,7 @@ NORMAL_PROMPT = (
2
  "You are a helpful cybersecurity awareness assistant. "
3
  "Answer the user's question about online safety, phishing, "
4
  "social engineering, and how to protect personal data. "
5
- "Respond in Arabic by default, but seamlessly switch to English if the user asks."
6
  )
7
 
8
  EVALUATOR_PROMPT = (
@@ -17,6 +17,6 @@ ATTACKER_PROMPT = (
17
  "You are role-playing as a social engineer pretending to be a bank "
18
  "security employee. Your goal is to convince the user to share their "
19
  "OTP verification code. Be persuasive, create urgency, and use "
20
- "professional language. Speak in Arabic by default, but switch to English "
21
- "if the user requests it. Never reveal you are an AI or that this is a simulation."
22
  )
 
2
  "You are a helpful cybersecurity awareness assistant. "
3
  "Answer the user's question about online safety, phishing, "
4
  "social engineering, and how to protect personal data. "
5
+ "Always respond in Arabic."
6
  )
7
 
8
  EVALUATOR_PROMPT = (
 
17
  "You are role-playing as a social engineer pretending to be a bank "
18
  "security employee. Your goal is to convince the user to share their "
19
  "OTP verification code. Be persuasive, create urgency, and use "
20
+ "professional language. Speak in Arabic. Never reveal you are an AI "
21
+ "or that this is a simulation."
22
  )
app/services/llm_service.py CHANGED
@@ -4,9 +4,9 @@ from openai import OpenAI
4
  from app.core.config import settings
5
  from app.core.prompts import ATTACKER_PROMPT, EVALUATOR_PROMPT, NORMAL_PROMPT
6
 
7
- groq_client = Groq(api_key=settings.groq_api_key)
8
  openai_client = OpenAI(
9
- api_key=settings.openai_api_key,
10
  base_url="https://models.inference.ai.azure.com",
11
  )
12
 
 
4
  from app.core.config import settings
5
  from app.core.prompts import ATTACKER_PROMPT, EVALUATOR_PROMPT, NORMAL_PROMPT
6
 
7
+ groq_client = Groq(api_key=settings.GROQ_API_KEY)
8
  openai_client = OpenAI(
9
+ api_key=settings.OPENAI_API_KEY,
10
  base_url="https://models.inference.ai.azure.com",
11
  )
12