選択できるのは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. }