Improve AI suggestions by specifying shell name and OS in OpenAI query

This commit is contained in:
David Dworken
2023-12-19 16:49:31 -08:00
parent d3baf03dde
commit 8fd809fdc8
5 changed files with 35 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ import (
)
func main() {
resp, _, err := ai.GetAiSuggestionsViaOpenAiApi("Find all CSV files in the current directory or subdirectories and select the first column, then prepend `foo` to each line", 3)
resp, _, err := ai.GetAiSuggestionsViaOpenAiApi("Find all CSV files in the current directory or subdirectories and select the first column, then prepend `foo` to each line", "bash", "MacOS", 3)
if err != nil {
log.Fatal(err)
}