Spaces:
Sleeping
Sleeping
Update private_gpt/components/llm/llm_component.py
Browse files
private_gpt/components/llm/llm_component.py
CHANGED
@@ -77,12 +77,12 @@ class LLMComponent:
|
|
77 |
|
78 |
if new_model == "gpt-3.5-turbo":
|
79 |
self.llm = OpenAI(model="gpt-3.5-turbo", api_key=os.environ.get("OPENAI_API_KEY"))
|
80 |
-
logger.info("Initializing the
|
81 |
|
82 |
elif new_model == "gpt-4":
|
83 |
# Initialize with the new model
|
84 |
self.llm = OpenAI(model="gpt-4", api_key=os.environ.get("OPENAI_API_KEY"))
|
85 |
-
logger.info("Initializing the
|
86 |
|
87 |
|
88 |
elif new_model == "mistral-7B":
|
@@ -102,6 +102,7 @@ class LLMComponent:
|
|
102 |
completion_to_prompt=prompt_style.completion_to_prompt,
|
103 |
verbose=True,
|
104 |
)
|
|
|
105 |
|
106 |
|
107 |
|
|
|
77 |
|
78 |
if new_model == "gpt-3.5-turbo":
|
79 |
self.llm = OpenAI(model="gpt-3.5-turbo", api_key=os.environ.get("OPENAI_API_KEY"))
|
80 |
+
logger.info("Initializing the LLM Model in=%s", "gpt-3.5-turbo")
|
81 |
|
82 |
elif new_model == "gpt-4":
|
83 |
# Initialize with the new model
|
84 |
self.llm = OpenAI(model="gpt-4", api_key=os.environ.get("OPENAI_API_KEY"))
|
85 |
+
logger.info("Initializing the LLM Model in=%s", "gpt-4")
|
86 |
|
87 |
|
88 |
elif new_model == "mistral-7B":
|
|
|
102 |
completion_to_prompt=prompt_style.completion_to_prompt,
|
103 |
verbose=True,
|
104 |
)
|
105 |
+
logger.info("Initializing the LLM Model in=%s", "Mistral-7B")
|
106 |
|
107 |
|
108 |
|