Ви не можете вибрати більше 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. }