Skip to content

Feature Request: Set request timeout for Mindee client at runtime #249

@m3thom

Description

@m3thom

Hello,

Currently, the request timeout for the Mindee client can only be set with the ENV MINDEE_V2_REQUEST_TIMEOUT.

For my application, I would like to use different request timeouts for different OCR processes.

Is it possible to make the request timeout settable at runtime?

The new Client API would look like this.

api_key = 'MY_API_KEY'
mindee_client_default = Mindee::ClientV2.new(api_key: api_key)

mindee_client_one = Mindee::ClientV2.new(api_key: api_key, request_timeout: 180)

mindee_client_two = Mindee::ClientV2.new(api_key: api_key, request_timeout: 300)

Thank you for your consideration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions