Skip to content

Commit

Permalink
Add prompt method to imagine
Browse files Browse the repository at this point in the history
  • Loading branch information
ShuCh3n committed Aug 4, 2023
1 parent b81169d commit ae86444
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
.github/.DS_Store

.DS_Store

.idea/
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ediasoft/midjourney-api-php",
"description": "Midjourney API PHP Client for PHP.",
"license": "MIT",
"version": "1.0.1",
"version": "1.0.2",
"type": "library",
"require": {
"php": "^8.0",
Expand Down
5 changes: 5 additions & 0 deletions src/Commands/Imagine.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ public function send()
return $this->retrieveGeneratedImage();
}

public function prompt()
{
return $this->prompt. ' ' . implode(' ', $this->arguments);
}

private function retrieveGeneratedImage($tries = 0)
{
if($tries <= $this->maxRetries)
Expand Down

0 comments on commit ae86444

Please sign in to comment.