mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-06-02 06:13:46 +02:00
885c26d977
Include copyable upstream status and error bodies in provider SSE failures for OpenAI-compatible and native Anthropic transports, while preserving retry behavior and safe logging defaults.
14 lines
560 B
Python
14 lines
560 B
Python
"""Shared defaults used by config models and provider adapters."""
|
|
|
|
# HTTP client connect timeout (seconds). Keep aligned with README.md and .env.example.
|
|
HTTP_CONNECT_TIMEOUT_DEFAULT = 10.0
|
|
|
|
# Anthropic Messages API default when the client omits max_tokens.
|
|
ANTHROPIC_DEFAULT_MAX_OUTPUT_TOKENS = 81920
|
|
|
|
# Max bytes read from a non-200 native messages response when verbose error logging is on.
|
|
NATIVE_MESSAGES_ERROR_BODY_LOG_CAP_BYTES = 4096
|
|
|
|
# Max upstream error bytes shown to users for copy/paste diagnostics.
|
|
PROVIDER_ERROR_BODY_DISPLAY_CAP_BYTES = 16384
|