Skip to content

Commit

Permalink
fix: supported request without model field (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
adubovik authored Nov 12, 2024
1 parent d6f4667 commit 9f50b1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aidial_adapter_dial/utils/reflection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 9f50b1c

Please sign in to comment.