Skip to content

Commit dbaa233

Browse files
Pylint fix in data_utils.py
1 parent 587528d commit dbaa233

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

scripts/data_utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,6 @@ def get_embedding(
841841
try:
842842
if FLAG_EMBEDDING_MODEL == "AOAI":
843843
deployment_id = "embedding"
844-
api_version = "2024-02-01"
845844

846845
if azure_credential is not None:
847846
# Use managed identity credential with credential_scopes parameter
@@ -861,7 +860,6 @@ def get_embedding(
861860
endpoint=f"{endpoint}/openai/deployments/{deployment_id}",
862861
credential=AzureKeyCredential(api_key)
863862
)
864-
865863
response = client.embed(input=[text])
866864
return response.data[0].embedding
867865

0 commit comments

Comments
 (0)