Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LLM-Filter
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2026_NGIT
LLM-Filter
Commits
adff7ae9
Commit
adff7ae9
authored
Dec 04, 2025
by
uuo00_n
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(core): 添加CORS和GitHub相关配置项
parent
28ce2b74
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
0 deletions
+4
-0
conversation.cpython-39.pyc
app/api/v1/__pycache__/conversation.cpython-39.pyc
+0
-0
config.cpython-39.pyc
app/core/__pycache__/config.cpython-39.pyc
+0
-0
config.py
app/core/config.py
+4
-0
conversation.cpython-39.pyc
app/schemas/__pycache__/conversation.cpython-39.pyc
+0
-0
conversation.cpython-39.pyc
app/services/__pycache__/conversation.cpython-39.pyc
+0
-0
No files found.
app/api/v1/__pycache__/conversation.cpython-39.pyc
View file @
adff7ae9
No preview for this file type
app/core/__pycache__/config.cpython-39.pyc
View file @
adff7ae9
No preview for this file type
app/core/config.py
View file @
adff7ae9
...
...
@@ -28,4 +28,8 @@ class Settings(BaseSettings):
# 允许的值:"edu" / "biz";若未设置则默认使用 "edu"
# 注意:不再提供混合模式(mixed),如需混合请显式设置并在依赖中放行
APP_MODE
:
str
=
os
.
getenv
(
"APP_MODE"
,
"edu"
)
CORS_ALLOWED_ORIGINS
:
str
=
os
.
getenv
(
"CORS_ALLOWED_ORIGINS"
,
"*"
)
GITHUB_DEFAULT_REPO
:
str
=
os
.
getenv
(
"GITHUB_DEFAULT_REPO"
,
""
)
GITHUB_TOKEN
:
str
=
os
.
getenv
(
"GITHUB_TOKEN"
,
""
)
settings
=
Settings
()
app/schemas/__pycache__/conversation.cpython-39.pyc
View file @
adff7ae9
No preview for this file type
app/services/__pycache__/conversation.cpython-39.pyc
View file @
adff7ae9
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment