> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tokenlab.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Graphiti

> TokenLab을 OpenAI 호환 Graphiti LLM 공급자로 사용하기

## 개요

Graphiti는 `OpenAIGenericClient`를 통해 OpenAI 호환 `/v1` 엔드포인트를 지원합니다. 해당 클라이언트를 TokenLab으로 지정하고 TokenLab 모델을 선택하십시오.

<Note>
  **유형**: 지식 그래프 메모리 프레임워크

  **주요 경로**: OpenAI 호환 Chat Completions

  **지원 신뢰도**: 지원되는 OpenAI 호환 경로
</Note>

## 환경 설정

```bash theme={null}
export TOKENLAB_API_KEY="sk-your-tokenlab-key"
```

## LLM 클라이언트

```python theme={null}
import os

from graphiti_core.llm_client.config import LLMConfig
from graphiti_core.llm_client.openai_generic_client import OpenAIGenericClient

llm_config = LLMConfig(
    api_key=os.environ["TOKENLAB_API_KEY"],
    model="claude-sonnet-5",
    small_model="gpt-5.4-mini",
    base_url="https://api.tokenlab.sh/v1",
)

llm_client = OpenAIGenericClient(config=llm_config)
```

그래프 데이터베이스 및 임베더(embedder) 구성과 함께 `llm_client`를 `Graphiti(...)` 인스턴스에 전달하십시오.

## 엔드포인트 참고 사항

Graphiti의 OpenAI 호환 경로는 chat-completions 지향적입니다. 추출 및 중복 제거 작업을 위해 구조화된 JSON을 안정적으로 반환하는 모델을 사용하십시오.
