async def openai_key_set(
    *,
    db: AsyncSession = Depends(get_db),
    user: schemas.User = Depends(get_user),
) -> bool:
    """Check if the OpenAI API key is set for the current user.

    Args:
    ----
        db: The database session.
        user: The current user.

    Returns:
    -------
        bool: True if the OpenAI API key is set, False otherwise.
    """
    return settings.OPENAI_API_KEY is not None
Check if the OpenAI API key is set for the current user.

    Args:
    ----
        db: The database session.
        user: The current user.

    Returns:
    -------
        bool: True if the OpenAI API key is set, False otherwise.
    
backend/airweave/api/v1/endpoints/chat.py