Skip to content

P0: LLM Provider HTTP 错误静默失败 — 无重试、无错误分类 #1

Description

@ULookup

问题

OpenAIProviderAnthropicProvider 只检查 CURLE_OK,不读取 HTTP 状态码。429/401/5xx 全部静默返回 0 tokens。

根因

curl_easy_getinfo(CURLINFO_RESPONSE_CODE) 从未被调用。max_retries = 3 配置字段从不使用。

涉及文件

  • libs/core/include/merak/error_kind.hpp (新增)
  • libs/llm/src/openai_provider.cpp
  • libs/llm/src/anthropic_provider.cpp

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority/P0Critical, must fix immediatelysubsystem/llmLLM providers and API clients

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions