Update LLM configuration to support FastGPT integration. Modify requirements to include fastgpt-python-sdk, enhance greeting messages, and adjust LLM service creation to handle app_id. Implement welcome text fetching for FastGPT and improve context handling in the pipeline based on LLM provider. Update related configurations and properties for better integration.

This commit is contained in:
Xin Wang
2026-05-26 14:15:26 +08:00
parent 3dfff0c937
commit 97deca0f57
7 changed files with 180 additions and 24 deletions

View File

@@ -59,6 +59,9 @@ def create_app(config_path: str = "config.json") -> FastAPI:
"product_image_input": True,
},
"demo": webpage_mount,
"llm_backend": (
"fastgpt" if config.services.llm.is_fastgpt else "openai"
),
"llm_provider": config.services.llm.provider,
"stt_provider": config.services.stt.provider,
"tts_provider": config.services.tts.provider,