Gourisankar Padihary commited on
Commit
5661370
·
1 Parent(s): 85b4b32

Model name parameterized

Browse files
Files changed (1) hide show
  1. generator/initialize_llm.py +0 -2
generator/initialize_llm.py CHANGED
@@ -8,7 +8,6 @@ def initialize_generation_llm():
8
  os.environ["GROQ_API_KEY"] = ""
9
  model_name = ConfigConstants.GENERATION_MODEL_NAME
10
  llm = ChatGroq(model=model_name, temperature=0.7)
11
- llm.name = model_name
12
  logging.info(f'Generation LLM {model_name} initialized')
13
  return llm
14
 
@@ -16,6 +15,5 @@ def initialize_validation_llm():
16
  os.environ["GROQ_API_KEY"] = ""
17
  model_name = ConfigConstants.VALIDATION_MODEL_NAME
18
  llm = ChatGroq(model=model_name, temperature=0.7)
19
- llm.name = model_name
20
  logging.info(f'Validation LLM {model_name} initialized')
21
  return llm
 
8
  os.environ["GROQ_API_KEY"] = ""
9
  model_name = ConfigConstants.GENERATION_MODEL_NAME
10
  llm = ChatGroq(model=model_name, temperature=0.7)
 
11
  logging.info(f'Generation LLM {model_name} initialized')
12
  return llm
13
 
 
15
  os.environ["GROQ_API_KEY"] = ""
16
  model_name = ConfigConstants.VALIDATION_MODEL_NAME
17
  llm = ChatGroq(model=model_name, temperature=0.7)
 
18
  logging.info(f'Validation LLM {model_name} initialized')
19
  return llm