콘텐츠로 이동

Python

import SdkAvailability from ‘../../../components/SdkAvailability.astro’;

Python SDK는 contextvars와 HTTP client hook으로 요청 context를 전달합니다. provider 호출의 token·cost·latency와 request ID는 Gateway가 소유합니다.

from abto_app import create_abto
abto = create_abto(
api_key="ABTO_API_KEY",
gateway_base_url="https://gateway.abto.app/v1",
)
openai = abto.openai()
with abto.with_context(user_id="user-123", node_id="resume.make"):
completion = openai.chat.completions.create(
model="gpt-4.1-mini",
messages=[{"role": "user", "content": "Create a resume draft."}],
)

출시 후에는 core package와 OpenAI/httpx integration의 설치 방법, sync·async 예제, framework middleware를 이 페이지에 함께 제공합니다.