![]() |
![]()
| ![]() |
![]()
NAMEOpenAI::API::Request::Embedding - embeddings endpoint SYNOPSISuse OpenAI::API::Request::Embedding; my $request = OpenAI::API::Request::Embedding->new( model => "text-embedding-ada-002", input => 'The quick brown fox jumps over the lazy dog.', ); my $res = $request->send(); # or: my $res = $request->send(%args); DESCRIPTIONThis module provides a request class for interacting with the OpenAI API's embedding endpoint. It inherits from OpenAI::API::Request. Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. ATTRIBUTESmodelThe model to use for generating embeddings. inputThe input content for which to generate embeddings. user [optional]The user identifier for the request. INHERITED METHODSThis module inherits the following methods from OpenAI::API::Request: sendsend_asyncSEE ALSOOpenAI::API::Request, OpenAI::API::Config
|