Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
cbc14bfe
Commit
cbc14bfe
authored
Jun 13, 2025
by
黄泳凯
Browse files
Fix:Error code:500,param:Request timed out, please try again later.
parent
c5480b9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
mineru/utils/llm_aided.py
mineru/utils/llm_aided.py
+5
-1
No files found.
mineru/utils/llm_aided.py
View file @
cbc14bfe
...
...
@@ -85,8 +85,12 @@ Corrected title list:
messages
=
[
{
'role'
:
'user'
,
'content'
:
title_optimize_prompt
}],
temperature
=
0.7
,
stream
=
True
,
)
content
=
completion
.
choices
[
0
].
message
.
content
.
strip
()
content
=
""
for
chunk
in
completion
:
if
chunk
.
choices
:
content
+=
chunk
.
choices
[
0
].
delta
.
content
# logger.info(f"Title completion: {content}")
if
"</think>"
in
content
:
idx
=
content
.
index
(
"</think>"
)
+
len
(
"</think>"
)
...
...
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