fix: 防止無法解析

pull/648/head
bluelovers 2024-06-06 07:44:52 +08:00 committed by GitHub
parent cb3cb96792
commit 9cb68f09e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -542,10 +542,10 @@ def parse_generation_parameters(x: str):
res[f"{k}-2"] = m.group(2)
continue
v = v.strip() # Remove surrounding spaces for non-JSON values
res[k] = v
except Exception as e:
print(f"Error parsing \"{k}: {v}\": {e}")
res[k] = v
prompt_parse_res = parse_prompt(prompt)
lora = prompt_parse_res["lora"]