Skip to content

Commit

Permalink
Add conversation id header in skill requests (#2141)
Browse files Browse the repository at this point in the history
  • Loading branch information
gandiddi authored Jul 23, 2024
1 parent b8dd205 commit a2cccb3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ async def _post_content(
) -> Tuple[int, object]:
headers_dict = {
"Content-type": "application/json; charset=utf-8",
"x-ms-conversation-id": activity.conversation.id,
}
if token:
headers_dict.update(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ async def reply_to_activity(
header_parameters = {}
header_parameters["Accept"] = "application/json"
header_parameters["Content-Type"] = "application/json; charset=utf-8"
header_parameters["x-ms-conversation-id"] = conversation_id
if custom_headers:
header_parameters.update(custom_headers)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ def reply_to_activity(
header_parameters = {}
header_parameters["Accept"] = "application/json"
header_parameters["Content-Type"] = "application/json; charset=utf-8"
header_parameters["x-ms-conversation-id"] = conversation_id
if custom_headers:
header_parameters.update(custom_headers)

Expand Down

0 comments on commit a2cccb3

Please sign in to comment.