pub fn can_use_openai_embeddings(config: &Config) -> boolExpand description
Returns true if OpenAI embeddings can be used in the current environment.
Rules:
- True when
OPENAI_API_KEYis available via env or auth.json. - ChatGPT web login tokens do NOT enable OpenAI embeddings.