From bcc7dcc8660d9dc6460036104a137f4b0965c433 Mon Sep 17 00:00:00 2001 From: Muspi Merol Date: Mon, 11 Nov 2024 13:41:42 +0800 Subject: [PATCH] fix: exclude `messages` from options --- src/routes/openai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/openai.py b/src/routes/openai.py index c1902b2..586b4a8 100644 --- a/src/routes/openai.py +++ b/src/routes/openai.py @@ -32,7 +32,7 @@ class ChatInput(ChainInput): @property def config(self): - return self.model_dump(exclude_unset=True) + return self.model_dump(exclude_unset=True, exclude={"messages"}) @openai_router.post("/chat/completions")