feat(api): add web search endpoint

This commit is contained in:
2026-06-09 16:13:24 +08:00
parent 441979f581
commit 1712ecd4c7
7 changed files with 256 additions and 35 deletions
+5
View File
@@ -64,6 +64,11 @@ class Settings(BaseSettings):
KEYCLOAK_ALGORITHM: str = "RS256"
KEYCLOAK_AUDIENCE: str = ""
# Bocha Web Search API
BOCHA_API_KEY: str = ""
BOCHA_WEB_SEARCH_URL: str = "https://api.bochaai.com/v1/web-search"
BOCHA_WEB_SEARCH_TIMEOUT_SECONDS: float = 30.0
@property
def SQLALCHEMY_DATABASE_URI(self) -> str:
db_password = quote_plus(self.DB_PASSWORD)