File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
tests/Bridge/VertexAi/Gemini Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,7 @@ public function supports(BaseModel $model): bool
40
40
public function request (BaseModel $ model , array |string $ payload , array $ options = []): RawHttpResult
41
41
{
42
42
$ url = \sprintf (
43
- 'https://%s-aiplatform.googleapis.com/v1/projects/%s/locations/%s/publishers/google/models/%s:%s ' ,
44
- $ this ->location ,
43
+ 'https://aiplatform.googleapis.com/v1/projects/%s/locations/%s/publishers/google/models/%s:%s ' ,
45
44
$ this ->projectId ,
46
45
$ this ->location ,
47
46
$ model ->getName (),
Original file line number Diff line number Diff line change @@ -39,13 +39,12 @@ public function supports(BaseModel $model): bool
39
39
}
40
40
41
41
/**
42
- * @throws TransportExceptionInterface When the HTTP request fails due to network issues
42
+ * @throws TransportExceptionInterface
43
43
*/
44
44
public function request (BaseModel $ model , array |string $ payload , array $ options = []): RawHttpResult
45
45
{
46
46
$ url = \sprintf (
47
- 'https://%s-aiplatform.googleapis.com/v1/projects/%s/locations/%s/publishers/google/models/%s:%s ' ,
48
- $ this ->location ,
47
+ 'https://aiplatform.googleapis.com/v1/projects/%s/locations/%s/publishers/google/models/%s:%s ' ,
49
48
$ this ->projectId ,
50
49
$ this ->location ,
51
50
$ model ->getName (),
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public function testItInvokesTheTextModelsSuccessfully()
52
52
$ this ->assertNotEmpty ($ info );
53
53
$ this ->assertSame ('POST ' , $ info ['http_method ' ]);
54
54
$ this ->assertSame (
55
- 'https://global- aiplatform.googleapis.com/v1/projects/test/locations/global/publishers/google/models/gemini-2.0-flash:generateContent ' ,
55
+ 'https://aiplatform.googleapis.com/v1/projects/test/locations/global/publishers/google/models/gemini-2.0-flash:generateContent ' ,
56
56
$ info ['url ' ],
57
57
);
58
58
$ this ->assertSame ($ expectedResponse , $ data );
You can’t perform that action at this time.
0 commit comments