(force_refresh: bool)
| 651 | ) |
| 652 | |
| 653 | def _send(force_refresh: bool) -> httpx.Response: |
| 654 | access_token = get_access_token(force_refresh=force_refresh) |
| 655 | req_headers = _build_headers(access_token) |
| 656 | return _http_post( |
| 657 | f"{api_url}/v1/messages?beta=true", |
| 658 | content=body_str, |
| 659 | headers=req_headers, |
| 660 | timeout=timeout or 600, |
| 661 | ) |
| 662 | |
| 663 | resp = with_retry_on_401(_send) |
| 664 |
nothing calls this directly
no test coverage detected