Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Toward 1.4.0 (findEmbeddingProviders; HCD namespace idioms; region/en…
…dpoint in DatabaseAdmin) (#293) * WIP structures and nonastra impl. docstrings + tests todo * rename list_EPs -> find_EPs; add warning for extra dict keys in parsing fEPs * __repr__ for findEmbeddingProviders dataclasses * simplified region autoguess; database holds api_endpoint property * id -> id-or-endpoint throughout admin classes; admin classes fully region-aware * admin fully endpoint- and region-aware, all tests passing * docstrings to all info.py findEPs objects * AstraDBDatabaseAdmin supports findEmbeddingProviders * add annotations import throughout * int. testing uses the datatabase admin to fetch providers * named alias 'api_endpoint' for 'id' in user-facing admin methods * core tests respect the asyncio.gather in insert_many failure mode test * aws header provider gets better __repr__ * rename StaticEmbeddingHeadersProvider -> DefaultEmbeddingHeadersProvider * rename DefaultEmbeddingHeadersProvider -> EmbeddingAPIKeyHeadersProvider * Database supports optional namespace, with guards; rename EmbeddingAPIKeyHeadersProvider->EmbeddingAPIKeyHeaderProvider * managing set_caller and Database members; added tests for all optional-namespace entrypoints * use_namespace method for Async/Database * DatabaseAdmin classes manage their spawner_database attribute, with tests * update_db_namespace flag in database admin's create_namespace methods + tests * heading to 1.4.0; find_embedding_providers returns a top-level object with the provider map as its member * fix find_emb_pr docstring; adjust nonastra admin tests to manage async fixtures * bump to 1.4.0
- Loading branch information