mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-02-01 00:45:29 +00:00
added set active model method
This commit is contained in:
parent
dd7eb3de75
commit
a2097be6cf
@ -239,6 +239,15 @@ class LollmsApplication(LoLLMsCom):
|
||||
trace_exception(ex)
|
||||
return False
|
||||
|
||||
|
||||
def set_active_model(self, model):
|
||||
print(f"New model active : {model.model_name}")
|
||||
self.model = model
|
||||
self.binding = model
|
||||
self.config["binding_name"] = model.binding_folder_name
|
||||
self.config["model_name"] = model.model_name
|
||||
|
||||
|
||||
def add_discussion_to_skills_library(self, client: Client):
|
||||
end_header_id_template = self.config.end_header_id_template
|
||||
separator_template = self.config.separator_template
|
||||
|
Loading…
x
Reference in New Issue
Block a user