kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
old-agentic-v1^2
rodzic
e1d69b442a
commit
f13c115a1e
|
@ -141,7 +141,10 @@ export abstract class BaseTask<
|
||||||
...this._retryConfig,
|
...this._retryConfig,
|
||||||
onFailedAttempt: async (err: FailedAttemptError) => {
|
onFailedAttempt: async (err: FailedAttemptError) => {
|
||||||
this._logger.warn(
|
this._logger.warn(
|
||||||
`Task "${this.nameForModel}" failed attempt ${err.attemptNumber}: ${err.message}`
|
err,
|
||||||
|
`Task error "${this.nameForHuman}" failed attempt ${
|
||||||
|
err.attemptNumber
|
||||||
|
}: ${JSON.stringify(input)}`
|
||||||
)
|
)
|
||||||
|
|
||||||
if (this._retryConfig.onFailedAttempt) {
|
if (this._retryConfig.onFailedAttempt) {
|
||||||
|
|
Ładowanie…
Reference in New Issue