GLM Embedding 3 adalah model embedding dari Zhipu AI yang menghasilkan vektor 2048 dimensi yang disetel untuk pengambilan bilingual Cina-Inggris. Banyak digunakan dalam pipeline RAG Cina dan menyamai model embedding Inggris terdepan di C-MTEB dengan biaya yang lebih rendah.
Pengganti langsung OpenAI. Ubah hanya base_url dan 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="bigmodel/embedding-3", 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":"bigmodel/embedding-3","messages":[{"role":"user","content":"Hello!"}]}'
Model lain yang mungkin Anda pertimbangkan.
Zhipu’s flagship with a 1M context window.
Balanced daily-driver from Zhipu.
Fast GLM variant for low-latency apps.
General-purpose chat model.