Skip to content

Commit 2abc53f

Browse files
committed
use proxy
1 parent afb4a92 commit 2abc53f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Replicate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public function generate()
279279
'platform' => self::$platform,
280280
'user_prompt' => $this->prompt->userPrompt(),
281281
'full_prompt' => $this->prompt->toString($this->inputParams),
282-
'url' => $result['urls']['get'],
282+
'url' => str_replace('https://api.replicate.com/v1/predictions', $this->getBaseUrl(), $result['urls']['get']),
283283
'status' => $result['status'],
284284
'output' => isset($result['output']) ? $result['output'] : null,
285285
'error' => $result['error'],

0 commit comments

Comments
 (0)