您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

18 行
512 B

  1. package common
  2. import (
  3. "testing"
  4. "github.com/QuantumNous/new-api/constant"
  5. "github.com/stretchr/testify/require"
  6. )
  7. func TestChinaMobileSeedanceChannelMappings(t *testing.T) {
  8. apiType, ok := ChannelType2APIType(constant.ChannelTypeChinaMobileSeedance)
  9. require.True(t, ok)
  10. require.Equal(t, constant.APITypeVolcEngine, apiType)
  11. endpoints := GetEndpointTypesByChannelType(constant.ChannelTypeChinaMobileSeedance, "doubao-seedance-2.0")
  12. require.Contains(t, endpoints, constant.EndpointTypeDoubaoVideo)
  13. }