Skip to content

Commit

Permalink
Add WithWeniGPTServiceFactory on simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
Robi9 committed Jan 31, 2024
1 parent 7e5ccbc commit 9f28282
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/goflow/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f28282

Please sign in to comment.