update server/routers/back-new/features/image/image.controller.js
This commit is contained in:
@@ -7,7 +7,7 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
||||
|
||||
// 获取GigaChat access_token,严格按官方文档
|
||||
async function getGigaChatToken() {
|
||||
const apiKey = process.env.GIGACHAT_API_KEY || 'KEYVALUE';
|
||||
const apiKey = '78359123-4447-481a-9028-861f53b24ed1:04a4f1e9-1349-4a84-85f9-0c6c687c0974';
|
||||
const scope = process.env.GIGACHAT_SCOPE || 'GIGACHAT_API_PERS';
|
||||
if (!apiKey) throw new Error('GIGACHAT_API_KEY 未配置');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user