Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lmp_web
Project
Project
Details
Activity
Releases
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
yujian
lmp_web
Commits
a78b6a11
Commit
a78b6a11
authored
Dec 25, 2023
by
mhw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--
parent
f6417bf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
index.vue
...ing/modelService/testOnline/components/rightBox/index.vue
+1
-2
No files found.
src/views/gptTraining/modelService/testOnline/components/rightBox/index.vue
View file @
a78b6a11
...
...
@@ -167,7 +167,6 @@ export default {
let
temporary
=
JSON
.
parse
(
`[
${
data
}
]`
.
replace
(
/}{/g
,
'},{'
))
console
.
log
(
temporary
);
temporary
.
forEach
((
item
)
=>
{
this
.
modifyContent
(
item
)
// 修改返回内容
nowChat
.
excludeReferenceAnswer
+=
item
.
answer
||
''
// 排除回答中的引用内容
nowChat
.
answer
+=
item
.
answer
||
'
\
n'
+
item
.
docs
})
...
...
@@ -180,7 +179,7 @@ export default {
modifyContent
(
item
)
{
// 修改返回内容
if
(
item
.
docs
)
{
item
.
docs
=
item
.
docs
.
map
((
item2
)
=>
{
let
tagUrl
=
item2
.
match
(
/
\]\((
.*
?)\)
/g
)[
0
].
slice
(
2
,
-
1
)
let
tagUrl
=
item2
?
.
match
(
/
\]\((
.*
?)\)
/g
)[
0
].
slice
(
2
,
-
1
)
let
url
=
''
if
(
tagUrl
.
indexOf
(
'https'
)
!==
-
1
)
{
url
=
tagUrl
.
replace
(
/^https:
\/\/[^/]
+
\/
/
,
`https://
${
window
.
location
.
hostname
}
:
${
window
.
location
.
port
}
/`
);
...
...
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