• Your Name's avatar
    Implement Phase 2 Claude provider improvements · 920fff5a
    Your Name authored
    Add three key improvements to ClaudeProviderHandler:
    
    1. Thinking Block Support (Phase 2.1):
       - Extract thinking/reasoning content from Claude API responses
       - Handle both 'thinking' and 'redacted_thinking' block types
       - Store thinking content in provider_options for downstream access
       - Reference: vendors/kilocode thinking support via AI SDK
    
    2. Tool Call Streaming (Phase 2.2):
       - Parse content_block_start events for tool_use blocks
       - Stream tool call arguments via input_json_delta events
       - Emit tool calls in OpenAI streaming format on content_block_stop
       - Reference: fine-grained-tool-streaming-2025-05-14 beta feature
    
    3. Detailed Usage Metadata (Phase 2.3):
       - Extract cache_read_input_tokens from API response
       - Extract cache_creation_input_tokens from API response
       - Add prompt_tokens_details and completion_tokens_details to usage
       - Log cache usage for analytics
       - Reference: vendors/kilocode session/index.ts usage extraction
    
    All methods integrated into _convert_to_openai_format() and
    _handle_streaming_request() for automatic application.
    920fff5a
Name
Last commit
Last update
aisbf Loading commit data...
config Loading commit data...
docs Loading commit data...
static Loading commit data...
templates Loading commit data...
.gitignore Loading commit data...
.providers.json.swp Loading commit data...
=0.5.0 Loading commit data...
AI.PROMPT Loading commit data...
API_EXAMPLES.md Loading commit data...
CHANGELOG.md Loading commit data...
CLAUDE_OAUTH2_DEEP_DIVE.md Loading commit data...
CLAUDE_OAUTH2_SETUP.md Loading commit data...
DEBUG_GUIDE.md Loading commit data...
DOCUMENTATION.md Loading commit data...
LICENSE.txt Loading commit data...
MANIFEST.in Loading commit data...
PYPI.md Loading commit data...
README.md Loading commit data...
TODO.md Loading commit data...
aisbf.sh Loading commit data...
build.sh Loading commit data...
clean.sh Loading commit data...
cli.py Loading commit data...
main.py Loading commit data...
pyproject.toml Loading commit data...
requirements.txt Loading commit data...
screenshot.png Loading commit data...
setup.py Loading commit data...
start_proxy.sh Loading commit data...
test_google.sh Loading commit data...
test_kiro_models_origin.py Loading commit data...
test_proxy.sh Loading commit data...
test_response_cache.py Loading commit data...