Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

There's no docs for all methods. #32

Answered by thejamescollins
cdiazr asked this question in General
Discussion options

You must be logged in to vote

Hi there @cdiazr,

You're right - we do not have currently detailed documentation on all of OpenAI's endpoints and functionality.

Our suggestion is to look at OpenAI's embeddings guide for overall details on how embedding creation works, and the Embeddings API reference.

You would then use the client's embeddings->create() method, along with a Tectalic\OpenAi\Models\Embeddings\ CreateRequest model for the request. For example:

/** @var \Tectalic\OpenAi\Models\Embeddings\CreateResponse $response */
$response = $openaiClient->embeddings()->create(
    new \Tectalic\OpenAi\Models\Embeddings\CreateRequest([
        ...
    ])
)->toModel();

Where ... is an associative array of your Embeddings …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thejamescollins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants