ox-ai-workers 1.0.1 → 1.0.1.1
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/README.md +2 -1
- data/lib/oxaiworkers/tool/pixels.rb +2 -2
- data/lib/oxaiworkers/tool/wolfram.rb +1 -1
- data/lib/oxaiworkers/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: ba17fbce4bcdcc90ca498bd391a129f3348ce02ab349ada1f1f5bc5599a6bf53
|
4
|
+
data.tar.gz: 38c3b111273b1eb7e607f0e0ca31f836a50298b43ad2c6eb4ca0b25711244127
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1de785b9917868c32544ff2620b932ae0827cd32080785be1f0bfd7f4136c8bc1eef2ac7a0af03c9a4af95cd8bdbc6a93bbcb6f00add080a8470beebbf37fb6
|
7
|
+
data.tar.gz: 2216bf33ad62ee0a731abca6d956b35a9c1c84927c900b39c2eb359120a67ba39cf6ca0630991cab6adf9a03ff39e68371115b68bf800e229ce7af019b45090c
|
data/README.md
CHANGED
@@ -387,7 +387,8 @@ class MyTool
|
|
387
387
|
|
388
388
|
def initialize
|
389
389
|
define_function :hello_world, description: "Says hello to someone" do
|
390
|
-
property :name, type: "string", description: "Name to greet"
|
390
|
+
property :name, type: "string", description: "Name to greet" # Default required: true
|
391
|
+
property :age, type: ["integer", "null"], description: "Age of the person" # Default required: true
|
391
392
|
end
|
392
393
|
end
|
393
394
|
|
@@ -19,7 +19,7 @@ module OxAiWorkers
|
|
19
19
|
property :prompt, type: 'string', description: I18n.t('oxaiworkers.tool.pixels.generate_image.prompt'),
|
20
20
|
required: true
|
21
21
|
if worker.sizes.length > 1
|
22
|
-
property :size, type:
|
22
|
+
property :size, type: %w[string null], description: I18n.t('oxaiworkers.tool.pixels.generate_image.size'),
|
23
23
|
enum: worker.sizes
|
24
24
|
end
|
25
25
|
if current_dir.present?
|
@@ -28,7 +28,7 @@ module OxAiWorkers
|
|
28
28
|
required: true
|
29
29
|
end
|
30
30
|
if worker.qualities.length > 1
|
31
|
-
property :quality, type:
|
31
|
+
property :quality, type: %w[string null], description: I18n.t('oxaiworkers.tool.pixels.generate_image.quality'),
|
32
32
|
enum: worker.qualities
|
33
33
|
end
|
34
34
|
end
|
@@ -19,7 +19,7 @@ module OxAiWorkers
|
|
19
19
|
property :prompt, type: 'string', description: I18n.t('oxaiworkers.tool.wolfram_alpha.ask.prompt'),
|
20
20
|
required: true
|
21
21
|
if location.nil?
|
22
|
-
property :location, type:
|
22
|
+
property :location, type: %w[string null], description: I18n.t('oxaiworkers.tool.wolfram_alpha.ask.location'),
|
23
23
|
required: true
|
24
24
|
end
|
25
25
|
end
|
data/lib/oxaiworkers/version.rb
CHANGED