You.com 검색

You.com 검색을 LiteLLM /search 엔드포인트에서 사용하는 방법을 안내할게요. API 키는 선택이며, 키 없는 무료 티어를 사용하려면 생략하면 돼요.

출처: 문서

본문

API 키 받기: https://api.you.com (선택 사항)

LiteLLM Python SDK

You.com Search

import os
from litellm import search

os.environ["YOUCOM_API_KEY"] = "..."

response = search(
    query="latest AI developments",
    search_provider="you_com",
    max_results=5
)

YOUCOM_API_KEY는 선택 사항이에요. 키 없는 무료 티어를 사용하려면 생략하세요.

LiteLLM AI Gateway

1. config.yaml 설정

config.yaml

model_list:
  - model_name: gpt-5.6-terra
    litellm_params:
      model: gpt-5.6-terra
      api_key: os.environ/OPENAI_API_KEY

search_tools:
  - search_tool_name: youcom-search
    litellm_params:
      search_provider: you_com

2. 프록시 시작

litellm --config /path/to/config.yaml

# RUNNING on http://0.0.0.0:4000

3. 검색 엔드포인트 테스트

Test Request

curl http://0.0.0.0:4000/v1/search/youcom-search \
  -H "Authorization: Bearer ***" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "latest AI developments",
    "max_results": 5
  }'

더 알아보기 (Learn more)