/
actions.go
30 lines (26 loc) · 1.02 KB
/
actions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package helpers
import (
"fmt"
"github.com/logrusorgru/aurora"
)
var au = aurora.NewAurora(true)
func Intro() {
fmt.Println(au.Bold(au.Cyan(" Welcome to Flow Chat (Perplexity AI) ")))
fmt.Println(au.Bold(au.BgCyan("-----------------------------------------")))
// options
fmt.Println(au.Gray(12, "Type 'exit' or $exit to quit the chat"))
fmt.Println(au.Gray(12, "Type $models to change model"))
fmt.Println(au.Gray(12, "Type $history to view chat history"))
fmt.Println(au.Gray(12, "Type $clear to clear chat history"))
}
func DisplayModels() {
fmt.Println(au.Bold(au.BgBrown("options")))
fmt.Println(au.Bold(au.BrightGreen("sonar-small-chat")))
fmt.Println(au.Bold(au.BrightGreen("sonar-small-online")))
fmt.Println(au.Bold(au.BrightGreen("sonar-medium-chat")))
fmt.Println(au.Bold(au.BrightGreen("sonar-medium-online")))
fmt.Println(au.Bold(au.BrightGreen("pplx-70b-online")))
fmt.Println(au.Bold(au.BrightGreen("codellama-70b-instruct")))
fmt.Println(au.Bold(au.BrightGreen("mixtral-8x7b-instruct")))
fmt.Println("")
}