Skip to content

Remove unused LLM timeout config fields (request_timeout, llm_stream_timeout) #7424

Done

Description

@foolish-dev

Summary

LLMConfig.request_timeout and LLMConfig.llm_stream_timeout in src/config.py (the LLM_-prefixed BaseSettings) are never read anywhere in the codebase. The LLM timeouts actually in effect come from the separate LLMConfig in src/llm_core.py (CONNECT_TIMEOUT, DEFAULT_TIMEOUT). The two config.py fields are vestigial.

Details

  • No attribute access (.request_timeout / .llm_stream_timeout) exists anywhere outside the definition.
  • Not referenced in .env.example or docs.
  • The config object is not serialized wholesale to any API response, so removing them changes no output.
  • pydantic-settings ignores unknown env vars, so a stray LLM_REQUEST_TIMEOUT stays a harmless no-op (it already was, since nothing read it).

Proposing to drop both fields to keep the LLM config surface honest.

Activity

  1. added
    ready for review
    on Nov 28, 2026
  2. foolish-dev commented on Nov 29, 2026

    @foolish-dev
    Author

    Closing — not pursuing a PR for this right now. The two fields (request_timeout, llm_stream_timeout in src/config.py) are unused and remain safe to remove whenever someone picks it up.

  3. removed
    ready for review
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions