Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix(go-models): remove duplicate roundTripperFunc from novita_test.go (#15492)

dripsmvcpd4f1c2c95c7d
diff --git a/internal/entity/models/novita_test.go b/internal/entity/models/novita_test.go
index 43d12b0c18..fb3c81f7f8 100644
--- a/internal/entity/models/novita_test.go
+++ b/internal/entity/models/novita_test.go
@@ -9,12 +9,6 @@ import (
"testing"
)
-type roundTripperFunc func(*http.Request) (*http.Response, error)
-
-func (f roundTripperFunc) RoundTrip(r *http.Request) (*http.Response, error) {
- return f(r)
-}
-
func newNovitaServer(t *testing.T, expectedPath string, handler func(t *testing.T, body map[string]interface{}, w http.ResponseWriter)) *httptest.Server {
t.Helper()
return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {