perf: outlink config (#3128)

* update action

* perf: outlink config
This commit is contained in:
Archer
2024-11-12 15:56:53 +08:00
committed by archer
parent 73d28d1fc3
commit 5e273341dd
38 changed files with 469 additions and 537 deletions

View File

@@ -90,6 +90,7 @@ export const chats2GPTMessages = ({
}
} else {
const aiResults: ChatCompletionMessageParam[] = [];
//AI
item.value.forEach((value, i) => {
if (value.type === ChatItemValueTypeEnum.tool && value.tools && reserveTool) {
@@ -130,7 +131,7 @@ export const chats2GPTMessages = ({
if (
lastValue &&
lastValue.type === ChatItemValueTypeEnum.text &&
typeof lastResult.content === 'string'
typeof lastResult?.content === 'string'
) {
lastResult.content += value.text.content;
} else {