mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 04:00:36 +00:00
feat: add custom message for 429 errors (#1366)
This commit is contained in:
parent
f7caca5f94
commit
d3f13c71ae
6 changed files with 133 additions and 25 deletions
|
|
@ -128,7 +128,12 @@ export async function runNonInteractive(
|
|||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(parseAndFormatApiError(error));
|
||||
console.error(
|
||||
parseAndFormatApiError(
|
||||
error,
|
||||
config.getContentGeneratorConfig().authType,
|
||||
),
|
||||
);
|
||||
process.exit(1);
|
||||
} finally {
|
||||
if (isTelemetrySdkInitialized()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue