mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-02-01 00:45:29 +00:00
Update lollms_personalities_infos.py
This commit is contained in:
parent
eb9f2b49cf
commit
a88743be39
@ -235,7 +235,6 @@ class PersonalityDataRequest(BaseModel):
|
||||
category:str
|
||||
name:str
|
||||
|
||||
|
||||
@router.post("/get_personality_config")
|
||||
def get_personality_config(data:PersonalityDataRequest):
|
||||
print("- Recovering personality config")
|
||||
@ -256,13 +255,13 @@ def get_personality_config(data:PersonalityDataRequest):
|
||||
else:
|
||||
return {"status":False, "error":"Not found"}
|
||||
|
||||
class PersonalityDataRequest(BaseModel):
|
||||
class PersonalityConfig(BaseModel):
|
||||
category:str
|
||||
name:str
|
||||
config:dict
|
||||
|
||||
@router.post("/set_personality_config")
|
||||
def set_personality_config(data:PersonalityDataRequest):
|
||||
def set_personality_config(data:PersonalityConfig):
|
||||
print("- Recovering personality config")
|
||||
category = data.category
|
||||
name = data.name
|
||||
|
Loading…
x
Reference in New Issue
Block a user