webscraping_ai 3.1.2 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4867f8d8db8fd67de9d08cbccff1743f171c7494b45b2732f0a02b0895f2f90f
4
- data.tar.gz: 15627c6dbe09d5319cc3c078fd00b5f7124c2f103c752b288f8763ec1f166f2f
3
+ metadata.gz: b9d5c09646212d1d2b3127a8ab58b7db3c400b725e696e2da3a6049d193d00b1
4
+ data.tar.gz: f0ef33b178203e092eb99c8f94a9a8b5acab23e09913ac01f09fdb1a36e08a60
5
5
  SHA512:
6
- metadata.gz: 84f320a205fce47ff07cf166f4745a7f3a82f70216ada66e1806937b2dc484a827cbb37e535fd04b3cd3fcf91f0517bc6ec01a4f8040dabcbfff0500466636a3
7
- data.tar.gz: 489addbc3805ffe1ec9a9c60f5a42d7633d56512b2cb8a54dfec81bf98b2a28c5876f4e4c7ece8ecf4477a5fa744fa36d355b53500f557e702fa0426a3e45fcf
6
+ metadata.gz: 7432ef958f2d51ced742d7c7b80e9662456e990e10eed9bbf3a95519253c8788746c9aa5c0cd3c8136c52adb41fac1b1de53b3abfa6daac9a6ca15419b2b780b
7
+ data.tar.gz: 8cf21004408e4dfa207d4f709ac81de2b2a2851f6c8b86ef2cdf5a28b7f88f3a826ba1ca8b87fb9c60a9e365521a99ffac1cbf8ced043abb3822c010a7357112
data/README.md CHANGED
@@ -6,8 +6,8 @@ WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript
6
6
 
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
- - API version: 3.1.2
10
- - Package version: 3.1.2
9
+ - API version: 3.1.3
10
+ - Package version: 3.1.3
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://webscraping.ai](https://webscraping.ai)
13
13
 
@@ -24,16 +24,16 @@ gem build webscraping_ai.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./webscraping_ai-3.1.2.gem
27
+ gem install ./webscraping_ai-3.1.3.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./webscraping_ai-3.1.2.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./webscraping_ai-3.1.3.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'webscraping_ai', '~> 3.1.2'
36
+ gem 'webscraping_ai', '~> 3.1.3'
37
37
 
38
38
  ### Install from Git
39
39
 
data/docs/AIApi.md CHANGED
@@ -80,9 +80,9 @@ end
80
80
  | ---- | ---- | ----------- | ----- |
81
81
  | **url** | **String** | URL of the target page. | |
82
82
  | **question** | **String** | Question or instructions to ask the LLM model about the target page. | [optional] |
83
- | **context_limit** | **Integer** | Maximum number of tokens to use as context for the LLM model (4000 by default). | [optional][default to 8000] |
83
+ | **context_limit** | **Integer** | Maximum number of tokens to use as context for the LLM model (4000 by default). | [optional][default to 4000] |
84
84
  | **response_tokens** | **Integer** | Maximum number of tokens to return in the LLM model response. The total context size (context_limit) includes the question, the target page content and the response, so this parameter reserves tokens for the response (see also on_context_limit). | [optional][default to 100] |
85
- | **on_context_limit** | **String** | What to do if the context_limit parameter is exceeded (truncate by default). The context is exceeded when the target page content is too long. | [optional][default to 'truncate'] |
85
+ | **on_context_limit** | **String** | What to do if the context_limit parameter is exceeded (truncate by default). The context is exceeded when the target page content is too long. | [optional][default to 'error'] |
86
86
  | **headers** | [**Hash<String, String>**](String.md) | HTTP headers to pass to the target page. Can be specified either via a nested query parameter (...&headers[One]=value1&headers=[Another]=value2) or as a JSON encoded object (...&headers={\"One\": \"value1\", \"Another\": \"value2\"}). | [optional] |
87
87
  | **timeout** | **Integer** | Maximum web page retrieval time in ms. Increase it in case of timeout errors (10000 by default, maximum is 30000). | [optional][default to 10000] |
88
88
  | **js** | **Boolean** | Execute on-page JavaScript using a headless browser (true by default). | [optional][default to true] |
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -24,9 +24,9 @@ module WebScrapingAI
24
24
  # @param url [String] URL of the target page.
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [String] :question Question or instructions to ask the LLM model about the target page.
27
- # @option opts [Integer] :context_limit Maximum number of tokens to use as context for the LLM model (4000 by default). (default to 8000)
27
+ # @option opts [Integer] :context_limit Maximum number of tokens to use as context for the LLM model (4000 by default). (default to 4000)
28
28
  # @option opts [Integer] :response_tokens Maximum number of tokens to return in the LLM model response. The total context size (context_limit) includes the question, the target page content and the response, so this parameter reserves tokens for the response (see also on_context_limit). (default to 100)
29
- # @option opts [String] :on_context_limit What to do if the context_limit parameter is exceeded (truncate by default). The context is exceeded when the target page content is too long. (default to 'truncate')
29
+ # @option opts [String] :on_context_limit What to do if the context_limit parameter is exceeded (truncate by default). The context is exceeded when the target page content is too long. (default to 'error')
30
30
  # @option opts [Hash<String, String>] :headers HTTP headers to pass to the target page. Can be specified either via a nested query parameter (...&amp;headers[One]&#x3D;value1&amp;headers&#x3D;[Another]&#x3D;value2) or as a JSON encoded object (...&amp;headers&#x3D;{\&quot;One\&quot;: \&quot;value1\&quot;, \&quot;Another\&quot;: \&quot;value2\&quot;}).
31
31
  # @option opts [Integer] :timeout Maximum web page retrieval time in ms. Increase it in case of timeout errors (10000 by default, maximum is 30000). (default to 10000)
32
32
  # @option opts [Boolean] :js Execute on-page JavaScript using a headless browser (true by default). (default to true)
@@ -48,9 +48,9 @@ module WebScrapingAI
48
48
  # @param url [String] URL of the target page.
49
49
  # @param [Hash] opts the optional parameters
50
50
  # @option opts [String] :question Question or instructions to ask the LLM model about the target page.
51
- # @option opts [Integer] :context_limit Maximum number of tokens to use as context for the LLM model (4000 by default). (default to 8000)
51
+ # @option opts [Integer] :context_limit Maximum number of tokens to use as context for the LLM model (4000 by default). (default to 4000)
52
52
  # @option opts [Integer] :response_tokens Maximum number of tokens to return in the LLM model response. The total context size (context_limit) includes the question, the target page content and the response, so this parameter reserves tokens for the response (see also on_context_limit). (default to 100)
53
- # @option opts [String] :on_context_limit What to do if the context_limit parameter is exceeded (truncate by default). The context is exceeded when the target page content is too long. (default to 'truncate')
53
+ # @option opts [String] :on_context_limit What to do if the context_limit parameter is exceeded (truncate by default). The context is exceeded when the target page content is too long. (default to 'error')
54
54
  # @option opts [Hash<String, String>] :headers HTTP headers to pass to the target page. Can be specified either via a nested query parameter (...&amp;headers[One]&#x3D;value1&amp;headers&#x3D;[Another]&#x3D;value2) or as a JSON encoded object (...&amp;headers&#x3D;{\&quot;One\&quot;: \&quot;value1\&quot;, \&quot;Another\&quot;: \&quot;value2\&quot;}).
55
55
  # @option opts [Integer] :timeout Maximum web page retrieval time in ms. Increase it in case of timeout errors (10000 by default, maximum is 30000). (default to 10000)
56
56
  # @option opts [Boolean] :js Execute on-page JavaScript using a headless browser (true by default). (default to true)
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -11,5 +11,5 @@ OpenAPI Generator version: 7.2.0
11
11
  =end
12
12
 
13
13
  module WebScrapingAI
14
- VERSION = '3.1.2'
14
+ VERSION = '3.1.3'
15
15
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
data/spec/spec_helper.rb CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
5
5
 
6
- The version of the OpenAPI document: 3.1.2
6
+ The version of the OpenAPI document: 3.1.3
7
7
  Contact: support@webscraping.ai
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.2.0
@@ -5,7 +5,7 @@
5
5
 
6
6
  #WebScraping.AI scraping API provides GPT-powered tools with Chromium JavaScript rendering, rotating proxies, and built-in HTML parsing.
7
7
 
8
- The version of the OpenAPI document: 3.1.2
8
+ The version of the OpenAPI document: 3.1.3
9
9
  Contact: support@webscraping.ai
10
10
  Generated by: https://openapi-generator.tech
11
11
  OpenAPI Generator version: 7.2.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webscraping_ai
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - WebScraping.AI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-03 00:00:00.000000000 Z
11
+ date: 2024-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus