Skip to content

Commit 0f8853b

Browse files
fix: Updated unit tests (#2069)
1 parent e5023d9 commit 0f8853b

4 files changed

Lines changed: 1 addition & 6 deletions

File tree

code/tests/functional/tests/backend_api/default/test_conversation.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ def test_post_makes_correct_calls_to_openai_embeddings_to_get_vector_dimensions(
131131
json={
132132
"input": [[1199]],
133133
"model": "text-embedding-ada-002",
134-
"dimensions": 1536,
135134
"encoding_format": "base64",
136135
},
137136
headers={
@@ -165,7 +164,6 @@ def test_post_makes_correct_calls_to_openai_embeddings_to_embed_question_to_sear
165164
"model": app_config.get_from_json(
166165
"AZURE_OPENAI_EMBEDDING_MODEL_INFO", "model"
167166
),
168-
"dimensions": 1536,
169167
"encoding_format": "base64",
170168
},
171169
headers={
@@ -199,7 +197,6 @@ def test_post_makes_correct_calls_to_openai_embeddings_to_embed_question_to_stor
199197
[3923, 374, 279, 7438, 315, 2324, 30]
200198
], # Embedding of "What is the meaning of life?"
201199
"model": "text-embedding-ada-002", # this is hard coded in the langchain code base
202-
"dimensions": 1536,
203200
"encoding_format": "base64",
204201
},
205202
headers={

code/tests/functional/tests/backend_api/sk_orchestrator/test_response_without_tool_call.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def test_post_makes_correct_call_to_openai_embeddings(
7171
[3923, 374, 279, 7438, 315, 2324, 30]
7272
], # Embedding of "What is the meaning of life?"
7373
"model": "text-embedding-ada-002",
74-
"dimensions": 1536,
7574
"encoding_format": "base64",
7675
},
7776
headers={

code/tests/functional/tests/functions/advanced_image_processing/test_advanced_image_processing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ def test_embeddings_generated_for_caption(
220220
"model": app_config.get_from_json(
221221
"AZURE_OPENAI_EMBEDDING_MODEL_INFO", "model"
222222
),
223-
"dimensions": 1536,
224223
"encoding_format": "base64",
225224
},
226225
headers={

code/tests/utilities/helpers/test_llm_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def test_generate_embeddings_embeds_input(azure_openai_mock):
117117

118118
# then
119119
azure_openai_mock.return_value.embeddings.create.assert_called_once_with(
120-
input=["some input"], model=AZURE_OPENAI_EMBEDDING_MODEL, dimensions=int(AZURE_SEARCH_DIMENSIONS)
120+
input=["some input"], model=AZURE_OPENAI_EMBEDDING_MODEL
121121
)
122122

123123

0 commit comments

Comments
 (0)