forked from gofireflyio/aiac
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove ChatGPT support, document code, small refactor
This commit performs the following backwards-incompatible modifications to the codebase: - ChatGPT support is completely removed. Since this was particularly fragile, undocumented, and an unsupported use case (both from our part and from OpenAI's part), it is better removed until/if ChatGPT provides an API. - The code is documented with GoDoc-compliant comments. - The NewClient function no longer receives an input struct, but only receives the OpenAI API key. - The `Ask` method no longer accepts a `readmePath` argument, as this only worked with ChatGPT. Documentation also makes it clear that this method is meant to be used in CLI programs only. - The `askViaAPI` method is renamed `GenerateCode` and thus publically exposed, allowing real library usage of the module. Due to these breaking changes, this commit should be released as part of version 2.0.0 of aiac: git tag v2.0.0 git push origin v2.0.0 go mod tidy go mod publish
- Loading branch information
Showing
5 changed files
with
93 additions
and
385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.