添加 Copilot 聊天流式响应功能及相关配置

This commit is contained in:
2026-03-23 18:03:00 +08:00
parent b0acfb21ec
commit 21dd393aee
6 changed files with 316 additions and 1 deletions
+4
View File
@@ -62,6 +62,10 @@ class Settings(BaseSettings):
KEYCLOAK_ALGORITHM: str = "RS256"
KEYCLOAK_AUDIENCE: str = ""
# Copilot Sidecar
COPILOT_SIDECAR_URL: str = "http://127.0.0.1:8787"
COPILOT_STREAM_TIMEOUT_SECONDS: int = 120
@property
def SQLALCHEMY_DATABASE_URI(self) -> str:
db_password = quote_plus(self.DB_PASSWORD)