- Notifications
You must be signed in to change notification settings - Fork 22
Python Version and function references as additional context #874
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
|
Codeflash Bot 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:
|
| "scipy>=1.13.1", | ||
| "torch>=2.8.0", | ||
| "xarray>=2024.7.0", | ||
| "eval_type_backport" |
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.
what's this needed for?
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.
@KRRT7 for 3.9 unittests, we're using '|' for type hints which is not supported in 3.9, from the logs
TypeError: Unable to evaluate type annotation 'str | None'. If you are making use of the new typing syntax (unions using | since Python 3.10 or builtins subscripting since Python 3.9), you should either replace the use of new syntax with the existing typing constructs or install the eval_type_backport package.``` 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.
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.
we don't use these types of type hints in our cli code for the same reason. use Union
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.
a couple of your commits show up as codeflash bot, this happens when Claude or other LLMs commit and mess with the git config, that's why we got the CLA bot commenting, we need to fix that before being able to merge
PR Type
Enhancement
Description
Pass function references across optimization flow
Include python version in service payloads
Extend models and APIs with new fields
Adjust thread pool sizing for concurrency
Diagram Walkthrough
File Walkthrough
aiservice.py
Enrich AI service payloads with refs and versioncodeflash/api/aiservice.py
function_referencesto refinement payloadpython_versionto multiple requestsget_new_explanationandgenerate_rankingsignaturesfunction_referencesin payloadsmodels.py
Model updated for function referencescodeflash/models/models.py
AIServiceRefinerRequestwithfunction_referencesfunction_optimizer.py
Propagate function references through optimizer workflowcodeflash/optimization/function_optimizer.py
function_referencesend-to-end