constants.ts 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. import { ModelType } from '@/types/chat';
  2. import { DBType } from '@/types/db';
  3. export const MODEL_ICON_MAP: Record<ModelType, { label: string; icon: string }> = {
  4. proxyllm: { label: 'Proxy LLM', icon: '/models/chatgpt.png' },
  5. 'flan-t5-base': { label: 'flan-t5-base', icon: '/models/google.png' },
  6. 'vicuna-13b': { label: 'vicuna-13b', icon: '/models/vicuna.jpeg' },
  7. 'vicuna-7b': { label: 'vicuna-7b', icon: '/models/vicuna.jpeg' },
  8. 'vicuna-13b-v1.5': { label: 'vicuna-13b-v1.5', icon: '/models/vicuna.jpeg' },
  9. 'vicuna-7b-v1.5': { label: 'vicuna-7b-v1.5', icon: '/models/vicuna.jpeg' },
  10. 'codegen2-1b': { label: 'codegen2-1B', icon: '/models/vicuna.jpeg' },
  11. 'codet5p-2b': { label: 'codet5p-2b', icon: '/models/vicuna.jpeg' },
  12. 'chatglm-6b-int4': { label: 'chatglm-6b-int4', icon: '/models/chatglm.png' },
  13. 'chatglm-6b': { label: 'chatglm-6b', icon: '/models/chatglm.png' },
  14. 'chatglm2-6b': { label: 'chatglm2-6b', icon: '/models/chatglm.png' },
  15. 'chatglm2-6b-int4': { label: 'chatglm2-6b-int4', icon: '/models/chatglm.png' },
  16. 'guanaco-33b-merged': { label: 'guanaco-33b-merged', icon: '/models/huggingface.svg' },
  17. 'falcon-40b': { label: 'falcon-40b', icon: '/models/falcon.jpeg' },
  18. 'gorilla-7b': { label: 'gorilla-7b', icon: '/models/gorilla.png' },
  19. 'gptj-6b': { label: 'ggml-gpt4all-j-v1.3-groovy.bin', icon: '' },
  20. chatgpt_proxyllm: { label: 'chatgpt_proxyllm', icon: '/models/chatgpt.png' },
  21. bard_proxyllm: { label: 'bard_proxyllm', icon: '/models/bard.gif' },
  22. claude_proxyllm: { label: 'claude_proxyllm', icon: '/models/claude.png' },
  23. wenxin_proxyllm: { label: 'wenxin_proxyllm', icon: '' },
  24. tongyi_proxyllm: { label: 'tongyi_proxyllm', icon: '/models/qwen2.png' },
  25. zhipu_proxyllm: { label: 'zhipu_proxyllm', icon: '/models/zhipu.png' },
  26. yi_proxyllm: { label: 'yi_proxyllm', icon: '/models/yi.svg' },
  27. 'yi-34b-chat': { label: 'yi-34b-chat', icon: '/models/yi.svg' },
  28. 'yi-34b-chat-8bits': { label: 'yi-34b-chat-8bits', icon: '/models/yi.svg' },
  29. 'yi-34b-chat-4bits': { label: 'yi-34b-chat-4bits', icon: '/models/yi.svg' },
  30. 'yi-6b-chat': { label: 'yi-6b-chat', icon: '/models/yi.svg' },
  31. bailing_proxyllm: { label: 'bailing_proxyllm', icon: '/models/bailing.svg' },
  32. antglm_proxyllm: { label: 'antglm_proxyllm', icon: '/models/huggingface.svg' },
  33. chatglm_proxyllm: { label: 'chatglm_proxyllm', icon: '/models/chatglm.png' },
  34. qwen7b_proxyllm: { label: 'qwen7b_proxyllm', icon: '/models/tongyi.apng' },
  35. qwen72b_proxyllm: { label: 'qwen72b_proxyllm', icon: '/models/qwen2.png' },
  36. qwen110b_proxyllm: { label: 'qwen110b_proxyllm', icon: '/models/qwen2.png' },
  37. 'llama-2-7b': { label: 'Llama-2-7b-chat-hf', icon: '/models/llama.jpg' },
  38. 'llama-2-13b': { label: 'Llama-2-13b-chat-hf', icon: '/models/llama.jpg' },
  39. 'llama-2-70b': { label: 'Llama-2-70b-chat-hf', icon: '/models/llama.jpg' },
  40. 'baichuan-13b': { label: 'Baichuan-13B-Chat', icon: '/models/baichuan.png' },
  41. 'baichuan-7b': { label: 'baichuan-7b', icon: '/models/baichuan.png' },
  42. 'baichuan2-7b': { label: 'Baichuan2-7B-Chat', icon: '/models/baichuan.png' },
  43. 'baichuan2-13b': { label: 'Baichuan2-13B-Chat', icon: '/models/baichuan.png' },
  44. 'wizardlm-13b': { label: 'WizardLM-13B-V1.2', icon: '/models/wizardlm.png' },
  45. 'llama-cpp': { label: 'ggml-model-q4_0.bin', icon: '/models/huggingface.svg' },
  46. 'internlm-7b': { label: 'internlm-chat-7b-v1_1', icon: '/models/internlm.png' },
  47. 'internlm-7b-8k': { label: 'internlm-chat-7b-8k', icon: '/models/internlm.png' },
  48. 'solar-10.7b-instruct-v1.0': { label: 'solar-10.7b-instruct-v1.0', icon: '/models/solar_logo.png' },
  49. bailing_65b_v21_0520_proxyllm: { label: 'bailing_65b_v21_0520_proxyllm', icon: '/models/bailing.svg' },
  50. };
  51. export const MODEL_ICON_DICT: Record<string, string> = {
  52. proxyllm: '/models/chatgpt.png',
  53. qwen: '/models/qwen2.png',
  54. bailing: '/models/bailing.svg',
  55. antglm: '/models/huggingface.svg',
  56. chatgpt: '/models/chatgpt.png',
  57. vicuna: '/models/vicuna.jpeg',
  58. flan: '/models/google.png',
  59. code: '/models/vicuna.jpeg',
  60. chatglm: '/models/chatglm.png',
  61. guanaco: '/models/huggingface.svg',
  62. gorilla: '/models/gorilla.png',
  63. gptj: '/models/huggingface.svg',
  64. bard: '/models/bard.gif',
  65. claude: '/models/claude.png',
  66. wenxin: '/models/huggingface.svg',
  67. tongyi: '/models/qwen2.png',
  68. zhipu: '/models/zhipu.png',
  69. llama: '/models/llama.jpg',
  70. baichuan: '/models/baichuan.png',
  71. wizardlm: '/models/wizardlm.png',
  72. internlm: '/models/internlm.png',
  73. solar: '/models/solar_logo.png',
  74. };
  75. export const dbMapper: Record<DBType, { label: string; icon: string; desc: string }> = {
  76. mysql: {
  77. label: 'MySQL',
  78. icon: '/icons/mysql.png',
  79. desc: 'Fast, reliable, scalable open-source relational database management system.',
  80. },
  81. oceanbase: {
  82. label: 'OceanBase',
  83. icon: '/icons/oceanbase.png',
  84. desc: 'An Ultra-Fast & Cost-Effective Distributed SQL Database.',
  85. },
  86. mssql: {
  87. label: 'MSSQL',
  88. icon: '/icons/mssql.png',
  89. desc: 'Powerful, scalable, secure relational database system by Microsoft.',
  90. },
  91. duckdb: {
  92. label: 'DuckDB',
  93. icon: '/icons/duckdb.png',
  94. desc: 'In-memory analytical database with efficient query processing.',
  95. },
  96. sqlite: {
  97. label: 'Sqlite',
  98. icon: '/icons/sqlite.png',
  99. desc: 'Lightweight embedded relational database with simplicity and portability.',
  100. },
  101. clickhouse: {
  102. label: 'ClickHouse',
  103. icon: '/icons/clickhouse.png',
  104. desc: 'Columnar database for high-performance analytics and real-time queries.',
  105. },
  106. oracle: {
  107. label: 'Oracle',
  108. icon: '/icons/oracle.png',
  109. desc: 'Robust, scalable, secure relational database widely used in enterprises.',
  110. },
  111. access: {
  112. label: 'Access',
  113. icon: '/icons/access.png',
  114. desc: 'Easy-to-use relational database for small-scale applications by Microsoft.',
  115. },
  116. mongodb: {
  117. label: 'MongoDB',
  118. icon: '/icons/mongodb.png',
  119. desc: 'Flexible, scalable NoSQL document database for web and mobile apps.',
  120. },
  121. doris: {
  122. label: 'ApacheDoris',
  123. icon: '/icons/doris.png',
  124. desc: 'A new-generation open-source real-time data warehouse.',
  125. },
  126. starrocks: {
  127. label: 'StarRocks',
  128. icon: '/icons/starrocks.png',
  129. desc: 'An Open-Source, High-Performance Analytical Database.',
  130. },
  131. db2: { label: 'DB2', icon: '/icons/db2.png', desc: 'Scalable, secure relational database system developed by IBM.' },
  132. hbase: {
  133. label: 'HBase',
  134. icon: '/icons/hbase.png',
  135. desc: 'Distributed, scalable NoSQL database for large structured/semi-structured data.',
  136. },
  137. redis: {
  138. label: 'Redis',
  139. icon: '/icons/redis.png',
  140. desc: 'Fast, versatile in-memory data structure store as cache, DB, or broker.',
  141. },
  142. cassandra: {
  143. label: 'Cassandra',
  144. icon: '/icons/cassandra.png',
  145. desc: 'Scalable, fault-tolerant distributed NoSQL database for large data.',
  146. },
  147. couchbase: {
  148. label: 'Couchbase',
  149. icon: '/icons/couchbase.png',
  150. desc: 'High-performance NoSQL document database with distributed architecture.',
  151. },
  152. omc: { label: 'Omc', icon: '/icons/odc.png', desc: 'Omc meta data.' },
  153. postgresql: {
  154. label: 'PostgreSQL',
  155. icon: '/icons/postgresql.png',
  156. desc: 'Powerful open-source relational database with extensibility and SQL standards.',
  157. },
  158. vertica: {
  159. label: 'Vertica',
  160. icon: '/icons/vertica.png',
  161. desc: 'Vertica is a strongly consistent, ACID-compliant, SQL data warehouse, built for the scale and complexity of today’s data-driven world.',
  162. },
  163. spark: { label: 'Spark', icon: '/icons/spark.png', desc: 'Unified engine for large-scale data analytics.' },
  164. hive: { label: 'Hive', icon: '/icons/hive.png', desc: 'A distributed fault-tolerant data warehouse system.' },
  165. space: { label: 'Space', icon: '/icons/knowledge.png', desc: 'knowledge analytics.' },
  166. tugraph: {
  167. label: 'TuGraph',
  168. icon: '/icons/tugraph.png',
  169. desc: 'TuGraph is a high-performance graph database jointly developed by Ant Group and Tsinghua University.',
  170. },
  171. };
  172. export const STORAGE_USERINFO_KEY: string = '';