Ernie Embedding v1은 바이두의 중국어 우선 임베딩 모델로, 간체 중국어 텍스트에 최적화된 384차원 벡터를 생성합니다. 짧은 쿼리가 주를 이루는 중국어 의미 검색 및 추천 사용 사례에 비용 효율적인 기본 선택입니다.
OpenAI를 바로 대체할 수 있습니다. base_url과 model만 변경하세요.
# Python - pip install openai from openai import OpenAI client = OpenAI( base_url="https://meshtok.com/v1", api_key="sk-your-MeshTok-key", ) resp = client.chat.completions.create( model="baidu/embedding-v1", messages=[{"role":"user","content":"Hello!"}], ) print(resp.choices[0].message.content)
# cURL curl https://meshtok.com/v1/chat/completions \ -H "Authorization: Bearer sk-your-MeshTok-key" \ -H "Content-Type: application/json" \ -d '{"model":"baidu/embedding-v1","messages":[{"role":"user","content":"Hello!"}]}'
고려해볼 만한 다른 모델입니다.
Fast and cost-efficient.
Fast and cost-efficient.
Fast and cost-efficient.
Fast and cost-efficient.