-
Notifications
You must be signed in to change notification settings - Fork 22
[fix] candidate inline and remove functions for config #746
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
Conversation
|
saga4 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
|
||
| return N_CANDIDATES_LSP if is_LSP_enabled() else N_CANDIDATES | ||
| _IS_LSP_ENABLED = is_LSP_enabled() | ||
| except ImportError: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when would we get import errors?
User description
PR Type
Enhancement, Bug fix
Description
Replace dynamic getters with constants
Cap candidates via new MAX limits
Propagate effective config across modules
Adjust worktree creation to new counts
Diagram Walkthrough
File Walkthrough
aiservice.py
Use effective candidate constants in API payloadscodeflash/api/aiservice.py
get_n_candidateswithN_CANDIDATES_EFFECTIVE.get_n_candidates_lpwithN_CANDIDATES_LP_EFFECTIVE.config_consts.py
Introduce capped EFFECTIVE constants and remove getterscodeflash/code_utils/config_consts.py
MAX_N_CANDIDATES,MAX_N_CANDIDATES_LP._IS_LSP_ENABLEDwith fallback.N_*_EFFECTIVEconstants replacing getters.git_utils.py
Worktree creation uses effective candidate countcodeflash/code_utils/git_utils.py
N_CANDIDATES_EFFECTIVE.function_optimizer.py
Optimizer switched to EFFECTIVE constants throughoutcodeflash/optimization/function_optimizer.py
N_CANDIDATES_LP_EFFECTIVEin line profiler path.N_CANDIDATES_EFFECTIVEfor optimization requests.