Module embeddings_capability

Module embeddings_capability 

Source
Expand description

Capability checks for embeddings providers. Per policy: OpenAI embeddings require an OpenAI API key. ChatGPT login (web tokens) is not sufficient and does not grant embeddings access.

Functionsยง

can_use_openai_embeddings
Returns true if OpenAI embeddings can be used in the current environment.
openai_embeddings_unavailable_reason
Optional helper to explain why embeddings are unavailable.