lobe-chat icon indicating copy to clipboard operation
lobe-chat copied to clipboard

智普的嵌入模型一直秘钥错误

Open webwww123 opened this issue 7 months ago • 5 comments

📦 Platform

Vercel

📦 Deploymenet mode

client db (lobe-chat image)

📌 Version

最新

💻 Operating System

Windows

🌐 Browser

Chrome, Edge

🐛 Bug Description

新增了vercel的环境变量DEFAULT_FILES_CONFIG=embedding_model=zhipu/embedding-3,reranker_model=zhipu/rerank,query_mode=full_text 还有一个ZHIPU_API_KEY 一直报错apikey不对

{ endpoint: 'https://open.bigmodel.cn/api/paas/v4', error: Error: 401 令牌已过期或验证不正确! at tH.generate (.next/server/chunks/50850.js:5:59351) at sa.makeStatusError (.next/server/chunks/50850.js:5:73758) at sa.makeRequest (.next/server/chunks/50850.js:5:74702) at async Object.embeddings (.next/server/chunks/75502.js:1:9078) at async (.next/server/chunks/38964.js:1:32514) at async a.middlewares (.next/server/chunks/54015.js:1:13112) at async f (.next/server/chunks/54015.js:4:68) at async f (.next/server/chunks/54015.js:4:68) at async f (.next/server/chunks/54015.js:4:68) { status: 401, headers: { connection: 'keep-alive', 'content-length': '73', 'content-type': 'application/json', date: 'Thu, 27 Mar 2025 03:33:00 GMT', server: 'ZenZGA/2.4', 'strict-transport-security': 'max-age=31536000; includeSubDomains', vary: 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers', 'x-log-id': '20250327113300021b615f89174f53' }, request_id: undefined, error: { code: '401', message: '令牌已过期或验证不正确!' }, code: '401', param: undefined, type: undefined }, errorType: 'InvalidProviderAPIKey', provider: 'zhipu' }

还有一个报错:

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

webwww123 avatar Mar 27 '25 03:03 webwww123