omniai 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniai/chat/request.rb +1 -1
- data/lib/omniai/chat.rb +2 -0
- data/lib/omniai/client.rb +6 -0
- data/lib/omniai/config.rb +6 -0
- data/lib/omniai/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a227888b197b576509bec7208b79f125e2c55baac317ce32b3fed8e2101f11cc
|
4
|
+
data.tar.gz: 16fe842b15ef266556c9887b1625c32a62edbbdba21dea0a8b21e418d76cd435
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4bc067e862d142036dcc15721fb7f3cf5084112145676b3884977e5d3e7025f34637eab3520ad2a1f2d524909f5e8a55b7a2bee35c139062cb481ffc64b3071
|
7
|
+
data.tar.gz: c95602154261e59d7e42fbc94d7afb42f836f54287c4842c0c982a82ced52271ac8c41afbb6cb620865ca948d55971c789c94967f5f18e2af8305271e1c2885b
|
data/lib/omniai/chat/request.rb
CHANGED
data/lib/omniai/chat.rb
CHANGED
data/lib/omniai/client.rb
CHANGED
@@ -27,6 +27,12 @@ module OmniAI
|
|
27
27
|
@logger = logger
|
28
28
|
end
|
29
29
|
|
30
|
+
# @return [String]
|
31
|
+
def inspect
|
32
|
+
masked_api_key = "#{api_key[..2]}***" if api_key
|
33
|
+
"#<#{self.class.name} api_key=#{masked_api_key.inspect}>"
|
34
|
+
end
|
35
|
+
|
30
36
|
# @return [HTTP::Client]
|
31
37
|
def connection
|
32
38
|
raise NotImplementedError, "#{self.class.name}#connection undefined"
|
data/lib/omniai/config.rb
CHANGED
@@ -4,5 +4,11 @@ module OmniAI
|
|
4
4
|
# A configuration for each agent w/ `api_key` / `host` / `logger`.
|
5
5
|
class Config
|
6
6
|
attr_accessor :api_key, :host, :logger
|
7
|
+
|
8
|
+
# @return [String]
|
9
|
+
def inspect
|
10
|
+
masked_api_key = "#{api_key[..2]}***" if api_key
|
11
|
+
"#<#{self.class.name} api_key=#{masked_api_key.inspect} host=#{host.inspect}>"
|
12
|
+
end
|
7
13
|
end
|
8
14
|
end
|
data/lib/omniai/version.rb
CHANGED