Not anywhere close to done, but getting back to this and staging some progress. Preliminary pass on loading a config and overriding params with request json.

This commit is contained in:
Dave Lee 2023-06-01 03:31:55 -04:00
parent fc3c105d42
commit 20a0cd2f66
No known key found for this signature in database
13 changed files with 812 additions and 388 deletions

14
apiv2/localai_nethttp.go Normal file
View file

@ -0,0 +1,14 @@
package apiv2
import "net/http"
func NewLocalAINetHTTPServer(configManager *ConfigManager) *LocalAIServer {
localAI := LocalAIServer{
configManager: configManager,
}
http.Handle("/", Handler(&localAI))
http.ListenAndServe(":8085", nil)
return &localAI
}