AI 服务商页面报错,无法配置模型 #8645
Answered
by
tjx666
TinsFox
asked this question in
Self Hosting
AI 服务商页面报错,无法配置模型
#8645
-
|
根据文档 https://lobehub.com/zh/docs/self-hosting/server-database/vercel 部署了 lobecaht 数据库用的是 Neon 其他的跟文档相同 接口是 trpc/lambda/aiProvider.getAiProviderList 返回的内容是 [
{
"error": {
"json": {
"message": "Invalid key length",
"code": -32603,
"data": {
"code": "INTERNAL_SERVER_ERROR",
"httpStatus": 500,
"path": "aiProvider.getAiProviderList"
}
}
}
},
{
"error": {
"json": {
"message": "Invalid key length",
"code": -32603,
"data": {
"code": "INTERNAL_SERVER_ERROR",
"httpStatus": 500,
"path": "aiProvider.getAiProviderRuntimeState"
}
}
}
}
]``` |
Beta Was this translation helpful? Give feedback.
Answered by
tjx666
Aug 3, 2025
Replies: 2 comments 1 reply
-
|
vercel 的日志 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
确定 KEY_VAULTS_SECRET 这个环境变量配置没问题吗? 建议使用 ❯ openssl rand -base64 32
fhilf7SSk1MaWJV6qNYschZHkYTsTj9UdSS9TK+2AhQ= |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TinsFox
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

确定 KEY_VAULTS_SECRET 这个环境变量配置没问题吗?
建议使用
openssl rand -base64 32生成一个随机的 32 位字符串作为 KEY_VAULTS_SECRET 的值。https://lobehub.com/zh/docs/self-hosting/server-database/vercel#%E6%B7%BB%E5%8A%A0-key-vaults-secret-%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F