Skip to content

Commit 7523e4e

Browse files
adjusting formatting
1 parent 201c000 commit 7523e4e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

code/backend/batch/combine_pages_chunknos.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
bp_combine_pages_and_chunknos = func.Blueprint()
66

7+
78
@bp_combine_pages_and_chunknos.route(route="combine_pages_and_chunknos", methods=["POST"], auth_level=func.AuthLevel.ANONYMOUS)
89
def combine_pages_and_chunknos(req: func.HttpRequest) -> func.HttpResponse:
910
"""

code/backend/batch/utilities/integrated_vectorization/azure_search_skillset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def create_skillset(self):
8787
outputs=[
8888
OutputFieldMappingEntry(name="textItems", target_name="pages"),
8989
OutputFieldMappingEntry(name="ordinalPositions", target_name="chunk_nos"),
90-
],
90+
],
9191
)
9292

9393
# Custom WebApi skill to combine pages and chunk numbers into a single structure

code/tests/functional/tests/backend_api/with_byod/test_conversation_flow.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def test_azure_byod_responds_successfully_when_streaming(
8585
# Check tool message
8686
tool_message = final_response_json["choices"][0]["messages"][0]
8787
assert tool_message["role"] == "tool"
88-
assert tool_message["end_turn"] == False
88+
assert tool_message["end_turn"] is False
8989
assert "content" in tool_message
9090

9191
# Parse citations from content
@@ -103,7 +103,7 @@ def test_azure_byod_responds_successfully_when_streaming(
103103
# Check assistant message
104104
assistant_message = final_response_json["choices"][0]["messages"][1]
105105
assert assistant_message["role"] == "assistant"
106-
assert assistant_message["end_turn"] == True
106+
assert assistant_message["end_turn"] is True
107107
assert assistant_message["content"] == "42 is the meaning of life"
108108

109109

@@ -148,8 +148,7 @@ def test_post_makes_correct_call_to_azure_openai(
148148

149149
for request_log in requests_log:
150150
request = request_log[0]
151-
if (request.path == f"/openai/deployments/{app_config.get_from_json('AZURE_OPENAI_MODEL_INFO','model')}/chat/completions"
152-
and request.method == "POST"):
151+
if (request.path == f"/openai/deployments/{app_config.get_from_json('AZURE_OPENAI_MODEL_INFO','model')}/chat/completions" and request.method == "POST"):
153152

154153
request_json = request.json
155154

0 commit comments

Comments
 (0)