Skip to content

Commit 7c9027b

Browse files
fixed lint and unit test issue
1 parent 7d6021f commit 7c9027b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/ContentProcessor/requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ pytest-asyncio>=0.25.3
2020
pytest-cov>=6.0.0
2121
pytest-mock>=3.14.0
2222
mongomock>=2.3.1
23-
ruff>=0.9.1
23+
ruff>=0.9.1
24+
semantic-kernel>=1.26.1

src/ContentProcessor/src/libs/azure_helper/azure_openai.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from azure.identity import DefaultAzureCredential, get_bearer_token_provider
22
from openai import AzureOpenAI
33

4-
## It will be deprecated in the future
5-
## Open AI SDK -> Semaantic Kernel
4+
5+
# It will be deprecated in the future
6+
# Open AI SDK -> Semaantic Kernel
67
def get_openai_client(azure_openai_endpoint: str) -> AzureOpenAI:
78
credential = DefaultAzureCredential()
89
token_provider = get_bearer_token_provider(

src/ContentProcessor/src/libs/pipeline/handlers/map_handler.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ async def invoke_chat_completion(
134134
# Define the prompt template
135135
prompt = """
136136
system : You are an AI assistant that extracts data from documents.
137-
137+
138138
{{$history}}
139-
139+
140140
assistant :"""
141141

142142
# Set Execution Settings - logprobs property doesn't spported in ExecutionSettings

src/ContentProcessor/src/libs/semantic_kernel_extended/custom_execution_settings.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from typing import Any
2-
31
from semantic_kernel.connectors.ai.open_ai import AzureChatPromptExecutionSettings
42

53

0 commit comments

Comments
 (0)