From 9f50b1c5db4bbdcce199c3421203c15edd55768c Mon Sep 17 00:00:00 2001 From: Anton Dubovik Date: Tue, 12 Nov 2024 11:07:49 +0000 Subject: [PATCH] fix: supported request without model field (#26) --- aidial_adapter_dial/utils/reflection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aidial_adapter_dial/utils/reflection.py b/aidial_adapter_dial/utils/reflection.py index 6366789..a300604 100644 --- a/aidial_adapter_dial/utils/reflection.py +++ b/aidial_adapter_dial/utils/reflection.py @@ -25,6 +25,7 @@ async def call_with_extra_body( ) arg["extra_body"] = arg.get("extra_body") or {} + arg["model"] = arg.get("model") # model arg is required in AsyncAzureOpenAI for extra_arg in extra_args: arg["extra_body"][extra_arg] = arg[extra_arg]