Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

18 rader
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. }