this repo has no description

limit number of ner requests

Changed files
+3 -1
+3 -1
handle_create.go
···
"bytes"
"context"
"fmt"
+
"slices"
"strings"
"time"
···
return err
}
-
if rec.Text != "" && p.nervanaClient != nil {
+
isEn := slices.Contains(rec.Langs, "en")
+
if rec.Text != "" && rec.Reply == nil && isEn && p.nervanaClient != nil {
go func(ctx context.Context, rec bsky.FeedPost, did, rkey string) {
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
defer cancel()