From ad6fb749f09ffca4c507f10c03ab595ac6b28f3e Mon Sep 17 00:00:00 2001 From: Robi9 Date: Thu, 19 Oct 2023 18:20:58 -0300 Subject: [PATCH 01/11] Add handle for weniGPTCalled type events --- core/handlers/wenigpt_called.go | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 core/handlers/wenigpt_called.go diff --git a/core/handlers/wenigpt_called.go b/core/handlers/wenigpt_called.go new file mode 100644 index 000000000..77835a216 --- /dev/null +++ b/core/handlers/wenigpt_called.go @@ -0,0 +1,41 @@ +package handlers + +import ( + "context" + + "github.com/jmoiron/sqlx" + "github.com/nyaruka/goflow/flows" + "github.com/nyaruka/goflow/flows/events" + "github.com/nyaruka/mailroom/core/hooks" + "github.com/nyaruka/mailroom/core/models" + "github.com/nyaruka/mailroom/runtime" + "github.com/sirupsen/logrus" +) + +func init() { + models.RegisterEventHandler(events.TypeWeniGPTCalled, handleWeniGPTCalled) +} + +type WeniGPTCall struct { + NodeUUID flows.NodeUUID + Event *events.WeniGPTCalledEvent +} + +func handleWeniGPTCalled(ctx context.Context, rt *runtime.Runtime, tx *sqlx.Tx, oa *models.OrgAssets, scene *models.Scene, e flows.Event) error { + event := e.(*events.WeniGPTCalledEvent) + logrus.WithFields(logrus.Fields{ + "contact_uuid": scene.ContactUUID(), + "session_id": scene.SessionID(), + "url": event.URL, + "status": event.Status, + "elapsed_ms": event.ElapsedMS, + "extraction": event.Extraction, + }).Debug("wenigpt called") + + _, step := scene.Session().FindStep(e.StepUUID()) + + // pass node and response time to the hook that monitors webhook health + scene.AppendToEventPreCommitHook(hooks.MonitorWebhooks, WeniGPTCall{NodeUUID: step.NodeUUID(), Event: event}) + + return nil +} From e0538fa8b2106590f9a32c99e76a27d6125d1189 Mon Sep 17 00:00:00 2001 From: Robi9 Date: Thu, 19 Oct 2023 18:21:19 -0300 Subject: [PATCH 02/11] update goflow-dev --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 8554f839a..6e9952fca 100644 --- a/go.mod +++ b/go.mod @@ -70,4 +70,4 @@ go 1.17 replace github.com/nyaruka/gocommon => github.com/Ilhasoft/gocommon v1.16.2-weni -replace github.com/nyaruka/goflow => github.com/weni-ai/goflow v0.2.2-goflow-0.144.3 +replace github.com/nyaruka/goflow => github.com/weni-ai/goflow v0.2.2-goflow-0.144.3-wenigpt-dev diff --git a/go.sum b/go.sum index 6ad780a5f..7d5b989b7 100644 --- a/go.sum +++ b/go.sum @@ -204,8 +204,8 @@ github.com/tj/assert v0.0.0-20171129193455-018094318fb0/go.mod h1:mZ9/Rh9oLWpLLD github.com/tj/go-elastic v0.0.0-20171221160941-36157cbbebc2/go.mod h1:WjeM0Oo1eNAjXGDx2yma7uG2XoyRZTq1uv3M/o7imD0= github.com/tj/go-kinesis v0.0.0-20171128231115-08b17f58cb1b/go.mod h1:/yhzCV0xPfx6jb1bBgRFjl5lytqVqZXEaeqWP8lTEao= github.com/tj/go-spin v1.1.0/go.mod h1:Mg1mzmePZm4dva8Qz60H2lHwmJ2loum4VIrLgVnKwh4= -github.com/weni-ai/goflow v0.2.2-goflow-0.144.3 h1:J2Cf+phVgu9BbUBfebISAZisktF+DxG9Q2IA+9Ujg0w= -github.com/weni-ai/goflow v0.2.2-goflow-0.144.3/go.mod h1:o0xaVWP9qNcauBSlcNLa79Fm2oCPV+BDpheFRa/D40c= +github.com/weni-ai/goflow v0.2.2-goflow-0.144.3-wenigpt-dev h1:WGax3bvxaf/PH5RHip1wT2UFO1aslt0JZeFmboXFPxg= +github.com/weni-ai/goflow v0.2.2-goflow-0.144.3-wenigpt-dev/go.mod h1:o0xaVWP9qNcauBSlcNLa79Fm2oCPV+BDpheFRa/D40c= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= From a86ac12f5bf691e4555c162d868dceb85239bc07 Mon Sep 17 00:00:00 2001 From: Robi9 Date: Thu, 19 Oct 2023 18:41:23 -0300 Subject: [PATCH 03/11] Add environment variables for weniGPT token and url --- mailroom.go | 13 +++++++++---- runtime/config.go | 6 ++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/mailroom.go b/mailroom.go index 9d27761cc..cda30385a 100644 --- a/mailroom.go +++ b/mailroom.go @@ -8,6 +8,7 @@ import ( "time" "github.com/nyaruka/gocommon/storage" + "github.com/nyaruka/goflow/flows/actions" "github.com/nyaruka/goflow/flows/routers" "github.com/nyaruka/mailroom/core/queue" "github.com/nyaruka/mailroom/runtime" @@ -68,12 +69,16 @@ func NewMailroom(config *runtime.Config) *Mailroom { mr.handlerForeman = NewForeman(mr.rt, mr.wg, queue.HandlerQueue, config.HandlerWorkers) // set authentication token for zeroshot requests in goflow - apiToken := mr.rt.Config.ZeroshotAPIToken - routers.SetZeroshotToken(apiToken) + routers.SetZeroshotToken(mr.rt.Config.ZeroshotAPIToken) // set base url for zeroshot requests - baseURL := mr.rt.Config.ZeroshotAPIUrl - routers.SetZeroshotAPIURL(baseURL) + routers.SetZeroshotAPIURL(mr.rt.Config.ZeroshotAPIUrl) + + // set authentication token for wenigpt requests in goflow + actions.SetWeniGPTToken(mr.rt.Config.WeniGPTAPIToken) + + // set base url for wenigpt requests + actions.SetWeniGPTAPIURL(mr.rt.Config.WeniGPTAPIUrl) return mr } diff --git a/runtime/config.go b/runtime/config.go index 4162e66dc..075cd1452 100644 --- a/runtime/config.go +++ b/runtime/config.go @@ -79,6 +79,9 @@ type Config struct { ZeroshotAPIToken string `help:"secret token for zeroshot API authentication and authorization"` ZeroshotAPIUrl string `help:"zeroshot API base url"` + + WeniGPTAPIToken string `help:"secret token for wenigpt API authentication and authorization"` + WeniGPTAPIUrl string `help:"wenigpt API base url"` } // NewDefaultConfig returns a new default configuration object @@ -136,6 +139,9 @@ func NewDefaultConfig() *Config { ZeroshotAPIToken: "", ZeroshotAPIUrl: "http://engine-ai.dev.cloud.weni.ai", + + WeniGPTAPIToken: "", + WeniGPTAPIUrl: "http://engine-ai.dev.cloud.weni.ai", } } From b8d6661ddf2454c300b4c9427447a89f6df85be0 Mon Sep 17 00:00:00 2001 From: Robi9 Date: Thu, 19 Oct 2023 18:41:42 -0300 Subject: [PATCH 04/11] update goflow-dev --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 6e9952fca..62ef0fb71 100644 --- a/go.mod +++ b/go.mod @@ -70,4 +70,4 @@ go 1.17 replace github.com/nyaruka/gocommon => github.com/Ilhasoft/gocommon v1.16.2-weni -replace github.com/nyaruka/goflow => github.com/weni-ai/goflow v0.2.2-goflow-0.144.3-wenigpt-dev +replace github.com/nyaruka/goflow => github.com/weni-ai/goflow v0.2.2-goflow-0.144.3-wenigpt-1-dev diff --git a/go.sum b/go.sum index 7d5b989b7..bf0de2a16 100644 --- a/go.sum +++ b/go.sum @@ -204,8 +204,8 @@ github.com/tj/assert v0.0.0-20171129193455-018094318fb0/go.mod h1:mZ9/Rh9oLWpLLD github.com/tj/go-elastic v0.0.0-20171221160941-36157cbbebc2/go.mod h1:WjeM0Oo1eNAjXGDx2yma7uG2XoyRZTq1uv3M/o7imD0= github.com/tj/go-kinesis v0.0.0-20171128231115-08b17f58cb1b/go.mod h1:/yhzCV0xPfx6jb1bBgRFjl5lytqVqZXEaeqWP8lTEao= github.com/tj/go-spin v1.1.0/go.mod h1:Mg1mzmePZm4dva8Qz60H2lHwmJ2loum4VIrLgVnKwh4= -github.com/weni-ai/goflow v0.2.2-goflow-0.144.3-wenigpt-dev h1:WGax3bvxaf/PH5RHip1wT2UFO1aslt0JZeFmboXFPxg= -github.com/weni-ai/goflow v0.2.2-goflow-0.144.3-wenigpt-dev/go.mod h1:o0xaVWP9qNcauBSlcNLa79Fm2oCPV+BDpheFRa/D40c= +github.com/weni-ai/goflow v0.2.2-goflow-0.144.3-wenigpt-1-dev h1:6W8hSQ9/1W6Oro01GzvbNnpRrys9+HO+Ie7wkPN1nMg= +github.com/weni-ai/goflow v0.2.2-goflow-0.144.3-wenigpt-1-dev/go.mod h1:o0xaVWP9qNcauBSlcNLa79Fm2oCPV+BDpheFRa/D40c= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= From 7222abc37bf2afdb1d48fb848d4d3cde13582061 Mon Sep 17 00:00:00 2001 From: Robi9 Date: Wed, 27 Dec 2023 11:10:51 -0300 Subject: [PATCH 05/11] update goflow --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 62ef0fb71..a6df384e9 100644 --- a/go.mod +++ b/go.mod @@ -70,4 +70,4 @@ go 1.17 replace github.com/nyaruka/gocommon => github.com/Ilhasoft/gocommon v1.16.2-weni -replace github.com/nyaruka/goflow => github.com/weni-ai/goflow v0.2.2-goflow-0.144.3-wenigpt-1-dev +replace github.com/nyaruka/goflow => github.com/weni-ai/goflow v0.5.2-goflow-0.144.3-wenigpt-1-dev diff --git a/go.sum b/go.sum index bf0de2a16..d3c4e4783 100644 --- a/go.sum +++ b/go.sum @@ -204,8 +204,8 @@ github.com/tj/assert v0.0.0-20171129193455-018094318fb0/go.mod h1:mZ9/Rh9oLWpLLD github.com/tj/go-elastic v0.0.0-20171221160941-36157cbbebc2/go.mod h1:WjeM0Oo1eNAjXGDx2yma7uG2XoyRZTq1uv3M/o7imD0= github.com/tj/go-kinesis v0.0.0-20171128231115-08b17f58cb1b/go.mod h1:/yhzCV0xPfx6jb1bBgRFjl5lytqVqZXEaeqWP8lTEao= github.com/tj/go-spin v1.1.0/go.mod h1:Mg1mzmePZm4dva8Qz60H2lHwmJ2loum4VIrLgVnKwh4= -github.com/weni-ai/goflow v0.2.2-goflow-0.144.3-wenigpt-1-dev h1:6W8hSQ9/1W6Oro01GzvbNnpRrys9+HO+Ie7wkPN1nMg= -github.com/weni-ai/goflow v0.2.2-goflow-0.144.3-wenigpt-1-dev/go.mod h1:o0xaVWP9qNcauBSlcNLa79Fm2oCPV+BDpheFRa/D40c= +github.com/weni-ai/goflow v0.5.2-goflow-0.144.3-wenigpt-1-dev h1:A2EbnnTfPlnelIpA6cbqypZVYBY6AWTnFNiLESgqRGo= +github.com/weni-ai/goflow v0.5.2-goflow-0.144.3-wenigpt-1-dev/go.mod h1:o0xaVWP9qNcauBSlcNLa79Fm2oCPV+BDpheFRa/D40c= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= From d0f61f2793a10d0e0792b4fbef29fcbefc3b1601 Mon Sep 17 00:00:00 2001 From: Robi9 Date: Thu, 11 Jan 2024 10:09:11 -0300 Subject: [PATCH 06/11] Send correct hook to webhook monitor --- core/handlers/wenigpt_called.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/handlers/wenigpt_called.go b/core/handlers/wenigpt_called.go index 77835a216..4d49e54c8 100644 --- a/core/handlers/wenigpt_called.go +++ b/core/handlers/wenigpt_called.go @@ -22,7 +22,7 @@ type WeniGPTCall struct { } func handleWeniGPTCalled(ctx context.Context, rt *runtime.Runtime, tx *sqlx.Tx, oa *models.OrgAssets, scene *models.Scene, e flows.Event) error { - event := e.(*events.WeniGPTCalledEvent) + event := e.(*events.WebhookCalledEvent) logrus.WithFields(logrus.Fields{ "contact_uuid": scene.ContactUUID(), "session_id": scene.SessionID(), @@ -35,7 +35,7 @@ func handleWeniGPTCalled(ctx context.Context, rt *runtime.Runtime, tx *sqlx.Tx, _, step := scene.Session().FindStep(e.StepUUID()) // pass node and response time to the hook that monitors webhook health - scene.AppendToEventPreCommitHook(hooks.MonitorWebhooks, WeniGPTCall{NodeUUID: step.NodeUUID(), Event: event}) + scene.AppendToEventPreCommitHook(hooks.MonitorWebhooks, &hooks.WebhookCall{NodeUUID: step.NodeUUID(), Event: event}) return nil } From 977ab48e3669845b934402bfc198ec01bea64805 Mon Sep 17 00:00:00 2001 From: Robi9 Date: Thu, 11 Jan 2024 11:06:00 -0300 Subject: [PATCH 07/11] Fix call event for weniGPT --- core/goflow/engine.go | 2 ++ core/handlers/wenigpt_called.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- mailroom.go | 7 ------- 5 files changed, 6 insertions(+), 11 deletions(-) diff --git a/core/goflow/engine.go b/core/goflow/engine.go index 92036c426..65b53209b 100644 --- a/core/goflow/engine.go +++ b/core/goflow/engine.go @@ -7,6 +7,7 @@ import ( "github.com/nyaruka/goflow/flows" "github.com/nyaruka/goflow/flows/engine" "github.com/nyaruka/goflow/services/webhooks" + "github.com/nyaruka/goflow/services/wenigpt" "github.com/nyaruka/mailroom/runtime" "github.com/shopspring/decimal" @@ -71,6 +72,7 @@ func Engine(c *runtime.Config) flows.Engine { eng = engine.NewBuilder(). WithWebhookServiceFactory(webhooks.NewServiceFactory(httpClient, httpRetries, httpAccess, webhookHeaders, c.WebhooksMaxBodyBytes)). + WithWeniGPTServiceFactory(wenigpt.NewServiceFactory(httpClient, httpRetries, httpAccess, webhookHeaders, c.WebhooksMaxBodyBytes, c.WenigptAuthToken, c.WenigptBaseURL)). WithClassificationServiceFactory(classificationFactory(c)). WithEmailServiceFactory(emailFactory(c)). WithTicketServiceFactory(ticketFactory(c)). diff --git a/core/handlers/wenigpt_called.go b/core/handlers/wenigpt_called.go index 4d49e54c8..f71b55821 100644 --- a/core/handlers/wenigpt_called.go +++ b/core/handlers/wenigpt_called.go @@ -18,7 +18,7 @@ func init() { type WeniGPTCall struct { NodeUUID flows.NodeUUID - Event *events.WeniGPTCalledEvent + Event *events.WebhookCalledEvent } func handleWeniGPTCalled(ctx context.Context, rt *runtime.Runtime, tx *sqlx.Tx, oa *models.OrgAssets, scene *models.Scene, e flows.Event) error { diff --git a/go.mod b/go.mod index a6df384e9..a1ecbdbd6 100644 --- a/go.mod +++ b/go.mod @@ -70,4 +70,4 @@ go 1.17 replace github.com/nyaruka/gocommon => github.com/Ilhasoft/gocommon v1.16.2-weni -replace github.com/nyaruka/goflow => github.com/weni-ai/goflow v0.5.2-goflow-0.144.3-wenigpt-1-dev +replace github.com/nyaruka/goflow => github.com/weni-ai/goflow v0.5.2-goflow-0.144.3-wenigpt-2-develop diff --git a/go.sum b/go.sum index d3c4e4783..c728974e4 100644 --- a/go.sum +++ b/go.sum @@ -204,8 +204,8 @@ github.com/tj/assert v0.0.0-20171129193455-018094318fb0/go.mod h1:mZ9/Rh9oLWpLLD github.com/tj/go-elastic v0.0.0-20171221160941-36157cbbebc2/go.mod h1:WjeM0Oo1eNAjXGDx2yma7uG2XoyRZTq1uv3M/o7imD0= github.com/tj/go-kinesis v0.0.0-20171128231115-08b17f58cb1b/go.mod h1:/yhzCV0xPfx6jb1bBgRFjl5lytqVqZXEaeqWP8lTEao= github.com/tj/go-spin v1.1.0/go.mod h1:Mg1mzmePZm4dva8Qz60H2lHwmJ2loum4VIrLgVnKwh4= -github.com/weni-ai/goflow v0.5.2-goflow-0.144.3-wenigpt-1-dev h1:A2EbnnTfPlnelIpA6cbqypZVYBY6AWTnFNiLESgqRGo= -github.com/weni-ai/goflow v0.5.2-goflow-0.144.3-wenigpt-1-dev/go.mod h1:o0xaVWP9qNcauBSlcNLa79Fm2oCPV+BDpheFRa/D40c= +github.com/weni-ai/goflow v0.5.2-goflow-0.144.3-wenigpt-2-develop h1:twVCbAH0npd9esY9d3gicv8p798FmIGWJ+/Pwivo240= +github.com/weni-ai/goflow v0.5.2-goflow-0.144.3-wenigpt-2-develop/go.mod h1:o0xaVWP9qNcauBSlcNLa79Fm2oCPV+BDpheFRa/D40c= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= diff --git a/mailroom.go b/mailroom.go index f0566c0d8..4245b9f3f 100644 --- a/mailroom.go +++ b/mailroom.go @@ -8,7 +8,6 @@ import ( "time" "github.com/nyaruka/gocommon/storage" - "github.com/nyaruka/goflow/flows/actions" "github.com/nyaruka/goflow/flows/routers" "github.com/nyaruka/mailroom/core/queue" "github.com/nyaruka/mailroom/runtime" @@ -74,12 +73,6 @@ func NewMailroom(config *runtime.Config) *Mailroom { // set base url for zeroshot requests routers.SetZeroshotAPIURL(mr.rt.Config.ZeroshotAPIUrl) - // set authentication token for wenigpt requests in goflow - actions.SetWeniGPTToken(mr.rt.Config.WenigptAuthToken) - - // set base url for wenigpt requests - actions.SetWeniGPTAPIURL(mr.rt.Config.WenigptBaseURL) - return mr } From 7e5ccbcbcb191b63e7b99f82273e0c14f12eed51 Mon Sep 17 00:00:00 2001 From: Robi9 Date: Fri, 12 Jan 2024 15:20:27 -0300 Subject: [PATCH 08/11] Remove unnecessary struct --- core/handlers/wenigpt_called.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/handlers/wenigpt_called.go b/core/handlers/wenigpt_called.go index f71b55821..de2046170 100644 --- a/core/handlers/wenigpt_called.go +++ b/core/handlers/wenigpt_called.go @@ -16,11 +16,6 @@ func init() { models.RegisterEventHandler(events.TypeWeniGPTCalled, handleWeniGPTCalled) } -type WeniGPTCall struct { - NodeUUID flows.NodeUUID - Event *events.WebhookCalledEvent -} - func handleWeniGPTCalled(ctx context.Context, rt *runtime.Runtime, tx *sqlx.Tx, oa *models.OrgAssets, scene *models.Scene, e flows.Event) error { event := e.(*events.WebhookCalledEvent) logrus.WithFields(logrus.Fields{ From 9f2828263c48fe76e0bcadd53ea24502c10a0862 Mon Sep 17 00:00:00 2001 From: Robi9 Date: Wed, 24 Jan 2024 15:47:19 -0300 Subject: [PATCH 09/11] Add WithWeniGPTServiceFactory on simulator --- core/goflow/engine.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/goflow/engine.go b/core/goflow/engine.go index 65b53209b..5dea10da0 100644 --- a/core/goflow/engine.go +++ b/core/goflow/engine.go @@ -100,6 +100,7 @@ func Simulator(c *runtime.Config) flows.Engine { simulator = engine.NewBuilder(). WithWebhookServiceFactory(webhooks.NewServiceFactory(httpClient, nil, httpAccess, webhookHeaders, c.WebhooksMaxBodyBytes)). + WithWeniGPTServiceFactory(wenigpt.NewServiceFactory(httpClient, nil, httpAccess, webhookHeaders, c.WebhooksMaxBodyBytes, c.WenigptAuthToken, c.WenigptBaseURL)). WithClassificationServiceFactory(classificationFactory(c)). // simulated sessions do real classification WithExternalServiceServiceFactory(externalServiceFactory((c))). // and real external services WithMsgCatalogServiceFactory(msgCatalogFactory((c))). // msg catalog From 78b50c2132550bc6486c6581ab108483b215286d Mon Sep 17 00:00:00 2001 From: Robi9 Date: Thu, 25 Jan 2024 17:45:29 -0300 Subject: [PATCH 10/11] update goflow --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index a1ecbdbd6..caeb1b8aa 100644 --- a/go.mod +++ b/go.mod @@ -70,4 +70,4 @@ go 1.17 replace github.com/nyaruka/gocommon => github.com/Ilhasoft/gocommon v1.16.2-weni -replace github.com/nyaruka/goflow => github.com/weni-ai/goflow v0.5.2-goflow-0.144.3-wenigpt-2-develop +replace github.com/nyaruka/goflow => github.com/weni-ai/goflow v0.5.2-goflow-0.144.3-wenigpt-9-develop diff --git a/go.sum b/go.sum index c728974e4..ff16df34b 100644 --- a/go.sum +++ b/go.sum @@ -204,8 +204,8 @@ github.com/tj/assert v0.0.0-20171129193455-018094318fb0/go.mod h1:mZ9/Rh9oLWpLLD github.com/tj/go-elastic v0.0.0-20171221160941-36157cbbebc2/go.mod h1:WjeM0Oo1eNAjXGDx2yma7uG2XoyRZTq1uv3M/o7imD0= github.com/tj/go-kinesis v0.0.0-20171128231115-08b17f58cb1b/go.mod h1:/yhzCV0xPfx6jb1bBgRFjl5lytqVqZXEaeqWP8lTEao= github.com/tj/go-spin v1.1.0/go.mod h1:Mg1mzmePZm4dva8Qz60H2lHwmJ2loum4VIrLgVnKwh4= -github.com/weni-ai/goflow v0.5.2-goflow-0.144.3-wenigpt-2-develop h1:twVCbAH0npd9esY9d3gicv8p798FmIGWJ+/Pwivo240= -github.com/weni-ai/goflow v0.5.2-goflow-0.144.3-wenigpt-2-develop/go.mod h1:o0xaVWP9qNcauBSlcNLa79Fm2oCPV+BDpheFRa/D40c= +github.com/weni-ai/goflow v0.5.2-goflow-0.144.3-wenigpt-9-develop h1:bqKQxgvkYY7EADiZZmNihxeVR3n+WPxmHpasgE6qAFI= +github.com/weni-ai/goflow v0.5.2-goflow-0.144.3-wenigpt-9-develop/go.mod h1:o0xaVWP9qNcauBSlcNLa79Fm2oCPV+BDpheFRa/D40c= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= From f11f703f708dd17b5059f033b0e9169a9e8f7079 Mon Sep 17 00:00:00 2001 From: Robi9 Date: Wed, 31 Jan 2024 18:36:48 -0300 Subject: [PATCH 11/11] Update goflow to version v0.6.0-goflow-0.144.3 --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index caeb1b8aa..e2383d252 100644 --- a/go.mod +++ b/go.mod @@ -70,4 +70,4 @@ go 1.17 replace github.com/nyaruka/gocommon => github.com/Ilhasoft/gocommon v1.16.2-weni -replace github.com/nyaruka/goflow => github.com/weni-ai/goflow v0.5.2-goflow-0.144.3-wenigpt-9-develop +replace github.com/nyaruka/goflow => github.com/weni-ai/goflow v0.6.0-goflow-0.144.3 diff --git a/go.sum b/go.sum index ff16df34b..b6b4aba2d 100644 --- a/go.sum +++ b/go.sum @@ -204,8 +204,8 @@ github.com/tj/assert v0.0.0-20171129193455-018094318fb0/go.mod h1:mZ9/Rh9oLWpLLD github.com/tj/go-elastic v0.0.0-20171221160941-36157cbbebc2/go.mod h1:WjeM0Oo1eNAjXGDx2yma7uG2XoyRZTq1uv3M/o7imD0= github.com/tj/go-kinesis v0.0.0-20171128231115-08b17f58cb1b/go.mod h1:/yhzCV0xPfx6jb1bBgRFjl5lytqVqZXEaeqWP8lTEao= github.com/tj/go-spin v1.1.0/go.mod h1:Mg1mzmePZm4dva8Qz60H2lHwmJ2loum4VIrLgVnKwh4= -github.com/weni-ai/goflow v0.5.2-goflow-0.144.3-wenigpt-9-develop h1:bqKQxgvkYY7EADiZZmNihxeVR3n+WPxmHpasgE6qAFI= -github.com/weni-ai/goflow v0.5.2-goflow-0.144.3-wenigpt-9-develop/go.mod h1:o0xaVWP9qNcauBSlcNLa79Fm2oCPV+BDpheFRa/D40c= +github.com/weni-ai/goflow v0.6.0-goflow-0.144.3 h1:SalpB3qAqFvZkp0lsHkSJLnr6FbuKf0sivOGkfSHbk8= +github.com/weni-ai/goflow v0.6.0-goflow-0.144.3/go.mod h1:o0xaVWP9qNcauBSlcNLa79Fm2oCPV+BDpheFRa/D40c= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=