@@ -54,20 +54,6 @@ public function request(Model $model, array|string $payload, array $options = []
54
54
};
55
55
}
56
56
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
-
71
57
/**
72
58
* @param array<string|int, mixed> $payload
73
59
* @param array<string, mixed> $options
@@ -87,4 +73,18 @@ private function doCompletionRequest(array|string $payload, array $options = [])
87
73
'json ' => array_merge ($ options , $ payload ),
88
74
]));
89
75
}
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
+ }
90
90
}
0 commit comments