mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-30 12:16:16 +01:00
18 lines
381 B
Go
18 lines
381 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"log"
|
|
"strings"
|
|
|
|
"github.com/ddworken/hishtory/shared/ai"
|
|
)
|
|
|
|
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", "bash", "MacOS", 3)
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
fmt.Println(strings.Join(resp, "\n"))
|
|
}
|