diff --git a/internal/kiwix/client.go b/internal/kiwix/client.go index 5b4e607..d32f264 100644 --- a/internal/kiwix/client.go +++ b/internal/kiwix/client.go @@ -82,7 +82,7 @@ type rss struct { Description struct { Inner string `xml:",innerxml"` } `xml:"description"` - WordCount string `xml:"wordCount"` + WordCount string `xml:"wordCount"` } `xml:"channel>item"` } diff --git a/internal/kiwix/rewrite_test.go b/internal/kiwix/rewrite_test.go index e9cd43e..6efdae6 100644 --- a/internal/kiwix/rewrite_test.go +++ b/internal/kiwix/rewrite_test.go @@ -81,7 +81,7 @@ func TestRewriteConstrainsTheCall(t *testing.T) { func TestRewriteRejectsBadModelOutput(t *testing.T) { bad := []string{ `{"query":"почему небо синее"}`, // never translated - `{"query":""}`, // empty + `{"query":""}`, // empty `{"query":"the sky is blue because sunlight is scattered by air"}`, // an answer // Note: a SHORT English prose fragment ("Let me analyze this request") // is under the word cap and cannot be caught here. The grammar is what