• dconathan's avatar
    feat(python-client): add cookies to Client constructors and requests (#132) · 78501190
    dconathan authored
    I have a use case where we need to pass cookies (for auth reasons) to an
    internally hosted server.
    
    Note: I couldn't get the client tests to pass - do you need to have an
    HF token?
    
    ```python
    FAILED tests/test_client.py::test_generate - text_generation.errors.BadRequestError: Authorization header is correct, but the token seems invalid
    ```
    78501190
inference_api.py 5.16 KB