Skip to content

KimiClient chat method throws timeout error on large responses #18

@xiaoju111a

Description

@xiaoju111a

Description

When using the /review command on large PRs, the KimiClient.chat() method sometimes throws a timeout error before receiving the full response from the Kimi API.

Steps to Reproduce

  1. Create a PR with 10+ files changed
  2. Run /review command
  3. Wait for response
  4. Error occurs after ~30 seconds

Expected Behavior

The kimi_client.py should handle large responses properly with appropriate timeout settings.

Actual Behavior

TimeoutError: Request timed out after 30s
File "src/kimi_client.py", line 45, in chat

Environment

  • Action version: v1.1.0
  • Model: kimi-k2-turbo-preview

Possible Fix

Maybe increase timeout in TokenHandler or add retry logic in call_kimi method of BaseTool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions