MCPcopy Create free account
hub / github.com/datastax/astrapy / get_headers

Method get_headers

astrapy/authentication.py:364–368  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

362
363 @override
364 def get_headers(self) -> dict[str, str]:
365 if self.embedding_api_key is not None:
366 return {EMBEDDING_HEADER_API_KEY: self.embedding_api_key}
367 else:
368 return {}
369
370
371class AWSEmbeddingHeadersProvider(EmbeddingHeadersProvider):

Calls

no outgoing calls