fix: f-string
This commit is contained in:
parent
56e05ac967
commit
8d567bd034
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ async def update_memory(memory_id):
|
||||||
if "temperature" in req:
|
if "temperature" in req:
|
||||||
temperature = float(req["temperature"])
|
temperature = float(req["temperature"])
|
||||||
if not 0 <= temperature <= 1:
|
if not 0 <= temperature <= 1:
|
||||||
return get_error_argument_result(f"Temperature should be in range [0, 1].")
|
return get_error_argument_result("Temperature should be in range [0, 1].")
|
||||||
update_dict["temperature"] = temperature
|
update_dict["temperature"] = temperature
|
||||||
# allow update to empty fields
|
# allow update to empty fields
|
||||||
for field in ["avatar", "description", "system_prompt", "user_prompt"]:
|
for field in ["avatar", "description", "system_prompt", "user_prompt"]:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue