AISuite 개요 — 공급자 무관(provider-agnostic) LLM SDK

AISuite 개요 — 공급자 무관(provider-agnostic) LLM SDK

AISuite는 Andrew Ng의 회사가 만든 단순한 파이썬 인터페이스로, 여러 생성형 AI 공급자를 표준화된 방식으로 쓰게 해줘요. 공급자별로 코드를 다시 쓰지 않고 같은 프롬프트·모델 로직으로 챗봇과 에이전트를 만들 수 있죠.

출처: https://github.com/andrewyng/aisuite/blob/main/README.md

지원 공급자는 OpenAI, Anthropic, Google/Gemini, Mistral, Groq, Cohere, Hugging Face, Ollama, DeepSeek, Azure OpenAI, AWS, Cerebras, SambaNova, LM Studio, Nebius, Tongyi, WatsonX, xAI, Crusoe, Eden AI, Featherless 등 13개 이상이에요.

pip install 'aisuite[openai]'
import aisuite as ai
client = ai.Client()

messages = [
    {"role": "system", "content": "Respond in a humorous tone."},
    {"role": "user", "content": "Tell me about yourself."},
]

response = client.chat.completions.create(
    model="openai:gpt-4o",
    messages=messages,
)
print(response.choices[0].message.content)

모델 문자열이 provider:model 형태인 점이 핵심이에요. openai:gpt-4o처럼 공급자 앞에 붙이면 그 공급자의 SDK로 라우팅됩니다.

더 알아보기