chore: 移除Grok API的初始使用量同步调用
移除初始化时自动获取使用量限制的逻辑,避免因API调用失败导致的警告日志干扰
This commit is contained in:
parent
19b81381b8
commit
d15de54e79
2 changed files with 10 additions and 6 deletions
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
||||||
2.11.7
|
2.11.7.2
|
||||||
|
|
|
||||||
|
|
@ -178,14 +178,18 @@ export class GrokApiService {
|
||||||
async initialize() {
|
async initialize() {
|
||||||
if (this.isInitialized) return;
|
if (this.isInitialized) return;
|
||||||
this.isInitialized = true;
|
this.isInitialized = true;
|
||||||
this.getUsageLimits()
|
// this.getUsageLimits()
|
||||||
.catch((error) => {
|
// .catch((error) => {
|
||||||
logger.warn('[Grok] Initial usage sync failed:', error.message);
|
// logger.warn('[Grok] Initial usage sync failed:', error.message);
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
async refreshToken() {
|
async refreshToken() {
|
||||||
try { await this.getUsageLimits(); return Promise.resolve(); } catch (error) { return Promise.reject(error); }
|
try {
|
||||||
|
// await this.getUsageLimits(); return Promise.resolve();
|
||||||
|
} catch (error) {
|
||||||
|
return Promise.reject(error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async getUsageLimits() {
|
async getUsageLimits() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue