LiteLLM은 100개 이상의 LLM 제공자를 위한 통합 Python API를 제공합니다. CometAPI는 기본적으로 지원되며,Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
cometapi/ 접두사를 사용해 요청을 CometAPI의 모델 카탈로그로 라우팅할 수 있습니다.
사전 요구 사항
- Python 3.6+
- 활성 API 키가 있는 CometAPI 계정 — 여기에서 발급받으세요
팁 및 문제 해결
팁 및 문제 해결
- 모델 형식: CometAPI 모델은
cometapi/<model-name>접두사를 사용합니다. 예:cometapi/your-model-id. 사용 가능한 모델은 CometAPI 모델 페이지에서 확인하세요. - 파인튜닝(Fine-tuning) 응답: LiteLLM은
temperature,max_tokens,top_p를 지원합니다 — 이를 모든completion()호출에 추가할 수 있습니다. 예:completion(..., temperature=0.7). - 오류 처리: 잘못된 키 오류나 네트워크 문제를 잡기 위해 호출을
try/except로 감싸세요. - 보안: API 키를 버전 관리에 절대 커밋하지 마세요. 환경 변수나 secrets manager를 사용하세요.
- 속도 제한: CometAPI 콘솔에서 사용량을 모니터링하세요.
- 추가 문서: LiteLLM 문서 — CometAPI 빠른 시작