Skip to content

[Feature]模型重试日志可以更详细 #9453

Description

@W-yi-X

Description / 描述

在日志中会发现
[Core][WARN][v4.26.6] [sources.request_retry:68]: [OpenAI] Request failed with retryable error; retrying (2/5): Error code: 429 - {'error': {'message': '该模型当前访问量过大,请您稍后再试', 'type': 'upstream_error', 'param': '', 'code': '1305'}}
这样的日志。虽然可以知道有供应商挂了,但是不知道是哪家挂了,希望在报错时传入模型和供应商的id

Use Case / 使用场景

快速判断哪个模型出现问题,替换不可用模型

Willing to Submit PR? / 是否愿意提交PR?

  • Yes, I am willing to submit a PR. / 是的,我愿意提交 PR。

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:providerThe bug / feature is about AI Provider, Models, LLM Agent, LLM Agent Runner.enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions