Skip to content

Function: toEmbeddingJSON()

@providerprotocol/ai


@providerprotocol/ai / proxy / toEmbeddingJSON

toEmbeddingJSON(result): Response

Defined in: src/providers/proxy/server/webapi.ts:222

Create a JSON Response from an embedding result.

EmbeddingResult

The embedding result

Response

HTTP Response with JSON body