constants.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package siliconflow
  2. import (
  3. "github.com/labring/aiproxy/core/model"
  4. "github.com/labring/aiproxy/core/relay/mode"
  5. )
  6. // https://docs.siliconflow.cn/docs/getting-started
  7. var ModelList = []model.ModelConfig{
  8. {
  9. Model: "BAAI/bge-reranker-v2-m3",
  10. Type: mode.Rerank,
  11. Owner: model.ModelOwnerBAAI,
  12. RPM: 2000,
  13. },
  14. {
  15. Model: "BAAI/bge-large-zh-v1.5",
  16. Type: mode.Embeddings,
  17. Owner: model.ModelOwnerBAAI,
  18. RPM: 2000,
  19. },
  20. {
  21. Model: "fishaudio/fish-speech-1.4",
  22. Type: mode.AudioSpeech,
  23. Owner: model.ModelOwnerFishAudio,
  24. Config: map[model.ModelConfigKey]any{
  25. model.ModelConfigSupportVoicesKey: []string{
  26. "fishaudio/fish-speech-1.4:alex",
  27. "fishaudio/fish-speech-1.4:benjamin",
  28. "fishaudio/fish-speech-1.4:charles",
  29. "fishaudio/fish-speech-1.4:david",
  30. "fishaudio/fish-speech-1.4:anna",
  31. "fishaudio/fish-speech-1.4:bella",
  32. "fishaudio/fish-speech-1.4:claire",
  33. "fishaudio/fish-speech-1.4:diana",
  34. },
  35. },
  36. },
  37. {
  38. Model: "FunAudioLLM/SenseVoiceSmall",
  39. Type: mode.AudioTranscription,
  40. Owner: model.ModelOwnerFunAudioLLM,
  41. },
  42. {
  43. Model: "stabilityai/stable-diffusion-3-5-large",
  44. Type: mode.ImagesGenerations,
  45. Owner: model.ModelOwnerStabilityAI,
  46. ImagePrices: map[string]float64{
  47. "1024x1024": 0,
  48. "512x1024": 0,
  49. "768x512": 0,
  50. "768x1024": 0,
  51. "1024x576": 0,
  52. "576x1024": 0,
  53. },
  54. },
  55. {
  56. Model: "stabilityai/stable-diffusion-3-5-large-turbo",
  57. Type: mode.ImagesGenerations,
  58. Owner: model.ModelOwnerStabilityAI,
  59. ImagePrices: map[string]float64{
  60. "1024x1024": 0,
  61. "512x1024": 0,
  62. "768x512": 0,
  63. "768x1024": 0,
  64. "1024x576": 0,
  65. "576x1024": 0,
  66. },
  67. },
  68. }