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
666ghj
2025-11-04 00:08:07 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e1c201afc952ba1726f34b3333985784d2ff3020
e1c201af
1 parent
62fac9ee
Increase LLM timeout for report agent to improve fault tolerance.
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
ReportEngine/llms/base.py
ReportEngine/llms/base.py
View file @
e1c201a
...
...
@@ -38,11 +38,11 @@ class LLMClient:
self
.
base_url
=
base_url
self
.
model_name
=
model_name
self
.
provider
=
model_name
timeout_fallback
=
os
.
getenv
(
"LLM_REQUEST_TIMEOUT"
)
or
os
.
getenv
(
"REPORT_ENGINE_REQUEST_TIMEOUT"
)
or
"
18
00"
timeout_fallback
=
os
.
getenv
(
"LLM_REQUEST_TIMEOUT"
)
or
os
.
getenv
(
"REPORT_ENGINE_REQUEST_TIMEOUT"
)
or
"
30
00"
try
:
self
.
timeout
=
float
(
timeout_fallback
)
except
ValueError
:
self
.
timeout
=
18
00.0
self
.
timeout
=
30
00.0
client_kwargs
:
Dict
[
str
,
Any
]
=
{
"api_key"
:
api_key
,
...
...
Please
register
or
login
to post a comment