Skip to content

Commit

Permalink
feat: Support body with no model (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: Ihor Lahutin <ihor_lahutin@epam.com>
  • Loading branch information
igorlagutin and Ihor Lahutin authored Oct 2, 2024
1 parent b5dc07e commit 67ab88b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aidial_interceptors_sdk/utils/_reflection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 67ab88b

Please sign in to comment.