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
👇 Click on the image for a new way to code review
####
[![Review these changes using an interactive CodeSee Map](https://s3.us-east-2.amazonaws.com/maps.codesee.io/images/github/gofireflyio/aiac/22/c9ac0968/acbe643ce2c92f998ce4dd1e09a4ccf44d1e7286.svg)](https://app.codesee.io/r/reviews?pr=22&src=https%3A%2F%2Fgithub.com%2Fgofireflyio%2Faiac)
#### Legend
![CodeSee Map Legend](https://app.codesee.io/Legend_v2.png)
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 areadmePath
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 renamedGenerateCode
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: