Skip to content

Commit 7025160

Browse files
committed
ref
1 parent 4fbbb14 commit 7025160

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/platform/src/Bridge/Ollama/OllamaClient.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,6 @@ public function request(Model $model, array|string $payload, array $options = []
5454
};
5555
}
5656

57-
/**
58-
* @param array<string|int, mixed> $payload
59-
* @param array<string, mixed> $options
60-
*/
61-
public function doEmbeddingsRequest(Model $model, array|string $payload, array $options = []): RawHttpResult
62-
{
63-
return new RawHttpResult($this->httpClient->request('POST', \sprintf('%s/api/embed', $this->hostUrl), [
64-
'json' => array_merge($options, [
65-
'model' => $model->getName(),
66-
'input' => $payload,
67-
]),
68-
]));
69-
}
70-
7157
/**
7258
* @param array<string|int, mixed> $payload
7359
* @param array<string, mixed> $options
@@ -87,4 +73,18 @@ private function doCompletionRequest(array|string $payload, array $options = [])
8773
'json' => array_merge($options, $payload),
8874
]));
8975
}
76+
77+
/**
78+
* @param array<string|int, mixed> $payload
79+
* @param array<string, mixed> $options
80+
*/
81+
private function doEmbeddingsRequest(Model $model, array|string $payload, array $options = []): RawHttpResult
82+
{
83+
return new RawHttpResult($this->httpClient->request('POST', \sprintf('%s/api/embed', $this->hostUrl), [
84+
'json' => array_merge($options, [
85+
'model' => $model->getName(),
86+
'input' => $payload,
87+
]),
88+
]));
89+
}
9090
}

src/platform/tests/Bridge/Ollama/OllamaClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Bridge\Ollama;
12+
namespace Symfony\AI\Platform\Tests\Bridge\Ollama;
1313

1414
use PHPUnit\Framework\Attributes\CoversClass;
1515
use PHPUnit\Framework\Attributes\UsesClass;

0 commit comments

Comments
 (0)