openai_embedding
Added in v2.5.0.
Get the text embedding vector for a given text. The api_key and model arguments must be constant values.
api_key
model
openai_embedding ( api_key constant text, model constant text, input text ) → real[]
openai_embedding('sk-proj-1234567890', 'text-embedding-3-small', 'Hello, world!') -> {0.0001, 0.0002, 0.0003, ...}
Was this page helpful?