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

Swift Syntax #6

Open
gonzalonunez opened this issue Mar 25, 2023 · 1 comment
Open

Swift Syntax #6

gonzalonunez opened this issue Mar 25, 2023 · 1 comment

Comments

@gonzalonunez
Copy link
Owner

gonzalonunez commented Mar 25, 2023

Explore using Swift Syntax to document smaller units of code at a time instead of entire files. This would get us around some token limit issues, but I worry we may lose some of the contextual benefits of passing in entire files.

https://github.com/apple/swift-syntax

@gonzalonunez
Copy link
Owner Author

gonzalonunez commented Mar 28, 2023

One thought: at the very least, we can use swift-syntax to remove header comments from files and then add them back. Besides the fact that they're a waste of tokens, these seem to really trip up the model with the current prompt.

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

No branches or pull requests

1 participant