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

updated the openai dependencies #1172

Merged

Conversation

chakravarthik27
Copy link
Collaborator

This pull request includes several changes to the langtest/augmentation/debias.py file and an update to the pyproject.toml file. The main updates involve adding progress bars, enhancing the debiasing logic, and updating dependencies.

Enhancements to debiasing logic and progress tracking:

  • Added tqdm import and integrated progress bars in the identify_bias and apply_debiasing methods to show progress during bias detection and debiasing processes. [1] [2] [3]
  • Enhanced the _BiasDetectionResponse.Step class to include an is_pronoun attribute, and added logic to handle gender-specific pronouns in the detect_bias method. [1] [2]

Improvements to text formatting:

  • Modified the get_openai and get_ollama methods to format user content as code blocks for better readability. [1] [2]

Dependency updates:

  • Updated the openai dependency version in pyproject.toml to ^1.61.1 from ^1.40.6.

@chakravarthik27 chakravarthik27 self-assigned this Feb 11, 2025
@chakravarthik27 chakravarthik27 merged commit d6a108e into release/2.6.0 Feb 18, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants