Nice! Totally agree with the project goals, it seems too many other packages are created by people who are researchers (or enthusiasts) first and software developers second, and it shows. I see you're using Pydantic. I've recently been playing with using pydantic to implement chatgpt functions, making it a bit easier to define functions (tools) with more control over the attributes, like this: class SearchWeb(pydanti…
Show HN: Python package for interfacing with ChatGPT with minimized complexity
31–36 of 36 posts
Re: Show HN: Python package for interfacing with ChatGPT with minimized complexity
#32Are we anywhere close to being able to give a whole codebase to GPT-4 and ask various things about it?
My open source CLI tool can do this, as well as make changes to the code. Here's a chat transcript that shows how you can use it to explore and then modify a public github repo for a js game: https://aider.chat/examples/2048-game.html Here a link to aider with more info: https://github.com/paul-gauthier/aider
I take it that asking things about the repository with gpt3.5-turbo-16k is not possible without adding each file separately?
Just to test I generated ctags for my smallish Rust project and noticed it comes to around 10k tokens according to https://platform.openai.com/tokenizer.
I don't have GPT-4 API access yet but it appears it would get quite expensive with the 32k context.
Re: Show HN: Python package for interfacing with ChatGPT with minimized complexity
#33Nice! Totally agree with the project goals, it seems too many other packages are created by people who are researchers (or enthusiasts) first and software developers second, and it shows. I see you're using Pydantic. I've recently been playing with using pydantic to implement chatgpt functions, making it a bit easier to define functions (tools) with more control over the attributes, like this: class SearchWeb(pydanti…
As a researcher what would the number one sin be that we commit? Is it something I could make the effort to improve upon?
It's just that these packages/libraries/frameworks are often in what I'd describe as "proof of concept" phase, not very developer-friendly (as in user-friendly for people wanting to try it out), missing docs, not handling errors, and not being written in a maintainable way.
So I think a "second generation" of tools/libraries, that are basically product-level quality, bringing on your work and focusing on those non-core-tech aspects of the experience, will be a next step to bring AI to the (developer) masses. Tools such as this package.
Re: Show HN: Python package for interfacing with ChatGPT with minimized complexity
#34Earlier quoted context omitted.
My open source CLI tool can do this, as well as make changes to the code. Here's a chat transcript that shows how you can use it to explore and then modify a public github repo for a js game: https://aider.chat/examples/2048-game.html Here a link to aider with more info: https://github.com/paul-gauthier/aider
Thanks for sharing. Looks very promising. I take it that asking things about the repository with gpt3.5-turbo-16k is not possible without adding each file separately? Just to test I generated ctags for my smallish Rust project and noticed it comes to around 10k tokens according to https://platform.openai.com/tokenizer . I don't have GPT-4 API access yet but it appears it would get quite expensive with the 32k context…
Improving and deepening support for the 3.5 models is probably my top priority next effort. Previously, they were barely useful for editing code. The 16k context window and functions support may have shifted that balance, so I need to dig in more.
One other thing to note is that aider now distills the repo map to fit within a token budget. The default is 1k tokens, specified via `--map-tokens`. It tries to use the budget to convey the most important parts of the repo map to GPT. So in theory, even very large repos should get a useful map.