feat: publish sanitized custom.97 source
This commit is contained in:
1022 files changed
+69903
-19207
No files matched your search
@@ -3,6 +3,8 @@ package service
|
||||
import (
|
||||
"math"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
|
||||
"github.com/QuantumNous/new-api/common"
|
||||
@@ -394,7 +396,8 @@ func TestPrepareTieredBillingForSelectedGroupStartsBillingAfterFreeGroup(t *test
|
||||
GroupRatioInfo: types.GroupRatioInfo{GroupRatio: 0.20},
|
||||
},
|
||||
}
|
||||
ctx, _ := gin.CreateTestContext(nil)
|
||||
ctx, _ := gin.CreateTestContext(httptest.NewRecorder())
|
||||
ctx.Request = httptest.NewRequest(http.MethodPost, "/v1/chat/completions", nil)
|
||||
|
||||
require.Nil(t, PrepareTieredBillingForSelectedGroup(ctx, relayInfo))
|
||||
require.NotNil(t, relayInfo.Billing)
|
||||
|
||||
Reference in new issue
Block a user