channel.go 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. package constant
  2. const (
  3. ChannelTypeUnknown = 0
  4. ChannelTypeOpenAI = 1
  5. ChannelTypeMidjourney = 2
  6. ChannelTypeAzure = 3
  7. ChannelTypeOllama = 4
  8. ChannelTypeMidjourneyPlus = 5
  9. ChannelTypeOpenAIMax = 6
  10. ChannelTypeOhMyGPT = 7
  11. ChannelTypeCustom = 8
  12. ChannelTypeAILS = 9
  13. ChannelTypeAIProxy = 10
  14. ChannelTypePaLM = 11
  15. ChannelTypeAPI2GPT = 12
  16. ChannelTypeAIGC2D = 13
  17. ChannelTypeAnthropic = 14
  18. ChannelTypeBaidu = 15
  19. ChannelTypeZhipu = 16
  20. ChannelTypeAli = 17
  21. ChannelTypeXunfei = 18
  22. ChannelType360 = 19
  23. ChannelTypeOpenRouter = 20
  24. ChannelTypeAIProxyLibrary = 21
  25. ChannelTypeFastGPT = 22
  26. ChannelTypeTencent = 23
  27. ChannelTypeGemini = 24
  28. ChannelTypeMoonshot = 25
  29. ChannelTypeZhipu_v4 = 26
  30. ChannelTypePerplexity = 27
  31. ChannelTypeLingYiWanWu = 31
  32. ChannelTypeAws = 33
  33. ChannelTypeCohere = 34
  34. ChannelTypeMiniMax = 35
  35. ChannelTypeSunoAPI = 36
  36. ChannelTypeDify = 37
  37. ChannelTypeJina = 38
  38. ChannelCloudflare = 39
  39. ChannelTypeSiliconFlow = 40
  40. ChannelTypeVertexAi = 41
  41. ChannelTypeMistral = 42
  42. ChannelTypeDeepSeek = 43
  43. ChannelTypeMokaAI = 44
  44. ChannelTypeVolcEngine = 45
  45. ChannelTypeBaiduV2 = 46
  46. ChannelTypeXinference = 47
  47. ChannelTypeXai = 48
  48. ChannelTypeCoze = 49
  49. ChannelTypeKling = 50
  50. ChannelTypeJimeng = 51
  51. ChannelTypeDummy // this one is only for count, do not add any channel after this
  52. )
  53. var ChannelBaseURLs = []string{
  54. "", // 0
  55. "https://api.openai.com", // 1
  56. "https://oa.api2d.net", // 2
  57. "", // 3
  58. "http://localhost:11434", // 4
  59. "https://api.openai-sb.com", // 5
  60. "https://api.openaimax.com", // 6
  61. "https://api.ohmygpt.com", // 7
  62. "", // 8
  63. "https://api.caipacity.com", // 9
  64. "https://api.aiproxy.io", // 10
  65. "", // 11
  66. "https://api.api2gpt.com", // 12
  67. "https://api.aigc2d.com", // 13
  68. "https://api.anthropic.com", // 14
  69. "https://aip.baidubce.com", // 15
  70. "https://open.bigmodel.cn", // 16
  71. "https://dashscope.aliyuncs.com", // 17
  72. "", // 18
  73. "https://api.360.cn", // 19
  74. "https://openrouter.ai/api", // 20
  75. "https://api.aiproxy.io", // 21
  76. "https://fastgpt.run/api/openapi", // 22
  77. "https://hunyuan.tencentcloudapi.com", //23
  78. "https://generativelanguage.googleapis.com", //24
  79. "https://api.moonshot.cn", //25
  80. "https://open.bigmodel.cn", //26
  81. "https://api.perplexity.ai", //27
  82. "", //28
  83. "", //29
  84. "", //30
  85. "https://api.lingyiwanwu.com", //31
  86. "", //32
  87. "", //33
  88. "https://api.cohere.ai", //34
  89. "https://api.minimax.chat", //35
  90. "", //36
  91. "https://api.dify.ai", //37
  92. "https://api.jina.ai", //38
  93. "https://api.cloudflare.com", //39
  94. "https://api.siliconflow.cn", //40
  95. "", //41
  96. "https://api.mistral.ai", //42
  97. "https://api.deepseek.com", //43
  98. "https://api.moka.ai", //44
  99. "https://ark.cn-beijing.volces.com", //45
  100. "https://qianfan.baidubce.com", //46
  101. "", //47
  102. "https://api.x.ai", //48
  103. "https://api.coze.cn", //49
  104. "https://api.klingai.com", //50
  105. "https://visual.volcengineapi.com", //51
  106. }