mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-08 10:13:44 +08:00
接入 ChatGPT API
This commit is contained in:
@@ -30,11 +30,12 @@ func (s StaticFile) Open(name string) (fs.File, error) {
|
||||
}
|
||||
|
||||
type Server struct {
|
||||
Config *types.Config
|
||||
Config *types.Config
|
||||
History map[string][]types.Message
|
||||
}
|
||||
|
||||
func NewServer(config *types.Config) *Server {
|
||||
return &Server{Config: config}
|
||||
return &Server{Config: config, History: make(map[string][]types.Message, 16)}
|
||||
}
|
||||
|
||||
func (s *Server) Run(webRoot embed.FS, path string) {
|
||||
|
||||
Reference in New Issue
Block a user