config.py 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # # 测试环境
  2. # # 本地milvus
  3. # milvus_uri = "http://127.0.0.1:19530"
  4. # # 测试环境 mysql 数据库配置
  5. # mysql_config = {
  6. # # # "host": "10.168.100.144",
  7. # # # "port": 3306,
  8. # # "host": "xia0miduo.gicp.net",
  9. # # "port": 3336,
  10. # # "user": "root",
  11. # # "password": "T@kai2025",
  12. # # "database": "deepseek_local",
  13. # # # "database": "rag_master",
  14. # "host": "10.168.100.10",
  15. # "port": 3306,
  16. # "user": "takai",
  17. # "password": "T@kai2025",
  18. # "database": "deepseek_local"
  19. # }
  20. # # 测试minio配置
  21. # minio_config = {
  22. # "minio_endpoint" : 'xia0miduo.gicp.net:9000',
  23. # "minio_access_key" : 'minioadmin',
  24. # "minio_secret_key" : 'minioadmin',
  25. # "minio_bucket" : 'papbtest',
  26. # "minio_url": "http://xia0miduo.gicp.net:9000",
  27. # "flag": False
  28. # }
  29. # # 测试环境vllm 链接
  30. # # vllm_url = "http://xia0miduo.gicp.net:8102/v1"
  31. # model_name_vllm_url_dict = {
  32. # "deepseek-chat":"https://api.deepseek.com",
  33. # "DeepSeek-R1-Distill-Qwen-14B": "http://xia0miduo.gicp.net:8102/v1",
  34. # "deepcoder-14b-sft": "http://xia0miduo.gicp.net:8102/v1",
  35. # "Qwen3-Coder-30B-loft": "http://xia0miduo.gicp.net:8102/v1"
  36. # }
  37. # # 测试环境redis 配置
  38. # redis_config_dict = {
  39. # "host": "localhost",
  40. # "port": 6379,
  41. # "db": 1
  42. # }
  43. # # 进度反馈Java中转服务器配置
  44. # progress_callback_config = {
  45. # "default_url": "http://10.10.10.2:8091/resource/sse/send",
  46. # "timeout": 5,
  47. # "estimate_seconds": 120
  48. # }
  49. 线上环境
  50. # 线上环境 mysql 数据库配置
  51. mysql_config = {
  52. "host": "127.0.0.1",
  53. "port": 3306,
  54. "user": "root",
  55. "password": "Lx304307910",
  56. "database": "chat_deepseek",
  57. }
  58. # 线上milvus配置
  59. milvus_uri = "http://127.0.0.1:19530"
  60. # 线上minio配置
  61. minio_config = {
  62. "minio_endpoint" : '10.1.28.14:9000',
  63. "minio_access_key" : 'uavadmin',
  64. "minio_secret_key" : 'YEDG9DZ8oby97UGMyxW&',
  65. "minio_bucket" : 'deepseek-doc',
  66. "minio_url": "https://10.1.28.14:9000",
  67. "flag": True
  68. }
  69. # 线上vllm 链接
  70. # vllm_url = "http://10.1.27.6:11817/v1"
  71. model_name_vllm_url_dict = {
  72. "Qwen3-30B": "http://10.1.27.6:11817/v1",
  73. "Qwen2-72B": "http://10.1.27.6:11818/v1",
  74. "Qwen3-30B-vl-chat": "http://10.1.27.6:11817/v1",
  75. }
  76. # 线上环境redis 配置
  77. redis_config_dict = {
  78. "host": "localhost",
  79. "port": 6379,
  80. "db": 1
  81. }
  82. # 线上进度反馈Java中转服务器配置
  83. progress_callback_config = {
  84. "default_url": "http://10.10.10.2:8091/resource/sse/send",
  85. "timeout": 5,
  86. "estimate_seconds": 120
  87. }