Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
ghmark675
2025-11-06 17:21:47 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c6deecd56834337d48b51c3aab3dc556ee7837e1
c6deecd5
1 parent
caa6c488
fix(env): fix report agent api key error
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
InsightEngine/agent.py
ReportEngine/agent.py
InsightEngine/agent.py
View file @
c6deecd
...
...
@@ -779,5 +779,5 @@ def create_agent(config_file: Optional[str] = None) -> DeepSearchAgent:
Returns:
DeepSearchAgent实例
"""
config
=
settings
config
=
Settings
()
return
DeepSearchAgent
(
config
)
...
...
ReportEngine/agent.py
View file @
c6deecd
...
...
@@ -138,7 +138,7 @@ class ReportAgent:
self
.
state
=
ReportState
()
# 确保输出目录存在
os
.
makedirs
(
se
ttings
.
OUTPUT_DIR
,
exist_ok
=
True
)
os
.
makedirs
(
se
lf
.
config
.
OUTPUT_DIR
,
exist_ok
=
True
)
logger
.
info
(
"Report Agent已初始化"
)
logger
.
info
(
f
"使用LLM: {self.llm_client.get_model_info()}"
)
...
...
@@ -146,11 +146,11 @@ class ReportAgent:
def
_setup_logging
(
self
):
"""设置日志"""
# 确保日志目录存在
log_dir
=
os
.
path
.
dirname
(
se
ttings
.
LOG_FILE
)
log_dir
=
os
.
path
.
dirname
(
se
lf
.
config
.
LOG_FILE
)
os
.
makedirs
(
log_dir
,
exist_ok
=
True
)
# 创建专用的logger,避免与其他模块冲突
logger
.
add
(
se
ttings
.
LOG_FILE
,
level
=
"INFO"
)
logger
.
add
(
se
lf
.
config
.
LOG_FILE
,
level
=
"INFO"
)
def
_initialize_file_baseline
(
self
):
"""初始化文件数量基准"""
...
...
@@ -164,9 +164,9 @@ class ReportAgent:
def
_initialize_llm
(
self
)
->
LLMClient
:
"""初始化LLM客户端"""
return
LLMClient
(
api_key
=
settings
.
REPORT_ENGINE_API_KEY
,
model_name
=
settings
.
REPORT_ENGINE_MODEL_NAME
,
base_url
=
settings
.
REPORT_ENGINE_BASE_URL
,
api_key
=
self
.
config
.
REPORT_ENGINE_API_KEY
,
model_name
=
self
.
config
.
REPORT_ENGINE_MODEL_NAME
,
base_url
=
self
.
config
.
REPORT_ENGINE_BASE_URL
,
)
def
_initialize_nodes
(
self
):
...
...
Please
register
or
login
to post a comment