Skip to content

Commit

Permalink
[fix] Remove tool dictionary from messages list in the aoai request (#…
Browse files Browse the repository at this point in the history
…756)

Co-authored-by: Ian Seabock (Centific Technologies Inc) <[email protected]>
  • Loading branch information
iseabock and Ian Seabock (Centific Technologies Inc) authored Apr 9, 2024
1 parent 7e80cc1 commit ee70ad0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,8 @@ async def promptflow_request(request):


async def send_chat_request(request):
filtered_messages = [message for message in request['messages'] if message['role'] != 'tool']
request['messages'] = filtered_messages
model_args = prepare_model_args(request)

try:
Expand Down

1 comment on commit ee70ad0

@mverhov
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iseabock is this the fix for #738 ?

Please sign in to comment.