Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Azure converter updates #7409

Merged
merged 13 commits into from
Apr 9, 2024
Prev Previous commit
Next Next commit
Minor adjustments
  • Loading branch information
vblagoje committed Mar 27, 2024
commit 674fa179a2b38ca23c7303181509aa540c0ab369
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ def test_to_dict(self, mock_resolve_value):
"init_parameters": {
"api_key": {"env_vars": ["AZURE_AI_API_KEY"], "strict": True, "type": "env_var"},
"endpoint": "test_endpoint",
"following_context_len": 3,
"merge_multiple_column_headers": True,
"model_id": "prebuilt-read",
"page_layout": "natural",
"preceding_context_len": 3,
"threshold_y": 0.05,
},
}

Expand Down Expand Up @@ -237,7 +242,7 @@ def result(self) -> AnalyzeResult:

docs = out["documents"]
# TODO assert below changed from the original test
assert docs[1].meta[0]["test"] == "value_1"
assert docs[1].meta["test"] == "value_1"

@pytest.mark.integration
@pytest.mark.skipif(not os.environ.get("CORE_AZURE_CS_ENDPOINT", None), reason="Azure endpoint not available")
Expand Down