Spaces:
Running
Running
sync: upstream 9194f15 + custom addons (KeyRotator, RotatingChatTransport, sol/terra/luna, ScannerTrap, health, Py3.12 compat)
e99df76 Download src/free_claude_code/messaging/transcript/context.py from dherain24/claude-proxy: direct link, hf CLI and curl.
- Browser
- Download file 543 Bytes
-
https://huggingface.co/spaces/dherain24/claude-proxy/resolve/main/src/free_claude_code/messaging/transcript/context.py
- Command line
-
hf download hf://spaces/dherain24/claude-proxy/src/free_claude_code/messaging/transcript/context.py
-
curl -L -o context.py https://huggingface.co/spaces/dherain24/claude-proxy/resolve/main/src/free_claude_code/messaging/transcript/context.py
543 Bytes
| from __future__ import annotations | |
| """Rendering context used by transcript segments.""" | |
| from collections.abc import Callable | |
| from dataclasses import dataclass | |
| class RenderCtx: | |
| bold: Callable[[str], str] | |
| code_inline: Callable[[str], str] | |
| escape_code: Callable[[str], str] | |
| escape_text: Callable[[str], str] | |
| render_markdown: Callable[[str], str] | |
| thinking_tail_max: int | None = 1000 | |
| tool_input_tail_max: int | None = 1200 | |
| tool_output_tail_max: int | None = 1600 | |
| text_tail_max: int | None = 2000 | |