refine README (#169)

This commit is contained in:
KevinHuSh
2024-03-29 10:48:29 +08:00
committed by GitHub
parent 7bae41c71f
commit 05298d5626
4 changed files with 19 additions and 3 deletions

View File

@ -69,7 +69,8 @@ def set_api_key():
return get_data_error_result(retmsg=msg)
llm = {
"api_key": req["api_key"]
"api_key": req["api_key"],
"api_base": req.get("base_url", "")
}
for n in ["model_type", "llm_name"]:
if n in req:

View File

@ -143,7 +143,7 @@ class CommonService:
@DB.connection_context()
def filter_update(cls, filters, update_data):
with DB.atomic():
cls.model.update(update_data).where(*filters).execute()
return cls.model.update(update_data).where(*filters).execute()
@staticmethod
def cut_list(tar_list, n):