This project is for having a support to have gpt on cli. This is a on going project feel free to push features and issues.
-
Create a config.yaml file and provide the openai api key, Refer: Docs
api_key="openai-api-key"
Recent Fixes=
-
Fix config file handling in
initConfig -
Handle empty choices array properly in
getResFromGpt -
Refactor error handling and unnecessary
break/os.Exit(1)in `startChat -
Use
io.ReadAllinstead ofioutil.ReadAll -
Fix error handling in
json.Unmarshal: -
Trim whitespace from user input to check for "exit"
-
**Provide more informative error messages, especially in API requests"