feature/worker #111
@@ -7,7 +7,7 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
||||
|
||||
// 获取GigaChat access_token,严格按官方文档
|
||||
async function getGigaChatToken() {
|
||||
const apiKey = process.env.GIGACHAT_API_KEY;
|
||||
const apiKey = process.env.GIGACHAT_API_KEY || 'KEYVALUE';
|
||||
const scope = process.env.GIGACHAT_SCOPE || 'GIGACHAT_API_PERS';
|
||||
if (!apiKey) throw new Error('GIGACHAT_API_KEY 未配置');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user