Class: Scrapio::Resources::Chatgpt
- Inherits:
-
Object
- Object
- Scrapio::Resources::Chatgpt
- Defined in:
- lib/scrapio/resources/chatgpt.rb
Instance Method Summary collapse
-
#initialize(http) ⇒ Chatgpt
constructor
A new instance of Chatgpt.
- #prompt(prompt, search: nil, geo: nil) ⇒ Object
Constructor Details
#initialize(http) ⇒ Chatgpt
Returns a new instance of Chatgpt.
4 |
# File 'lib/scrapio/resources/chatgpt.rb', line 4 def initialize(http) = @http = http |
Instance Method Details
#prompt(prompt, search: nil, geo: nil) ⇒ Object
6 7 8 |
# File 'lib/scrapio/resources/chatgpt.rb', line 6 def prompt(prompt, search: nil, geo: nil) @http.get("/v1/chatgpt/prompt", { prompt: prompt, search: search, geo: geo }) end |