mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-03-01 04:06:07 +00:00
added user custom header
This commit is contained in:
parent
7859aa748f
commit
1ca026f151
@ -5345,15 +5345,19 @@ fetch('/open_file', {
|
|||||||
@property
|
@property
|
||||||
def ai_full_header(self) -> str:
|
def ai_full_header(self) -> str:
|
||||||
"""Get the start_header_id_template."""
|
"""Get the start_header_id_template."""
|
||||||
return f"{self.start_user_header_id_template}{self.personality.name}{self.end_user_header_id_template}"
|
return f"{self.start_ai_header_id_template}{self.personality.name}{self.end_ai_header_id_template}"
|
||||||
|
|
||||||
def system_custom_header(self, ai_name) -> str:
|
def system_custom_header(self, ai_name) -> str:
|
||||||
|
"""Get the start_header_id_template."""
|
||||||
|
return f"{self.start_header_id_template}{ai_name}{self.end_user_header_id_template}"
|
||||||
|
|
||||||
|
def user_custom_header(self, ai_name) -> str:
|
||||||
"""Get the start_header_id_template."""
|
"""Get the start_header_id_template."""
|
||||||
return f"{self.start_user_header_id_template}{ai_name}{self.end_user_header_id_template}"
|
return f"{self.start_user_header_id_template}{ai_name}{self.end_user_header_id_template}"
|
||||||
|
|
||||||
def ai_custom_header(self, ai_name) -> str:
|
def ai_custom_header(self, ai_name) -> str:
|
||||||
"""Get the start_header_id_template."""
|
"""Get the start_header_id_template."""
|
||||||
return f"{self.start_user_header_id_template}{ai_name}{self.end_user_header_id_template}"
|
return f"{self.start_ai_header_id_template}{ai_name}{self.end_ai_header_id_template}"
|
||||||
|
|
||||||
|
|
||||||
class AIPersonalityInstaller:
|
class AIPersonalityInstaller:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user