fix: resolve protobuf version conflict and stabilize API startup (v5.1b4)
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
__version__ = "5.1b3"
|
||||
__version__ = "5.1b4"
|
||||
|
||||
@@ -57,6 +57,12 @@ def debug_api(port=8048, config=None):
|
||||
|
||||
def start_server(port=8048, config=None):
|
||||
try:
|
||||
import sys
|
||||
# Ensure project root is in path for the child process
|
||||
base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
if base_dir not in sys.path:
|
||||
sys.path.insert(0, base_dir)
|
||||
|
||||
from connpy.grpc.server import serve
|
||||
conf = config or configfile()
|
||||
server = serve(conf, port=port, debug=False)
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ pyfzf>=0.3.1
|
||||
litellm>=1.40.0
|
||||
grpcio>=1.62.0
|
||||
grpcio-tools>=1.62.0
|
||||
protobuf>=4.21.0,<6.0.0
|
||||
protobuf>=6.31.1,<7.0.0
|
||||
google-api-python-client>=2.125.0
|
||||
google-auth-oauthlib>=1.2.0
|
||||
google-auth-httplib2>=0.2.0
|
||||
|
||||
Reference in New Issue
Block a user