Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tee_gateway/llm_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
logger = logging.getLogger(__name__)

# HTTP Client Configuration
ANTHROPIC_TIMEOUT = 120.0
READ_TIMEOUT = 180.0

_TIMEOUT = httpx.Timeout(
timeout=120.0,
connect=15.0,
read=60.0,
read=READ_TIMEOUT,
write=60.0,
pool=10.0,
)
Expand Down Expand Up @@ -242,7 +242,7 @@ def get_chat_model_cached(
api_key=SecretStr(config.anthropic_api_key),
temperature=anthropic_temperature,
max_tokens=max_tokens,
timeout=ANTHROPIC_TIMEOUT,
timeout=READ_TIMEOUT,
streaming=True,
stream_usage=True,
) # type: ignore [call-arg]
Expand Down
Loading