Skip to content

refactor(llmrails)!: remove deprecated return_context argument#1147

Merged
Pouyanpi merged 1 commit intodevelopfrom
refactor/remove-deprecated-return-context
May 5, 2025
Merged

refactor(llmrails)!: remove deprecated return_context argument#1147
Pouyanpi merged 1 commit intodevelopfrom
refactor/remove-deprecated-return-context

Conversation

@Pouyanpi
Copy link
Collaborator

The return_context argument has been removed from the LLMRails class methods as it was deprecated. Users are encouraged to use GenerationOptions.output_vars = True instead. This change simplifies the interface and eliminates deprecated functionality.

BREAKING CHANGE: The return_context argument is no longer supported.

@Pouyanpi Pouyanpi force-pushed the refactor/remove-deprecated-return-context branch from f76738c to bbdd4a5 Compare April 25, 2025 12:46
@Pouyanpi Pouyanpi changed the title refactor(llmrails): remove deprecated return_context argument refactor(llmrails)!: remove deprecated return_context argument Apr 25, 2025
@Pouyanpi Pouyanpi self-assigned this Apr 25, 2025
@Pouyanpi Pouyanpi added this to the v0.14.0 milestone Apr 25, 2025
@Pouyanpi Pouyanpi added bug Something isn't working enhancement New feature or request and removed bug Something isn't working enhancement New feature or request labels May 1, 2025
The `return_context` argument has been removed from the LLMRails class
methods as it was deprecated. Users are encouraged to use
`GenerationOptions.output_vars = True` instead. This change simplifies
the interface and eliminates deprecated functionality.

BREAKING CHANGE: The `return_context` argument is no longer supported.
@Pouyanpi Pouyanpi force-pushed the refactor/remove-deprecated-return-context branch from bbdd4a5 to 5de0ae5 Compare May 2, 2025 06:52
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.02%. Comparing base (67b8b7a) to head (5de0ae5).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1147      +/-   ##
===========================================
+ Coverage    68.00%   68.02%   +0.01%     
===========================================
  Files          161      161              
  Lines        15793    15786       -7     
===========================================
- Hits         10740    10738       -2     
+ Misses        5053     5048       -5     
Flag Coverage Δ
python 68.02% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Pouyanpi Pouyanpi merged commit 2dce5a0 into develop May 5, 2025
17 checks passed
@Pouyanpi Pouyanpi deleted the refactor/remove-deprecated-return-context branch May 5, 2025 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants