mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 09:04:27 +00:00
Update GetProxy method to use BackendTypeLlamaCpp constant for backend type
This commit is contained in:
@@ -152,7 +152,7 @@ func (i *Process) GetProxy() (*httputil.ReverseProxy, error) {
|
|||||||
var host string
|
var host string
|
||||||
var port int
|
var port int
|
||||||
switch i.options.BackendType {
|
switch i.options.BackendType {
|
||||||
case "llama-cpp":
|
case backends.BackendTypeLlamaCpp:
|
||||||
host = i.options.LlamaServerOptions.Host
|
host = i.options.LlamaServerOptions.Host
|
||||||
port = i.options.LlamaServerOptions.Port
|
port = i.options.LlamaServerOptions.Port
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user