@@ -31,16 +31,7 @@ func main() {
31
31
)
32
32
33
33
res , err := s.Generate .TextToImage (ctx, components.TextToImageParams {
34
- ModelID: livepeeraigo.String (" " ),
35
- Loras: livepeeraigo.String (" " ),
36
- Prompt: " <value>" ,
37
- Height: livepeeraigo.Int64 (576 ),
38
- Width: livepeeraigo.Int64 (1024 ),
39
- GuidanceScale: livepeeraigo.Float64 (7.5 ),
40
- NegativePrompt: livepeeraigo.String (" " ),
41
- SafetyCheck: livepeeraigo.Bool (true ),
42
- NumInferenceSteps: livepeeraigo.Int64 (50 ),
43
- NumImagesPerPrompt: livepeeraigo.Int64 (1 ),
34
+ Prompt: " <value>" ,
44
35
}, operations.WithRetries (
45
36
retry.Config {
46
37
Strategy: " backoff" ,
@@ -93,16 +84,7 @@ func main() {
93
84
)
94
85
95
86
res , err := s.Generate .TextToImage (ctx, components.TextToImageParams {
96
- ModelID: livepeeraigo.String (" " ),
97
- Loras: livepeeraigo.String (" " ),
98
- Prompt: " <value>" ,
99
- Height: livepeeraigo.Int64 (576 ),
100
- Width: livepeeraigo.Int64 (1024 ),
101
- GuidanceScale: livepeeraigo.Float64 (7.5 ),
102
- NegativePrompt: livepeeraigo.String (" " ),
103
- SafetyCheck: livepeeraigo.Bool (true ),
104
- NumInferenceSteps: livepeeraigo.Int64 (50 ),
105
- NumImagesPerPrompt: livepeeraigo.Int64 (1 ),
87
+ Prompt: " <value>" ,
106
88
})
107
89
if err != nil {
108
90
log.Fatal (err)
@@ -153,16 +135,7 @@ func main() {
153
135
)
154
136
155
137
res , err := s.Generate .TextToImage (ctx, components.TextToImageParams {
156
- ModelID: livepeeraigo.String (" " ),
157
- Loras: livepeeraigo.String (" " ),
158
- Prompt: " <value>" ,
159
- Height: livepeeraigo.Int64 (576 ),
160
- Width: livepeeraigo.Int64 (1024 ),
161
- GuidanceScale: livepeeraigo.Float64 (7.5 ),
162
- NegativePrompt: livepeeraigo.String (" " ),
163
- SafetyCheck: livepeeraigo.Bool (true ),
164
- NumInferenceSteps: livepeeraigo.Int64 (50 ),
165
- NumImagesPerPrompt: livepeeraigo.Int64 (1 ),
138
+ Prompt: " <value>" ,
166
139
})
167
140
if err != nil {
168
141
@@ -202,10 +175,10 @@ func main() {
202
175
203
176
You can override the default server globally using the ` WithServerIndex(serverIndex int) ` option when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
204
177
205
- | # | Server |
206
- | --- | ------------------------------------------- |
207
- | 0 | ` https://dream-gateway.livepeer.cloud ` |
208
- | 1 | ` https://livepeer.studio/api/beta/generate ` |
178
+ | # | Server | Description |
179
+ | --- | ------------------------------------------- | -------------------------------- |
180
+ | 0 | ` https://dream-gateway.livepeer.cloud ` | Livepeer Cloud Community Gateway |
181
+ | 1 | ` https://livepeer.studio/api/beta/generate ` | Livepeer Studio Gateway |
209
182
210
183
#### Example
211
184
@@ -228,16 +201,7 @@ func main() {
228
201
)
229
202
230
203
res , err := s.Generate .TextToImage (ctx, components.TextToImageParams {
231
- ModelID: livepeeraigo.String (" " ),
232
- Loras: livepeeraigo.String (" " ),
233
- Prompt: " <value>" ,
234
- Height: livepeeraigo.Int64 (576 ),
235
- Width: livepeeraigo.Int64 (1024 ),
236
- GuidanceScale: livepeeraigo.Float64 (7.5 ),
237
- NegativePrompt: livepeeraigo.String (" " ),
238
- SafetyCheck: livepeeraigo.Bool (true ),
239
- NumInferenceSteps: livepeeraigo.Int64 (50 ),
240
- NumImagesPerPrompt: livepeeraigo.Int64 (1 ),
204
+ Prompt: " <value>" ,
241
205
})
242
206
if err != nil {
243
207
log.Fatal (err)
@@ -271,16 +235,7 @@ func main() {
271
235
)
272
236
273
237
res , err := s.Generate .TextToImage (ctx, components.TextToImageParams {
274
- ModelID: livepeeraigo.String (" " ),
275
- Loras: livepeeraigo.String (" " ),
276
- Prompt: " <value>" ,
277
- Height: livepeeraigo.Int64 (576 ),
278
- Width: livepeeraigo.Int64 (1024 ),
279
- GuidanceScale: livepeeraigo.Float64 (7.5 ),
280
- NegativePrompt: livepeeraigo.String (" " ),
281
- SafetyCheck: livepeeraigo.Bool (true ),
282
- NumInferenceSteps: livepeeraigo.Int64 (50 ),
283
- NumImagesPerPrompt: livepeeraigo.Int64 (1 ),
238
+ Prompt: " <value>" ,
284
239
})
285
240
if err != nil {
286
241
log.Fatal (err)
@@ -352,16 +307,7 @@ func main() {
352
307
)
353
308
354
309
res , err := s.Generate .TextToImage (ctx, components.TextToImageParams {
355
- ModelID: livepeeraigo.String (" " ),
356
- Loras: livepeeraigo.String (" " ),
357
- Prompt: " <value>" ,
358
- Height: livepeeraigo.Int64 (576 ),
359
- Width: livepeeraigo.Int64 (1024 ),
360
- GuidanceScale: livepeeraigo.Float64 (7.5 ),
361
- NegativePrompt: livepeeraigo.String (" " ),
362
- SafetyCheck: livepeeraigo.Bool (true ),
363
- NumInferenceSteps: livepeeraigo.Int64 (50 ),
364
- NumImagesPerPrompt: livepeeraigo.Int64 (1 ),
310
+ Prompt: " <value>" ,
365
311
})
366
312
if err != nil {
367
313
log.Fatal (err)
0 commit comments