Merge pull request #29 from BoardWare-Genius/veraGDI

fix
This commit is contained in:
headbigsile
2025-03-19 16:46:30 +08:00
committed by GitHub

View File

@ -76,6 +76,8 @@ class VLMS(Blackbox):
"top_k": self.top_k, "top_k": self.top_k,
"ignore_eos": self.ignore_eos, "ignore_eos": self.ignore_eos,
"skip_special_tokens": self.skip_special_tokens, "skip_special_tokens": self.skip_special_tokens,
# "system_prompt":"",
# "vlm_model_name":" ",
} }
@ -99,7 +101,7 @@ class VLMS(Blackbox):
history: a list history: a list
""" """
if settings: if settings:
for k in settings: for k in list(settings.keys()):
if k not in self.settings: if k not in self.settings:
print("Warning: '{}' is not a support argument and ignore this argment, check the arguments {}".format(k,self.settings.keys())) print("Warning: '{}' is not a support argument and ignore this argment, check the arguments {}".format(k,self.settings.keys()))
settings.pop(k) settings.pop(k)