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
56f85b14
Commit
56f85b14
authored
Sep 23, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:【【POE】-【个人空间】删除应用之后,原来的应用链接应不可使用】
--bug==1009110
parent
b8c57487
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
11 deletions
+17
-11
AgentApplicationInfoServiceImpl.java
...ation/aggregate/impl/AgentApplicationInfoServiceImpl.java
+12
-11
AgentApplicationInfoRestImpl.java
...t_application/rest/impl/AgentApplicationInfoRestImpl.java
+5
-0
No files found.
src/main/java/cn/com/poc/agent_application/aggregate/impl/AgentApplicationInfoServiceImpl.java
View file @
56f85b14
...
@@ -372,19 +372,20 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
...
@@ -372,19 +372,20 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
PrintWriter
writer
=
httpServletResponse
.
getWriter
();
PrintWriter
writer
=
httpServletResponse
.
getWriter
();
StringBuilder
output
=
new
StringBuilder
();
StringBuilder
output
=
new
StringBuilder
();
while
((
res
=
bufferedReader
.
readLine
())
!=
null
)
{
while
((
res
=
bufferedReader
.
readLine
())
!=
null
)
{
if
(
StringUtils
.
isNotBlank
(
res
))
{
if
(
StringUtils
.
isBlank
(
res
))
{
LargeModelDemandResult
result
=
JsonUtils
.
deSerialize
(
res
.
replaceFirst
(
EVENT_STREAM_PREFIX
,
StringUtils
.
EMPTY
),
LargeModelDemandResult
.
class
);
continue
;
if
(!
"0"
.
equals
(
result
.
getCode
()))
{
}
logger
.
error
(
"LLM Error,code:{}"
,
result
.
getCode
());
LargeModelDemandResult
result
=
JsonUtils
.
deSerialize
(
res
.
replaceFirst
(
EVENT_STREAM_PREFIX
,
StringUtils
.
EMPTY
),
LargeModelDemandResult
.
class
);
BusinessException
ex
=
new
BusinessException
(
"调用失败"
);
if
(!
"0"
.
equals
(
result
.
getCode
()))
{
writer
.
write
(
EVENT_STREAM_PREFIX
+
JsonUtils
.
serialize
(
ex
)
+
"\n\n"
);
logger
.
error
(
"LLM Error,code:{}"
,
result
.
getCode
());
writer
.
flush
();
BusinessException
ex
=
new
BusinessException
(
"调用失败"
);
throw
ex
;
writer
.
write
(
EVENT_STREAM_PREFIX
+
JsonUtils
.
serialize
(
ex
)
+
"\n\n"
);
}
output
.
append
(
result
.
getMessage
());
writer
.
write
(
res
+
"\n\n"
);
writer
.
flush
();
writer
.
flush
();
throw
ex
;
}
}
output
.
append
(
result
.
getMessage
());
writer
.
write
(
res
+
"\n\n"
);
writer
.
flush
();
}
}
writer
.
write
(
EVENT_STREAM_PREFIX
+
"[DONE]\n\n"
);
writer
.
write
(
EVENT_STREAM_PREFIX
+
"[DONE]\n\n"
);
// 关闭资源
// 关闭资源
...
...
src/main/java/cn/com/poc/agent_application/rest/impl/AgentApplicationInfoRestImpl.java
View file @
56f85b14
...
@@ -12,6 +12,7 @@ import cn.com.poc.agent_application.query.AgentApplicationInfoQueryCondition;
...
@@ -12,6 +12,7 @@ import cn.com.poc.agent_application.query.AgentApplicationInfoQueryCondition;
import
cn.com.poc.agent_application.rest.AgentApplicationInfoRest
;
import
cn.com.poc.agent_application.rest.AgentApplicationInfoRest
;
import
cn.com.poc.agent_application.service.BizAgentApplicationInfoService
;
import
cn.com.poc.agent_application.service.BizAgentApplicationInfoService
;
import
cn.com.poc.agent_application.service.BizAgentApplicationLargeModelListService
;
import
cn.com.poc.agent_application.service.BizAgentApplicationLargeModelListService
;
import
cn.com.poc.agent_application.service.BizAgentApplicationPublishService
;
import
cn.com.poc.common.utils.BlContext
;
import
cn.com.poc.common.utils.BlContext
;
import
cn.com.poc.support.security.oauth.entity.UserBaseEntity
;
import
cn.com.poc.support.security.oauth.entity.UserBaseEntity
;
import
cn.com.yict.framemax.core.exception.BusinessException
;
import
cn.com.yict.framemax.core.exception.BusinessException
;
...
@@ -39,6 +40,9 @@ public class AgentApplicationInfoRestImpl implements AgentApplicationInfoRest {
...
@@ -39,6 +40,9 @@ public class AgentApplicationInfoRestImpl implements AgentApplicationInfoRest {
@Resource
@Resource
private
AgentApplicationInfoService
agentApplicationInfoService
;
private
AgentApplicationInfoService
agentApplicationInfoService
;
@Resource
private
BizAgentApplicationPublishService
bizAgentApplicationPublishService
;
@Resource
@Resource
private
BizAgentApplicationLargeModelListService
bizAgentApplicationLargeModelListService
;
private
BizAgentApplicationLargeModelListService
bizAgentApplicationLargeModelListService
;
...
@@ -99,6 +103,7 @@ public class AgentApplicationInfoRestImpl implements AgentApplicationInfoRest {
...
@@ -99,6 +103,7 @@ public class AgentApplicationInfoRestImpl implements AgentApplicationInfoRest {
public
void
delete
(
String
agentId
)
throws
Exception
{
public
void
delete
(
String
agentId
)
throws
Exception
{
Assert
.
notNull
(
agentId
);
Assert
.
notNull
(
agentId
);
bizAgentApplicationInfoService
.
deletedByAgentId
(
agentId
);
bizAgentApplicationInfoService
.
deletedByAgentId
(
agentId
);
bizAgentApplicationPublishService
.
deleteByAgentId
(
agentId
);
}
}
@Override
@Override
...
...
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