From 461d19aa2512fea7ac07e50c3178609850ef07c3 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Tue, 31 Dec 2024 13:25:13 +0300 Subject: Feat: add rag [wip; skip-ci] --- config/config.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config') diff --git a/config/config.go b/config/config.go index 074bfda..ce1b877 100644 --- a/config/config.go +++ b/config/config.go @@ -8,6 +8,7 @@ import ( type Config struct { APIURL string `toml:"APIURL"` + EmbedURL string `toml:"EmbedURL"` ShowSys bool `toml:"ShowSys"` LogFile string `toml:"LogFile"` UserRole string `toml:"UserRole"` @@ -29,6 +30,7 @@ func LoadConfigOrDefault(fn string) *Config { if err != nil { fmt.Println("failed to read config from file, loading default") config.APIURL = "http://localhost:8080/v1/chat/completions" + config.EmbedURL = "http://localhost:8080/v1/embiddings" config.ShowSys = true config.LogFile = "log.txt" config.UserRole = "user" -- cgit v1.2.3