From 9840472df13aae0853469f8f5d667c7a8b8e997b Mon Sep 17 00:00:00 2001 From: Ihor Lahutin Date: Wed, 2 Oct 2024 12:00:24 +0300 Subject: [PATCH] Support body with no model --- aidial_interceptors_sdk/utils/_reflection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aidial_interceptors_sdk/utils/_reflection.py b/aidial_interceptors_sdk/utils/_reflection.py index 212a0d0..841cb40 100644 --- a/aidial_interceptors_sdk/utils/_reflection.py +++ b/aidial_interceptors_sdk/utils/_reflection.py @@ -23,6 +23,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]