Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
Details
Activity
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
poc
poc-api
Commits
b9852218
Commit
b9852218
authored
May 08, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e112325f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
AgentApplicationInfoRestImpl.java
...t_application/rest/impl/AgentApplicationInfoRestImpl.java
+1
-1
AgentApplicationExposeServiceImpl.java
...ose/aggregate/impl/AgentApplicationExposeServiceImpl.java
+1
-1
OCRClient.java
...urce/demand/ai/function/text_in_pdf2md/api/OCRClient.java
+1
-1
No files found.
src/main/java/cn/com/poc/agent_application/rest/impl/AgentApplicationInfoRestImpl.java
View file @
b9852218
...
...
@@ -245,7 +245,7 @@ public class AgentApplicationInfoRestImpl implements AgentApplicationInfoRest {
throw
new
I18nMessageException
(
"exception/application.does.not.exist"
);
}
// 判断文件是否为空,如果不为空
AgentApplicationTools
.
checkDialogueContentIsEmpty
(
fileUrls
);
//
AgentApplicationTools.checkDialogueContentIsEmpty(fileUrls);
//获取知识库配置
List
<
Integer
>
kdIds
=
knowledgeService
.
getKdIdsByKnowledgeInfoIds
(
infoEntity
.
getKnowledgeIds
());
...
...
src/main/java/cn/com/poc/expose/aggregate/impl/AgentApplicationExposeServiceImpl.java
View file @
b9852218
...
...
@@ -124,7 +124,7 @@ public class AgentApplicationExposeServiceImpl implements AgentApplicationExpose
}
// 判断文件是否为空,如果不为空
AgentApplicationTools
.
checkDialogueContentIsEmpty
(
fileUrls
);
//
AgentApplicationTools.checkDialogueContentIsEmpty(fileUrls);
if
(
StringUtils
.
isBlank
(
dialogsId
))
{
// 用于针对只有单Agent应用分享使用的场景,dialogsId为空
...
...
src/main/java/cn/com/poc/thirdparty/resource/demand/ai/function/text_in_pdf2md/api/OCRClient.java
View file @
b9852218
...
...
@@ -45,7 +45,7 @@ public class OCRClient {
connection
.
setRequestMethod
(
"POST"
);
connection
.
setRequestProperty
(
"x-ti-app-id"
,
appId
);
connection
.
setRequestProperty
(
"x-ti-secret-code"
,
secretCode
);
connection
.
setRequestProperty
(
"Content-Type"
,
"text/plain"
);
connection
.
setRequestProperty
(
"Content-Type"
,
"text/plain
;charset=utf-8
"
);
connection
.
setDoOutput
(
true
);
try
(
OutputStream
os
=
connection
.
getOutputStream
())
{
os
.
write
(
fileContent
);
...
...
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