runapi-qwen-3 0.1.2 → 0.2.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3fd3b0380dc76d09f2afe0470c53eaf8009f6115e9b530c8f70efe963d26e91b
|
|
4
|
+
data.tar.gz: 5cf811f17ccc2e98c40a0c74fb9e8832b35325dc037abe51acd594510a4cb53e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a9d19d4b439f1c2776d03d16147c4a6c2bd09ed247d3635eb06382544ae4e9e354aec5e7a9104fd8e1fa58ab94dd287d62372d0f171a2dd710a1e125e334b892
|
|
7
|
+
data.tar.gz: 1f321165a6bb17f5f1e2661a4436fac3fabaeb89f97c9146e50bc2015cf589973016d9042fab1305e61ccf7af99e34e5c3b636399bb8896d081029513acb6b1a
|
|
@@ -31,7 +31,6 @@ module RunApi
|
|
|
31
31
|
# @return [RunApi::Qwen3::Types::EditImageResponse] task creation result with id
|
|
32
32
|
def create(options: nil, **params)
|
|
33
33
|
params = compact_params(params)
|
|
34
|
-
validate_contract!(CONTRACT["edit-image"], params)
|
|
35
34
|
request(:post, ENDPOINT, body: params, options: options)
|
|
36
35
|
end
|
|
37
36
|
|
|
@@ -31,7 +31,6 @@ module RunApi
|
|
|
31
31
|
# @return [RunApi::Qwen3::Types::TextToImageResponse] task creation result with id
|
|
32
32
|
def create(options: nil, **params)
|
|
33
33
|
params = compact_params(params)
|
|
34
|
-
validate_contract!(CONTRACT["text-to-image"], params)
|
|
35
34
|
request(:post, ENDPOINT, body: params, options: options)
|
|
36
35
|
end
|
|
37
36
|
|
data/lib/runapi/qwen_3.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runapi-qwen-3
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- RunAPI
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.
|
|
18
|
+
version: 0.6.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.
|
|
25
|
+
version: 0.6.0
|
|
26
26
|
description: The Qwen 3 Ruby SDK is the language-specific package for Qwen 3 on RunAPI.
|
|
27
27
|
Use this package for image generation, image editing, and creative production workflows
|
|
28
28
|
when your application needs request bodies, task status lookup, and consistent RunAPI
|
|
@@ -39,7 +39,6 @@ files:
|
|
|
39
39
|
- lib/runapi-qwen_3.rb
|
|
40
40
|
- lib/runapi/qwen_3.rb
|
|
41
41
|
- lib/runapi/qwen_3/client.rb
|
|
42
|
-
- lib/runapi/qwen_3/contract_gen.rb
|
|
43
42
|
- lib/runapi/qwen_3/resources/edit_image.rb
|
|
44
43
|
- lib/runapi/qwen_3/resources/text_to_image.rb
|
|
45
44
|
- lib/runapi/qwen_3/types.rb
|
|
@@ -67,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
67
|
version: '0'
|
|
69
68
|
requirements: []
|
|
70
|
-
rubygems_version: 4.0.
|
|
69
|
+
rubygems_version: 4.0.10
|
|
71
70
|
specification_version: 4
|
|
72
71
|
summary: Qwen 3 API Ruby SDK for RunAPI
|
|
73
72
|
test_files: []
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module RunApi
|
|
4
|
-
module Qwen3
|
|
5
|
-
CONTRACT = {
|
|
6
|
-
"edit-image" => {
|
|
7
|
-
"models" => ["qwen-3-edit-image", "qwen-3-pro-edit-image"],
|
|
8
|
-
"fields_by_model" => {
|
|
9
|
-
"qwen-3-edit-image" => {
|
|
10
|
-
"aspect_ratio" => {
|
|
11
|
-
"enum" => ["1:1", "3:2", "2:3", "4:3", "3:4", "16:9", "9:16", "21:9"]
|
|
12
|
-
},
|
|
13
|
-
"model" => {
|
|
14
|
-
"required" => true
|
|
15
|
-
},
|
|
16
|
-
"negative_prompt" => {
|
|
17
|
-
"min" => 0,
|
|
18
|
-
"max" => 5000,
|
|
19
|
-
"length" => true
|
|
20
|
-
},
|
|
21
|
-
"output_format" => {
|
|
22
|
-
"enum" => ["png", "jpeg"]
|
|
23
|
-
},
|
|
24
|
-
"output_resolution" => {
|
|
25
|
-
"enum" => ["1k", "2k"]
|
|
26
|
-
},
|
|
27
|
-
"prompt" => {
|
|
28
|
-
"required" => true,
|
|
29
|
-
"min" => 1,
|
|
30
|
-
"max" => 800,
|
|
31
|
-
"length" => true
|
|
32
|
-
},
|
|
33
|
-
"seed" => {
|
|
34
|
-
"min" => 0,
|
|
35
|
-
"max" => 2147483647,
|
|
36
|
-
"type" => "integer"
|
|
37
|
-
},
|
|
38
|
-
"source_image_urls" => {
|
|
39
|
-
"required" => true,
|
|
40
|
-
"min_items" => 1,
|
|
41
|
-
"max_items" => 3
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"qwen-3-pro-edit-image" => {
|
|
45
|
-
"aspect_ratio" => {
|
|
46
|
-
"enum" => ["1:1", "3:2", "2:3", "4:3", "3:4", "16:9", "9:16", "21:9"]
|
|
47
|
-
},
|
|
48
|
-
"model" => {
|
|
49
|
-
"required" => true
|
|
50
|
-
},
|
|
51
|
-
"negative_prompt" => {
|
|
52
|
-
"min" => 0,
|
|
53
|
-
"max" => 5000,
|
|
54
|
-
"length" => true
|
|
55
|
-
},
|
|
56
|
-
"output_format" => {
|
|
57
|
-
"enum" => ["png", "jpeg"]
|
|
58
|
-
},
|
|
59
|
-
"output_resolution" => {
|
|
60
|
-
"enum" => ["1k", "2k"]
|
|
61
|
-
},
|
|
62
|
-
"prompt" => {
|
|
63
|
-
"required" => true,
|
|
64
|
-
"min" => 1,
|
|
65
|
-
"max" => 800,
|
|
66
|
-
"length" => true
|
|
67
|
-
},
|
|
68
|
-
"seed" => {
|
|
69
|
-
"min" => 0,
|
|
70
|
-
"max" => 2147483647,
|
|
71
|
-
"type" => "integer"
|
|
72
|
-
},
|
|
73
|
-
"source_image_urls" => {
|
|
74
|
-
"required" => true,
|
|
75
|
-
"min_items" => 1,
|
|
76
|
-
"max_items" => 3
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"text-to-image" => {
|
|
82
|
-
"models" => ["qwen-3-pro-text-to-image", "qwen-3-text-to-image"],
|
|
83
|
-
"fields_by_model" => {
|
|
84
|
-
"qwen-3-pro-text-to-image" => {
|
|
85
|
-
"aspect_ratio" => {
|
|
86
|
-
"enum" => ["1:1", "3:2", "2:3", "4:3", "3:4", "16:9", "9:16", "21:9"]
|
|
87
|
-
},
|
|
88
|
-
"model" => {
|
|
89
|
-
"required" => true
|
|
90
|
-
},
|
|
91
|
-
"negative_prompt" => {
|
|
92
|
-
"min" => 0,
|
|
93
|
-
"max" => 5000,
|
|
94
|
-
"length" => true
|
|
95
|
-
},
|
|
96
|
-
"output_format" => {
|
|
97
|
-
"enum" => ["png", "jpeg"]
|
|
98
|
-
},
|
|
99
|
-
"output_resolution" => {
|
|
100
|
-
"enum" => ["1k", "2k"]
|
|
101
|
-
},
|
|
102
|
-
"prompt" => {
|
|
103
|
-
"required" => true,
|
|
104
|
-
"min" => 1,
|
|
105
|
-
"max" => 800,
|
|
106
|
-
"length" => true
|
|
107
|
-
},
|
|
108
|
-
"seed" => {
|
|
109
|
-
"min" => 0,
|
|
110
|
-
"max" => 2147483647,
|
|
111
|
-
"type" => "integer"
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"qwen-3-text-to-image" => {
|
|
115
|
-
"aspect_ratio" => {
|
|
116
|
-
"enum" => ["1:1", "3:2", "2:3", "4:3", "3:4", "16:9", "9:16", "21:9"]
|
|
117
|
-
},
|
|
118
|
-
"model" => {
|
|
119
|
-
"required" => true
|
|
120
|
-
},
|
|
121
|
-
"negative_prompt" => {
|
|
122
|
-
"min" => 0,
|
|
123
|
-
"max" => 5000,
|
|
124
|
-
"length" => true
|
|
125
|
-
},
|
|
126
|
-
"output_format" => {
|
|
127
|
-
"enum" => ["png", "jpeg"]
|
|
128
|
-
},
|
|
129
|
-
"output_resolution" => {
|
|
130
|
-
"enum" => ["1k", "2k"]
|
|
131
|
-
},
|
|
132
|
-
"prompt" => {
|
|
133
|
-
"required" => true,
|
|
134
|
-
"min" => 1,
|
|
135
|
-
"max" => 800,
|
|
136
|
-
"length" => true
|
|
137
|
-
},
|
|
138
|
-
"seed" => {
|
|
139
|
-
"min" => 0,
|
|
140
|
-
"max" => 2147483647,
|
|
141
|
-
"type" => "integer"
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}.freeze
|
|
147
|
-
end
|
|
148
|
-
end
|