ccproxy.models.detection¶
ccproxy.models.detection
¶
Detection models for Claude Code CLI headers and system prompt extraction.
ClaudeCodeHeaders
¶
Bases: BaseModel
Pydantic model for Claude CLI headers extraction with field aliases.
to_headers_dict
¶
Convert to headers dictionary for HTTP forwarding with proper case.
Source code in ccproxy/models/detection.py
CodexHeaders
¶
Bases: BaseModel
Pydantic model for Codex CLI headers extraction with field aliases.
to_headers_dict
¶
Convert to headers dictionary for HTTP forwarding with proper case.