- 호스팅 서비스를 신청하거나 모델을 자체 호스팅하지 않고도 AI 애플리케이션과 에이전트를 구축할 수 있습니다
- 지원되는 모델을 W&B Weave 플레이그라운드에서 사용해 볼 수 있습니다
퀵스타트
다음 단계
사용 상세 정보
가격, 사용 한도, 크레딧에 관한 정보는 사용 정보 및 한도를 참조하세요.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Help us improve these docs. Take our quick survey.
W&B Weave와 OpenAI 호환 API를 통해 오픈 소스 파운데이션 모델 이용
import openai
client = openai.OpenAI(
# 맞춤형 base URL은 W&B Inference를 가리킵니다
base_url='https://api.inference.wandb.ai/v1',
# https://wandb.ai/settings 에서 API 키를 생성하세요
api_key="<your-api-key>",
# 선택 사항: 사용량 추적을 위한 팀 및 프로젝트
project="<your-team>/<your-project>",
)
response = client.chat.completions.create(
model="meta-llama/Llama-3.1-8B-Instruct",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Tell me a joke."}
],
)
print(response.choices[0].message.content)