Skip to content

Commit 3259621

Browse files
author
aandrew-me
committed
Remove llama2
1 parent 182c62c commit 3259621

File tree

2 files changed

+1
-83
lines changed

2 files changed

+1
-83
lines changed

providers/llama2/llama2.go

-77
This file was deleted.

providers/providers.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"github.com/aandrew-me/tgpt/v2/providers/blackboxai"
88
"github.com/aandrew-me/tgpt/v2/providers/groq"
99
"github.com/aandrew-me/tgpt/v2/providers/koboldai"
10-
"github.com/aandrew-me/tgpt/v2/providers/llama2"
1110
"github.com/aandrew-me/tgpt/v2/providers/ollama"
1211
"github.com/aandrew-me/tgpt/v2/providers/openai"
1312
"github.com/aandrew-me/tgpt/v2/providers/opengpts"
@@ -17,7 +16,7 @@ import (
1716
)
1817

1918
var availableProviders = []string{
20-
"", "opengpts", "ollama", "openai", "phind", "llama2", "koboldai", "blackboxai", "groq",
19+
"", "opengpts", "ollama", "openai", "phind", "koboldai", "blackboxai", "groq",
2120
}
2221

2322
func GetMainText(line string, provider string, input string) string {
@@ -27,8 +26,6 @@ func GetMainText(line string, provider string, input string) string {
2726
return groq.GetMainText(line)
2827
} else if provider == "koboldai" {
2928
return koboldai.GetMainText(line)
30-
} else if provider == "llama2" {
31-
return llama2.GetMainText(line)
3229
} else if provider == "ollama" {
3330
return ollama.GetMainText(line)
3431
} else if provider == "opengpts" {
@@ -61,8 +58,6 @@ func NewRequest(input string, params structs.Params, extraOptions structs.ExtraO
6158
return groq.NewRequest(input, params, extraOptions.PrevMessages)
6259
} else if params.Provider == "koboldai" {
6360
return koboldai.NewRequest(input, params, "")
64-
} else if params.Provider == "llama2" {
65-
return llama2.NewRequest(input, params, extraOptions.PrevMessages)
6661
} else if params.Provider == "ollama" {
6762
return ollama.NewRequest(input, params, extraOptions.PrevMessages)
6863
} else if params.Provider == "opengpts" {

0 commit comments

Comments
 (0)