perf: mcp save raw schema (#5030)

* perf: mcp save raw schema

* fix: test

* code

* perf: json schema test

* perf: mcp
This commit is contained in:
Archer
2025-06-13 18:46:55 +08:00
committed by GitHub
parent 0914eacb5e
commit 9d6a48a62f
35 changed files with 424 additions and 415 deletions

View File

@@ -4,10 +4,10 @@ import { type StoreSecretValueType } from '@fastgpt/global/common/secret/type';
import { HeaderSecretTypeEnum } from '@fastgpt/global/common/secret/constants';
export const storeSecretValue = (
storeSecret: StoreSecretValueType
storeSecret: StoreSecretValueType = {}
): Record<string, SecretValueType> => {
return Object.fromEntries(
Object.entries(storeSecret || {}).map(([key, value]) => [
Object.entries(storeSecret).map(([key, value]) => [
key,
{
secret: encryptSecret(value.value),