kaiiddo commited on
Commit
a64bb90
·
verified ·
1 Parent(s): 5b3a257

Create models/modelConfig.js

Browse files
Files changed (1) hide show
  1. src/models/modelConfig.js +115 -0
src/models/modelConfig.js ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Model configuration for different companies
2
+ export const modelCompanies = [
3
+ {
4
+ id: 'deepseek',
5
+ name: 'DeepSeek',
6
+ logo: 'brain-circuit', // Lucide icon name
7
+ models: [
8
+ {
9
+ id: 'deepseek-v3.2-exp',
10
+ name: 'DeepSeek V3.2 Exp',
11
+ description: 'Latest experimental version with enhanced reasoning',
12
+ provider: 'novita',
13
+ endpoint: 'deepseek-ai/DeepSeek-V3.2-Exp'
14
+ },
15
+ {
16
+ id: 'deepseek-v3',
17
+ name: 'DeepSeek V3',
18
+ description: 'Powerful general-purpose model',
19
+ provider: 'novita',
20
+ endpoint: 'deepseek-ai/DeepSeek-V3'
21
+ },
22
+ {
23
+ id: 'deepseek-coder',
24
+ name: 'DeepSeek Coder',
25
+ description: 'Specialized in programming and code generation',
26
+ provider: 'novita',
27
+ endpoint: 'deepseek-ai/DeepSeek-Coder-V2'
28
+ }
29
+ ]
30
+ },
31
+ {
32
+ id: 'zai-org',
33
+ name: 'ZAI Org',
34
+ logo: 'atom', // Lucide icon name
35
+ models: [
36
+ {
37
+ id: 'glm-4.6',
38
+ name: 'GLM-4.6',
39
+ description: 'Advanced multimodal language model',
40
+ provider: 'zai-org',
41
+ endpoint: 'zai-org/GLM-4.6'
42
+ },
43
+ {
44
+ id: 'glm-4',
45
+ name: 'GLM-4',
46
+ description: 'General language model v4',
47
+ provider: 'zai-org',
48
+ endpoint: 'zai-org/GLM-4'
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ id: 'synapse',
54
+ name: 'SynapseAI',
55
+ logo: 'neuron', // Lucide icon name
56
+ models: [
57
+ {
58
+ id: 'synapse-7b',
59
+ name: 'Synapse-7B',
60
+ description: 'Fast and efficient model for general tasks',
61
+ provider: 'synapse',
62
+ endpoint: 'synapse-ai/Synapse-7B'
63
+ },
64
+ {
65
+ id: 'synapse-13b',
66
+ name: 'Synapse-13B',
67
+ description: 'Advanced model for complex reasoning',
68
+ provider: 'synapse',
69
+ endpoint: 'synapse-ai/Synapse-13B'
70
+ },
71
+ {
72
+ id: 'synapse-70b',
73
+ name: 'Synapse-70B',
74
+ description: 'Most powerful model for expert tasks',
75
+ provider: 'synapse',
76
+ endpoint: 'synapse-ai/Synapse-70B'
77
+ }
78
+ ]
79
+ },
80
+ {
81
+ id: 'meta',
82
+ name: 'Meta',
83
+ logo: 'square-activity', // Lucide icon name
84
+ models: [
85
+ {
86
+ id: 'llama-3.1-8b',
87
+ name: 'Llama 3.1 8B',
88
+ description: 'Efficient and capable small model',
89
+ provider: 'meta',
90
+ endpoint: 'meta-llama/Llama-3.1-8B'
91
+ },
92
+ {
93
+ id: 'llama-3.1-70b',
94
+ name: 'Llama 3.1 70B',
95
+ description: 'Large model for complex tasks',
96
+ provider: 'meta',
97
+ endpoint: 'meta-llama/Llama-3.1-70B'
98
+ }
99
+ ]
100
+ }
101
+ ];
102
+
103
+ // Get all models flattened for easy access
104
+ export const allModels = modelCompanies.flatMap(company =>
105
+ company.models.map(model => ({
106
+ ...model,
107
+ company: company.name,
108
+ companyLogo: company.logo
109
+ }))
110
+ );
111
+
112
+ // Find model by ID
113
+ export const findModelById = (modelId) => {
114
+ return allModels.find(model => model.id === modelId);
115
+ };