(model: str, fallback_credit_token: str | None = None)
| 55 | |
| 56 | |
| 57 | def refusal(model: str, fallback_credit_token: str | None = None) -> httpx.Response: |
| 58 | return message( |
| 59 | model, |
| 60 | stop_reason="refusal", |
| 61 | stop_details={ |
| 62 | "type": "refusal", |
| 63 | "category": None, |
| 64 | "explanation": None, |
| 65 | "fallback_credit_token": fallback_credit_token, |
| 66 | }, |
| 67 | ) |
| 68 | |
| 69 | |
| 70 | class MockRequestCall(Protocol): |
no test coverage detected