mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-10 14:55:16 -05:00
refactor(backend/chat): Remove unused max_context_messages config
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user