-
Notifications
You must be signed in to change notification settings - Fork 312
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
Initial LLM-powered code generation script #4537
base: master
Are you sure you want to change the base?
Conversation
return None | ||
except Exception as e: | ||
logger.error(f"Unexpected error: {e}") | ||
return None |
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.
For the functions that retrieve data from Phab, we should move them to the phabricator.py lib (and use already existing ones in case there are)
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.
I moved the interdiff funciton to phabricator.py
: ed1d257
Regarding the other retrievals from Phab, they use the API from libmozdata so I'm not sure if it would efficient or relevant to move these API calls to phabricator.py
Preliminary code generation script using models from OpenAI and Anthropic. Uses a local Qdrant vector DB for data point storage for similar commits to be injected into the single-shot and multi-shot prompts.