From 3566a776227e24d0edf3749dfeadbcd6e50726fa Mon Sep 17 00:00:00 2001 From: Fan's Mac Date: Sun, 31 Aug 2025 22:29:48 +0800 Subject: [PATCH] mod ApiDialog.vue file,Add whitespace filtering: trim base URL and model ID, remove all spaces from API key --- backend/.env.dev.example | 1 + backend/app/core/workflow.py | 2 +- frontend/src/pages/chat/components/ApiDialog.vue | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/backend/.env.dev.example b/backend/.env.dev.example index a1fd6f1..a19668e 100644 --- a/backend/.env.dev.example +++ b/backend/.env.dev.example @@ -29,6 +29,7 @@ MAX_RETRIES=5 # E2B_API_KEY= SERVER_HOST=http://localhost:8000 # 使用 email 注册账号从 https://openalex.org/ 文献 +# OPENALEX_EMAIL=example@example.com OPENALEX_EMAIL= LOG_LEVEL=DEBUG diff --git a/backend/app/core/workflow.py b/backend/app/core/workflow.py index 650ec1b..d7a016d 100644 --- a/backend/app/core/workflow.py +++ b/backend/app/core/workflow.py @@ -81,7 +81,7 @@ class MathModelWorkFlow(WorkFlow): notebook_serializer=notebook_serializer, timeout=3000, ) - + scholar = OpenAlexScholar(task_id=self.task_id, email=settings.OPENALEX_EMAIL) await redis_manager.publish_message( diff --git a/frontend/src/pages/chat/components/ApiDialog.vue b/frontend/src/pages/chat/components/ApiDialog.vue index cc65754..37f72b3 100644 --- a/frontend/src/pages/chat/components/ApiDialog.vue +++ b/frontend/src/pages/chat/components/ApiDialog.vue @@ -267,7 +267,7 @@ const links = {
-
@@ -280,12 +280,12 @@ const links = {
-
-