Class: RunApi::Midjourney::Resources::ShortenPrompt
- Inherits:
-
Object
- Object
- RunApi::Midjourney::Resources::ShortenPrompt
- Includes:
- Core::ResourceHelpers
- Defined in:
- lib/runapi/midjourney/resources/shorten_prompt.rb
Overview
Derives concise suggestions from a prompt.
Constant Summary collapse
- ENDPOINT =
"/api/v1/midjourney/shorten_prompt"- RESPONSE_CLASS =
Types::ShortenPromptResponse
Instance Method Summary collapse
-
#initialize(http) ⇒ ShortenPrompt
constructor
A new instance of ShortenPrompt.
- #run(options: nil, **params) ⇒ Object
Constructor Details
#initialize(http) ⇒ ShortenPrompt
Returns a new instance of ShortenPrompt.
13 |
# File 'lib/runapi/midjourney/resources/shorten_prompt.rb', line 13 def initialize(http) = (@http = http) |