-
Notifications
You must be signed in to change notification settings - Fork 20
found a case where jedi's full name did not start with the module nam… #124
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
…e. we need this check so it doesn't error out
@@ -73,6 +73,7 @@ def get_code_optimization_context( | |||
|
|||
# Handle token limits | |||
tokenizer = tiktoken.encoding_for_model("gpt-4o") | |||
code_print(final_read_writable_code) |
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.
do we want to print this to the output?
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
…e. we need this check so it doesn't error out
PR Type
Description
Add debugging print using code_print
Check that full function names start with module names
Ensure proper function identification using Jedi API
Changes walkthrough 📝
code_context_extractor.py
Add logging and module prefix checks
codeflash/context/code_context_extractor.py
code_print
for extra loggingname.full_name
starts withname.module_name
in functionextraction
function_context.py
Update function qualified check for module prefix
codeflash/optimization/function_context.py
belongs_to_function_qualified
for enhanced safety