mirror of
https://github.com/katanemo/plano.git
synced 2026-05-09 07:42:43 +02:00
concatenate history of user messages for hallucination (#177)
* concatenate history of user messages for hallucination * add history of messages * fix gpt to not arch * add model prefix * fix * correct init of user_messages * fmt * fix test
This commit is contained in:
parent
35c5e303b7
commit
b1746b38b4
4 changed files with 44 additions and 8 deletions
|
|
@ -177,7 +177,7 @@ async def hallucination(req: HallucinationRequest, res: Response):
|
|||
"""
|
||||
Take input as text and return the prediction of hallucination for each parameter
|
||||
"""
|
||||
|
||||
logger.info(f"hallucination request: {req}")
|
||||
if req.model != zero_shot_model["model_name"]:
|
||||
raise HTTPException(status_code=400, detail="unknown model: " + req.model)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue