partial implementation from release/2.8.0#1237
Merged
chakravarthik27 merged 16 commits intomainfrom Apr 22, 2026
Merged
Conversation
… to SDK version changes
…luation-broken-due-to-openai-sdk-update fix: embedding based evaluation using openai sdk
- Bump Python version requirement from >=3.9,<4.0 to >=3.12,<4.0 - Update mlflow version requirement from 3.1.1 to >=3.10.1
…ity-issues Fix/vulnerabilities and security issues
blidiselalin
approved these changes
Apr 22, 2026
blidiselalin
left a comment
There was a problem hiding this comment.
Lot of works and changes, looks good on working on the new python versions and libraries updated
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several important updates across the codebase, focusing on compatibility with newer Python versions, refactoring type definitions for configuration, and updating dependencies to match evolving external APIs. The main changes include upgrading CI pipelines to Python 3.12 and 3.13, refactoring
TypedDictusages for test configurations, updating the OpenAI embeddings integration, and switching from the deprecatedlangchainpackage tolangchain_classic.Python Version and CI Pipeline Updates:
build_and_test.yml,llm_tests_build.yml,release.yaml) to test and build against Python 3.12 and 3.13, removing support for older versions. [1] [2] [3]Configuration Type Refactoring:
TypedDictusages for test configuration classes (e.g.,BaseAccuracy,LLMEval,BaseBias,BaseClinical,DisinformationTestFactory,FactualityTestFactory,BaseFairness,MinGenderF1Score,MaxGenderF1Score,MinGenderRougeScore,MaxGenderRougeScore,MinGenderLLMEval,MaxGenderLLMEval,BaseGrammar,LegalTestFactory,BasePerformance) to use dictionary-style syntax for field definitions, improving compatibility and clarity. Introduced a newGenderedConfigtype for gender-related fairness tests. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17]Dependency and API Updates:
langtest/embeddings/openai.pyto use the newopenai.ClientAPI and default to thetext-embedding-3-smallmodel. Removed deprecated API key assignment. [1] [2]langchainpackage withlangchain_classicthroughout the codebase, including in model handler modules, to ensure ongoing compatibility. [1] [2] [3]General Code Quality Improvements:
type(x) == ychecks withisinstance(x, y)for more robust type checking in several locations. [1] [2] [3] [4]build_promptto use more readable string concatenation.These changes collectively modernize the codebase, improve maintainability, and ensure compatibility with the latest versions of Python and key dependencies.