Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
1d740957
authored
May 15, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temp
parent
ca99837d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/service/utils/chat/claude.ts
+2
-2
No files found.
src/service/utils/chat/claude.ts
View file @
1d740957
...
@@ -25,9 +25,9 @@ export const lafClaudChat = async ({
...
@@ -25,9 +25,9 @@ export const lafClaudChat = async ({
.
filter
((
item
)
=>
item
.
obj
===
'System'
)
.
filter
((
item
)
=>
item
.
obj
===
'System'
)
.
map
((
item
)
=>
item
.
value
)
.
map
((
item
)
=>
item
.
value
)
.
join
(
'\n'
);
.
join
(
'\n'
);
const
systemPromptText
=
systemPrompt
?
`你本次知识:
${
systemPrompt
}
\n`
:
''
;
const
systemPromptText
=
systemPrompt
?
`你本次知识:
${
systemPrompt
}
\n
下面是我的问题:
`
:
''
;
const
prompt
=
`
${
systemPromptText
}
我的问题是:
'
${
messages
[
messages
.
length
-
1
].
value
}
'`
;
const
prompt
=
`
${
systemPromptText
}
'
${
messages
[
messages
.
length
-
1
].
value
}
'`
;
const
lafResponse
=
await
axios
.
post
(
const
lafResponse
=
await
axios
.
post
(
process
.
env
.
CLAUDE_BASE_URL
||
''
,
process
.
env
.
CLAUDE_BASE_URL
||
''
,
...
...
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