AnyVar Client Configuration

AnyVLM employs an AnyVar for internal variant storage. AnyVLM defines an internal client abstraction to either connect to AnyVar via HTTP request (HttpAnyVarClient) or by instantiating the AnyVar within the AnyVLM process (PythonAnyVarClient). The client instance is constructed by the create_anyvar_client() factory function which references the ANYVAR_URI environmental variable to determine the kind of client.

  • If ANYVAR_URI looks like an HTTP URL (i.e. it starts with "http://" or "https://"), then an HTTP-based client is constructed

  • Otherwise, a client will create and manage an AnyVar instance directly within the current process. This can be configured further by AnyVar’s own environment variable-based config system. See the AnyVar docs for more information.