Skip to content

Add LLM API timeout #2

@Gautam2086

Description

@Gautam2086

Problem

OpenRouter API calls have no timeout, could hang indefinitely.

Proposed Solution

  • Add timeout= 30 to OpenAI client calls
  • Gracefully fallback on timeout

Files to modify

  • app/services/llm_client.py

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions