mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-30 06:30:43 +00:00
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:
parent
fc3c105d42
commit
20a0cd2f66
13 changed files with 812 additions and 388 deletions
14
apiv2/localai_nethttp.go
Normal file
14
apiv2/localai_nethttp.go
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue