@ai16z/eliza v1.0.0 / embed
Function: embed()
embed(
runtime
,input
):Promise
<number
[]>
Send a message to the OpenAI API for embedding.
Parameters
• runtime: IAgentRuntime
• input: string
The input to be embedded.
Returns
Promise
<number
[]>
The embedding of the input.