ProviderName (common/provider_names.py)

caura · common/provider_names.py · python · Apache-2.0
ai

Canonical provider identifiers shared across services. Internal comparison sites should use these enum members instead of string literals (``provider == ProviderName.OPENAI`` rather than ``provider == "openai"``) to eliminate a whole class of typo bugs. ``StrEnum`` means members

# Source: https://github.com/caura-ai/caura | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""Canonical provider identifiers shared across services.

Internal comparison sites should use these enum members instead of
string literals (``provider == ProviderName.OPENAI`` rather than
``provider == "openai"``) to eliminate a whole class of typo bugs.

``StrEnum`` means members ARE strings — external callers can keep
passing literals ("openai", "gemini", ...) via env vars or JSON and
equality still works both ways.
"""

from __future__ import annotations

from enum import StrEnum


class ProviderName(StrEnum):
    """Canonical names for LLM / embedding providers.

    Values are the wi

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key