We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5bbd811 + 5cd88a8 commit 0cf5b59Copy full SHA for 0cf5b59
src/RAG/Embeddings/OpenAIEmbeddingsProvider.php
@@ -14,7 +14,7 @@ class OpenAIEmbeddingsProvider extends AbstractEmbeddingsProvider
14
{
15
use HasHttpClient;
16
17
- protected string $baseUri = 'https://api.openai.com/v1/embeddings';
+ protected string $baseUri = 'https://api.openai.com/v1';
18
19
public function __construct(
20
protected string $key,
@@ -38,7 +38,7 @@ public function embedText(string $text): array
38
39
$response = $this->httpClient->request(
40
HttpRequest::post(
41
- uri: '',
+ uri: 'embeddings',
42
body: [
43
'model' => $this->model,
44
'input' => $text,
0 commit comments