From 1ac837368f70aac4196c5a3e066bc8857528653a Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Thu, 29 Aug 2024 11:33:57 -0400 Subject: cmd/mimi: implement drawing images with Flux.1 [dev] Signed-off-by: Xe Iaso --- web/flux/flux.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'web') 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}, } } -- cgit v1.2.3