Skip to content

Commit 1d0d55f

Browse files
author
尘绝
committed
Merge remote-tracking branch 'origin/mainformysql' into mainformysql
2 parents 0638583 + 459a934 commit 1d0d55f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docker-compose.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ services:
191191
USER: root
192192
TZ: "${TZ}"
193193
OLLAMA_HOST: http://ollama:11434
194+
PYTHONPATH: /home/user/muagent/examples/ekg_examples
194195
ports:
195196
- 3737:3737
196197
volumes:
@@ -200,7 +201,7 @@ services:
200201
restart: on-failure
201202
networks:
202203
- ekg-net
203-
command: ["python", "/home/user/muagent/examples/ekg_examples/start.py"] # 指定要执行的脚本
204+
command: sh -c "uvicorn start:app --reload --reload-dir /home/user/muagent/examples --reload-dir /home/user/muagent/muagent --port=3737 --host=0.0.0.0"
204205

205206
ekgfrontend:
206207
build:

examples/ekg_examples/start.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def embed_query(self, text: str) -> List[float]:
320320

321321

322322
from muagent.httpapis.ekg_construct import create_api
323-
create_api(
323+
app = create_api(
324324
llm,
325325
llm_config,
326326
embeddings,

muagent/httpapis/ekg_construct/api.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -456,5 +456,4 @@ def ekg_migration_reasoning(request: EKGFeaturesRequest):
456456

457457

458458
def create_api(llm, llm_config, embeddings,ekg_construct_service: EKGConstructService, memory_manager, geabase_handler, intention_router):
459-
app = init_app(llm, llm_config, embeddings,ekg_construct_service, memory_manager, geabase_handler, intention_router)
460-
uvicorn.run(app, host="0.0.0.0", port=3737)
459+
return init_app(llm, llm_config, embeddings,ekg_construct_service, memory_manager, geabase_handler, intention_router)

0 commit comments

Comments
 (0)