* added memgpt server command * added the option to specify a port (rest default 8283, ws default 8282) * fixed import in test * added agent saving on shutdown * added basic locking mechanism (assumes only one server.py is running at the same time) * remove 'STOP' from buffer when converting to list for the non-streaming POST resposne * removed duplicate on_event (redundant to lifespan) * added GET agents/memory route * added GET agent config * added GET server config * added PUT route for modifying agent core memory * refactored to put server loop in separate function called via main
7 lines
92 B
Python
7 lines
92 B
Python
# WebSockets
|
|
WS_DEFAULT_PORT = 8282
|
|
WS_CLIENT_TIMEOUT = 30
|
|
|
|
# REST
|
|
REST_DEFAULT_PORT = 8283
|