ruby-you 0.1.2 → 0.1.4
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -0
- data/lib/ruby/you.rb +2 -0
- data/lib/you/client.rb +4 -0
- data/lib/you/compatibility.rb +18 -0
- data/lib/you/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc46c2ef0c9f1dbcc83f14ba49ba89aba670b00073fdefa1ec3552d1db030d65
|
4
|
+
data.tar.gz: 0fd2347d9ba3e076f3d15961a79dbbbed380d56807ccf77eaf0e661c81b65550
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed0603f6cf3a408e5e83afcb34e617924e346d6a6fe8b8a1a984799bdbf68366342adc9c382df400d370e6c64e1dd0b4cbcb4b645f86a219adb130d2f14db0b0
|
7
|
+
data.tar.gz: 5205bfdf8867c86e0bea7ea75fe26a48547bc2ada8c04a9e2d736cdd91a94eaf6a6eeead02a87e98a39cd673d2a2d6927848597d7d3c011ea9d759c6b355ed5a
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -113,6 +113,10 @@ puts news_result["news"]["results"]
|
|
113
113
|
- spellcheck (Boolean, optional)
|
114
114
|
- recency (String, optional: day, week, month, year)
|
115
115
|
|
116
|
+
### WEB LLM (GET /rag)
|
117
|
+
|
118
|
+
- query (String, required)
|
119
|
+
|
116
120
|
### Error Handling
|
117
121
|
|
118
122
|
The client raises custom exceptions for non-200 responses:
|
data/lib/ruby/you.rb
ADDED
data/lib/you/client.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
module Ruby
|
2
|
+
module You
|
3
|
+
VERSION = ::You::VERSION
|
4
|
+
|
5
|
+
Error = ::You::Error
|
6
|
+
Configuration = ::You::Configuration
|
7
|
+
BadRequestError = ::You::BadRequestError
|
8
|
+
UnauthorizedError = ::You::UnauthorizedError
|
9
|
+
ForbiddenError = ::You::ForbiddenError
|
10
|
+
NotFoundError = ::You::NotFoundError
|
11
|
+
UnprocessableEntityError = ::You::UnprocessableEntityError
|
12
|
+
RateLimitError = ::You::RateLimitError
|
13
|
+
InternalServerError = ::You::InternalServerError
|
14
|
+
BadGatewayError = ::You::BadGatewayError
|
15
|
+
ServiceUnavailableError = ::You::ServiceUnavailableError
|
16
|
+
GatewayTimeoutError = ::You::GatewayTimeoutError
|
17
|
+
end
|
18
|
+
end
|
data/lib/you/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-you
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Mochetti
|
@@ -57,8 +57,10 @@ files:
|
|
57
57
|
- LICENSE.txt
|
58
58
|
- README.md
|
59
59
|
- Rakefile
|
60
|
+
- lib/ruby/you.rb
|
60
61
|
- lib/you.rb
|
61
62
|
- lib/you/client.rb
|
63
|
+
- lib/you/compatibility.rb
|
62
64
|
- lib/you/configuration.rb
|
63
65
|
- lib/you/error.rb
|
64
66
|
- lib/you/version.rb
|