rajrakeshdr commited on
Commit
ee92f4e
·
verified ·
1 Parent(s): 04b4725

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -8,8 +8,7 @@ app = FastAPI()
8
  # Create a request model with context
9
  class SearchQuery(BaseModel): query: str context: str = None # Optional context field
10
  # Initialize LangChain with Groq
11
- llm = ChatGroq( temperature=0.7, model_name="mixtral-8x7b-32768", groq_api_key="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" # Replace
12
- with your actual Groq API key
13
  )
14
  # Define the prompt template with cybersecurity expertise Define the prompt template with elite cybersecurity expertise
15
  prompt_template = PromptTemplate( input_variables=["query", "context"],
 
8
  # Create a request model with context
9
  class SearchQuery(BaseModel): query: str context: str = None # Optional context field
10
  # Initialize LangChain with Groq
11
+ llm = ChatGroq( temperature=0.7, model_name="mixtral-8x7b-32768", groq_api_key="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" # Replace with your actual Groq API key
 
12
  )
13
  # Define the prompt template with cybersecurity expertise Define the prompt template with elite cybersecurity expertise
14
  prompt_template = PromptTemplate( input_variables=["query", "context"],