Learn how to log embedding models.
https://api.keywordsai.co/api/request-logs/create/
import requests url = "https://api.keywordsai.co/api/request-logs/create/" headers = { "Authorization": "Bearer YOUR_KEYWORDS_AI_API_KEY", "Content-Type": "application/json" } payload = { "latency": 0.323887338, "embedding": [ -0.006929283495992422, -0.005336422007530928, -4.547132266452536e-05, -0.024047505110502243 ], "log_type": "embedding", "model": "text-embedding-3-small", "input": "something to embed" } response = requests.request("POST", url, headers=headers, json=payload)
Was this page helpful?