Muthukumarank commited on
Commit
dcd0e57
·
verified ·
1 Parent(s): 69c9536

UI 1000x upgrade: frontend/src/pages/SettingsPage.tsx

Browse files
Files changed (1) hide show
  1. frontend/src/pages/SettingsPage.tsx +41 -0
frontend/src/pages/SettingsPage.tsx ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React from 'react';
2
+
3
+ export function SettingsPage() {
4
+ return (
5
+ <div className="max-w-3xl mx-auto px-6 py-8">
6
+ <h1 className="text-xl font-bold mb-6">Settings</h1>
7
+ <div className="space-y-4">
8
+ <div className="p-5 rounded-xl bg-white/[0.015] border border-white/[0.05]">
9
+ <h3 className="text-sm font-semibold text-white mb-3">🤖 LLM Provider Configuration</h3>
10
+ <p className="text-xs text-gray-500 mb-4">Configure in backend <code className="bg-white/5 px-1.5 py-0.5 rounded">.env</code> file. Supports ANY OpenAI-compatible API.</p>
11
+ <div className="space-y-3">
12
+ <div><label className="text-[11px] text-gray-400 block mb-1">LLM_BASE_URL</label><input disabled value="https://api.groq.com/openai/v1" className="w-full bg-white/[0.03] border border-white/[0.06] rounded-lg px-3 py-2 text-xs text-gray-400" /></div>
13
+ <div><label className="text-[11px] text-gray-400 block mb-1">LLM_MODEL</label><input disabled value="llama-3.3-70b-versatile" className="w-full bg-white/[0.03] border border-white/[0.06] rounded-lg px-3 py-2 text-xs text-gray-400" /></div>
14
+ <div><label className="text-[11px] text-gray-400 block mb-1">LLM_API_KEY</label><input disabled value="••••••••" type="password" className="w-full bg-white/[0.03] border border-white/[0.06] rounded-lg px-3 py-2 text-xs text-gray-400" /></div>
15
+ </div>
16
+ <p className="text-[10px] text-gray-600 mt-3">Supported: Groq, Featherless, OpenAI, Together, DeepSeek, OpenRouter, Mistral, Ollama, LM Studio</p>
17
+ </div>
18
+
19
+ <div className="p-5 rounded-xl bg-white/[0.015] border border-white/[0.05]">
20
+ <h3 className="text-sm font-semibold text-white mb-3">⚡ Pipeline Settings</h3>
21
+ <div className="grid grid-cols-2 gap-4 text-xs">
22
+ <div className="flex justify-between"><span className="text-gray-400">Multi-Agent Mode</span><span className="text-emerald-400">Enabled</span></div>
23
+ <div className="flex justify-between"><span className="text-gray-400">Max Iterations</span><span className="text-white">2</span></div>
24
+ <div className="flex justify-between"><span className="text-gray-400">Quality Threshold</span><span className="text-white">Grade B (70%)</span></div>
25
+ <div className="flex justify-between"><span className="text-gray-400">Mutation Feedback</span><span className="text-emerald-400">Active</span></div>
26
+ </div>
27
+ </div>
28
+
29
+ <div className="p-5 rounded-xl bg-white/[0.015] border border-white/[0.05]">
30
+ <h3 className="text-sm font-semibold text-white mb-3">📊 System Info</h3>
31
+ <div className="grid grid-cols-2 gap-4 text-xs">
32
+ <div className="flex justify-between"><span className="text-gray-400">Version</span><span className="text-white">2.0.0</span></div>
33
+ <div className="flex justify-between"><span className="text-gray-400">Agents</span><span className="text-white">5 active</span></div>
34
+ <div className="flex justify-between"><span className="text-gray-400">Novelties</span><span className="text-white">8 features</span></div>
35
+ <div className="flex justify-between"><span className="text-gray-400">Research</span><span className="text-white">MuTAP + HITS</span></div>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ </div>
40
+ );
41
+ }