diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-08-29 11:33:57 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-08-29 11:33:57 -0400 |
| commit | 1ac837368f70aac4196c5a3e066bc8857528653a (patch) | |
| tree | bd57b9b2519bcfc3b1a731fe51f861a2d26f5855 /web/flux | |
| parent | 6a92c3b498fa9d7926398b42ec9226640274195c (diff) | |
| download | x-1ac837368f70aac4196c5a3e066bc8857528653a.tar.xz x-1ac837368f70aac4196c5a3e066bc8857528653a.zip | |
cmd/mimi: implement drawing images with Flux.1 [dev]
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'web/flux')
| -rw-r--r-- | web/flux/flux.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/web/flux/flux.go b/web/flux/flux.go index e1fbed3..56f61f1 100644 --- a/web/flux/flux.go +++ b/web/flux/flux.go @@ -30,11 +30,11 @@ type Output []string type PredictionRequest struct { Input Input `json:"input"` - ID string `json:"id"` - CreatedAt string `json:"created_at"` - OutputFilePrefix string `json:"output_file_prefix"` - Webhook string `json:"webhook"` - WebhookEventsFilter []string `json:"webhook_events_filter"` + ID string `json:"id,omitempty"` + CreatedAt string `json:"created_at,omitempty"` + OutputFilePrefix string `json:"output_file_prefix,omitempty"` + Webhook string `json:"webhook,omitempty"` + WebhookEventsFilter []string `json:"webhook_events_filter,omitempty"` } type PredictionResponse struct { @@ -78,7 +78,7 @@ type Client struct { func NewClient(baseURL string) *Client { return &Client{ BaseURL: baseURL, - HTTPClient: &http.Client{Timeout: 10 * time.Second}, + HTTPClient: &http.Client{Timeout: 10 * time.Minute}, } } |
