Skip to content

Commit 27caeae

Browse files
author
aandrew-me
committed
Refactoring code
1 parent 46669f5 commit 27caeae

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Diff for: main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ func main() {
298298
utils.LogToFile(userInput, "USER_QUERY", *logFile)
299299
}
300300

301-
responseJson, responseTxt := getData(userInput, true, structs.ExtraOptions{
301+
responseJson, responseTxt := getData(userInput, structs.Params{
302302
PrevMessages: previousMessages,
303303
Provider: *provider,
304304
ThreadID: threadID,

Diff for: providers/providers.go

-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ func NewRequest(input string, params structs.Params, extraOptions structs.ExtraO
5858
return groq.NewRequest(input, params)
5959
case "koboldai":
6060
return koboldai.NewRequest(input, params)
61-
case "llama2":
62-
return llama2.NewRequest(input, params)
6361
case "ollama":
6462
return ollama.NewRequest(input, params)
6563
case "opengpts":

0 commit comments

Comments
 (0)