From b2c4456bf80122e8aab98745dbeabf666c720108 Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 22 Feb 2024 20:45:29 +0300 Subject: [PATCH] Change default provider to phind --- main.go | 2 +- providers/providers.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 9f66fbb..65eb897 100644 --- a/main.go +++ b/main.go @@ -22,7 +22,7 @@ import ( "github.com/olekukonko/ts" ) -const localVersion = "2.7.0" +const localVersion = "2.7.1" var bold = color.New(color.Bold) var boldBlue = color.New(color.Bold, color.FgBlue) diff --git a/providers/providers.go b/providers/providers.go index 5727ada..9ea40e2 100644 --- a/providers/providers.go +++ b/providers/providers.go @@ -33,7 +33,7 @@ func GetMainText(line string, provider string, input string) string { return blackboxai.GetMainText(line) } - return opengpts.GetMainText(line, input) + return phind.GetMainText(line) } func NewRequest(input string, params structs.Params, extraOptions structs.ExtraOptions) (*http.Response, error) { @@ -63,5 +63,5 @@ func NewRequest(input string, params structs.Params, extraOptions structs.ExtraO return blackboxai.NewRequest(input, params, extraOptions.PrevMessages) } - return opengpts.NewRequest(input, params, extraOptions) + return phind.NewRequest(input, params, extraOptions.PrevMessages) }