Skip to content

Unify

Unify #

Bases: OpenAILike

Source code in llama-index-integrations/llms/llama-index-llms-unify/llama_index/llms/unify/base.py
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Unify(OpenAILike):
    def __init__(
        self,
        model: str,
        api_key: Optional[str] = None,
        api_base: str = "https://api.unify.ai/v0",
        is_chat_model: bool = True,
        **kwargs: Any,
    ) -> None:
        api_key = api_key or os.environ.get("UNIFY_API_KEY", None)
        super().__init__(
            model=model,
            api_key=api_key,
            api_base=api_base,
            is_chat_model=is_chat_model,
            **kwargs,
        )

    @classmethod
    def class_name(cls) -> str:
        """Get class name."""
        return "UnifyLLM"

class_name classmethod #

class_name() -> str

Get class name.

Source code in llama-index-integrations/llms/llama-index-llms-unify/llama_index/llms/unify/base.py
25
26
27
28
@classmethod
def class_name(cls) -> str:
    """Get class name."""
    return "UnifyLLM"