refactor(backend/chat): Remove unused max_context_messages config

This commit is contained in:
Zamil Majdy
2026-02-10 13:57:33 +04:00
parent 43153a12e0
commit 8d7d531ae0
2 changed files with 0 additions and 10 deletions

View File

@@ -27,15 +27,6 @@ class ChatConfig(BaseSettings):
session_ttl: int = Field(default=43200, description="Session TTL in seconds")
# Streaming Configuration
# Only used by the non-SDK fallback path (Anthropic direct).
# The SDK path passes full history and relies on SDK's built-in compaction.
max_context_messages: int = Field(
default=100,
ge=1,
le=500,
description="Max context messages for non-SDK fallback path only",
)
stream_timeout: int = Field(default=300, description="Stream timeout in seconds")
max_retries: int = Field(
default=3,

View File

@@ -368,7 +368,6 @@ async def stream_chat_completion(
Raises:
NotFoundError: If session_id is invalid
ValueError: If max_context_messages is exceeded
"""
completion_start = time.monotonic()