Skip to content

Commit af8a2f4

Browse files
committed
Remove phind
1 parent 75a182a commit af8a2f4

File tree

3 files changed

+3
-147
lines changed

3 files changed

+3
-147
lines changed

src/providers/phind/phind.go

Lines changed: 0 additions & 110 deletions
This file was deleted.

src/providers/phind/phind_test.go

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/providers/providers.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ import (
1212
"github.com/aandrew-me/tgpt/v2/src/providers/koboldai"
1313
"github.com/aandrew-me/tgpt/v2/src/providers/ollama"
1414
"github.com/aandrew-me/tgpt/v2/src/providers/openai"
15-
"github.com/aandrew-me/tgpt/v2/src/providers/phind"
1615
"github.com/aandrew-me/tgpt/v2/src/providers/pollinations"
1716
"github.com/aandrew-me/tgpt/v2/src/providers/sky"
1817
"github.com/aandrew-me/tgpt/v2/src/structs"
1918
http "github.com/bogdanfinn/fhttp"
2019
)
2120

2221
var availableProviders = []string{
23-
"", "deepseek", "isou", "gemini", "groq", "kimi", "koboldai", "ollama", "openai", "phind", "pollinations", "sky",
22+
"", "deepseek", "isou", "gemini", "groq", "kimi", "koboldai", "ollama", "openai", "pollinations", "sky",
2423
}
2524

2625
func GetMainText(line string, provider string, input string) string {
@@ -46,7 +45,7 @@ func GetMainText(line string, provider string, input string) string {
4645
case "sky":
4746
return sky.GetMainText(line)
4847
default:
49-
return phind.GetMainText(line)
48+
return pollinations.GetMainText(line)
5049
}
5150
}
5251

@@ -85,7 +84,7 @@ func NewRequest(input string, params structs.Params, extraOptions structs.ExtraO
8584
case "sky":
8685
return sky.NewRequest(input, params)
8786
default:
88-
return phind.NewRequest(input, params)
87+
return pollinations.NewRequest(input, params)
8988
}
9089

9190
}

0 commit comments

Comments
 (0)