@@ -10,13 +10,12 @@ import (
1010 "strings"
1111 "testing"
1212
13- "github.com/stretchr/testify/assert"
14- "github.com/stretchr/testify/require"
15-
1613 coremodel "github.com/labring/aiproxy/core/model"
1714 "github.com/labring/aiproxy/core/relay/meta"
1815 "github.com/labring/aiproxy/core/relay/mode"
1916 relaymodel "github.com/labring/aiproxy/core/relay/model"
17+ "github.com/stretchr/testify/assert"
18+ "github.com/stretchr/testify/require"
2019)
2120
2221func TestAdaptorSupportModeGemini (t * testing.T ) {
@@ -51,7 +50,7 @@ func TestAdaptorSetupRequestHeaderWithAppID(t *testing.T) {
5150
5251 require .NoError (t , err )
5352 assert .Equal (t , "Bearer test-key" , req .Header .Get ("Authorization" ))
54- assert .Equal (t , "app-test" , req .Header .Get ("appid " ))
53+ assert .Equal (t , "app-test" , req .Header .Get ("Appid " ))
5554}
5655
5756func TestAdaptorSetupRequestHeaderWithoutAppID (t * testing.T ) {
@@ -75,7 +74,7 @@ func TestAdaptorSetupRequestHeaderWithoutAppID(t *testing.T) {
7574
7675 require .NoError (t , err )
7776 assert .Equal (t , "Bearer test-key" , req .Header .Get ("Authorization" ))
78- assert .Empty (t , req .Header .Get ("appid " ))
77+ assert .Empty (t , req .Header .Get ("Appid " ))
7978}
8079
8180func TestAdaptorMetadataConfigSchema (t * testing.T ) {
0 commit comments