Closed fjcaetano closed 1 year ago
The API states that embeddings can either be a string or an array of strings: https://platform.openai.com/docs/api-reference/embeddings/create
This PR modifies the default behavior to send an array of strings and adds an overload to send a single String, for backwards compatibility and ease of use.
The API states that embeddings can either be a string or an array of strings: https://platform.openai.com/docs/api-reference/embeddings/create
This PR modifies the default behavior to send an array of strings and adds an overload to send a single String, for backwards compatibility and ease of use.