Python Version and function references as additional context#874
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.
@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.
There was a problem hiding this comment.
we don't use these types of type hints in our cli code for the same reason. use Union
KRRT7
left a comment
There was a problem hiding this comment.
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