Skip to content
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

feat: auto-linter #49

Merged
merged 7 commits into from
Dec 11, 2024
Merged

feat: auto-linter #49

merged 7 commits into from
Dec 11, 2024

Conversation

mediumsizeworkingdog
Copy link
Collaborator

Changelog:

@mediumsizeworkingdog mediumsizeworkingdog merged commit bdfe56e into dev Dec 11, 2024
1 check passed
@@ -217,6 +243,9 @@ async def generate_answer(
},
)
logger.info(f"{qa_id} Answer Generation Completed ")
# execute auto-linting and use LLm to fix syntax errors if any. Will modify the response_model in place.
await lint_and_fix_code(client, model, response_model, qa_id)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo it is clearer to return the modified code, rather than keep track of the side effects

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can. will change for readability

commons/linter/package-lock.json Show resolved Hide resolved
commons/synthetic.py Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants