mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-29 03:35:09 +01:00
18 lines
364 B
Go
18 lines
364 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", 3)
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
fmt.Println(strings.Join(resp, "\n"))
|
|
}
|