Skip to content

Commit

Permalink
Fix Nyarch extra settings
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoCaracciolo committed Nov 20, 2024
1 parent 22f1d2e commit c773213
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,9 +1039,7 @@ def __init__(self, settings, path):
self.set_setting("api", "nya")

def get_extra_settings(self) -> list:
plus = []
plus += [super().get_extra_settings()[3]]
return plus
return self.build_extra_settings("Nyarch",False, True, False, False, False, None, None, False, False)

def generate_text_stream(self, prompt: str, history: list[dict[str, str]] = [], system_prompt: list[str] = [], on_update: Callable[[str], Any] = lambda _: None, extra_args: list = []) -> str:
if prompt.startswith("```image") or any(message.get("Message", "").startswith("```image") for message in history):
Expand Down

0 comments on commit c773213

Please sign in to comment.