Spaces:
Sleeping
Sleeping
fixed examples for mode selection
Browse files- web/src/App.tsx +46 -0
web/src/App.tsx
CHANGED
|
@@ -869,6 +869,51 @@ function App() {
|
|
| 869 |
{ id: 'deepseek-reasoner', label: 'DeepSeek R1', title: 'DeepSeek R1 (deep reasoning)' },
|
| 870 |
];
|
| 871 |
const currentModeLabel = assistantMode === 'legal-support' ? 'Legal Support' : 'Generalist';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 872 |
|
| 873 |
const toggleModel = () => {
|
| 874 |
setSelectedModel((prev) =>
|
|
@@ -2004,3 +2049,4 @@ export default App;
|
|
| 2004 |
|
| 2005 |
|
| 2006 |
|
|
|
|
|
|
| 869 |
{ id: 'deepseek-reasoner', label: 'DeepSeek R1', title: 'DeepSeek R1 (deep reasoning)' },
|
| 870 |
];
|
| 871 |
const currentModeLabel = assistantMode === 'legal-support' ? 'Legal Support' : 'Generalist';
|
| 872 |
+
const legalExamples = [
|
| 873 |
+
{
|
| 874 |
+
icon: 'L',
|
| 875 |
+
label: 'ACL remedies for major failure',
|
| 876 |
+
prompt: 'Under Australian Consumer Law, what remedies can a consumer seek for a major failure in goods?',
|
| 877 |
+
},
|
| 878 |
+
{
|
| 879 |
+
icon: 'C',
|
| 880 |
+
label: 'Case law on contract interpretation',
|
| 881 |
+
prompt: 'Find relevant High Court or Federal Court authorities on contractual interpretation in Australia.',
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
icon: 'R',
|
| 885 |
+
label: 'Restraint of trade analysis',
|
| 886 |
+
prompt: 'Compare restraint of trade enforceability principles under NSW law and federal competition law.',
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
icon: 'I',
|
| 890 |
+
label: 'Issue spotting and authority mapping',
|
| 891 |
+
prompt: 'List likely legal issues and governing Australian authorities for an online subscription cancellation dispute.',
|
| 892 |
+
},
|
| 893 |
+
];
|
| 894 |
+
const generalistExamples = [
|
| 895 |
+
{
|
| 896 |
+
icon: 'M',
|
| 897 |
+
label: 'Prove sqrt(2) is irrational (Lean 4)',
|
| 898 |
+
prompt: 'Prove that sqrt(2) is irrational using first principles in Lean 4.',
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
icon: 'I',
|
| 902 |
+
label: 'Solve integral x^2 sin(x)',
|
| 903 |
+
prompt: 'Solve the integral of x^2 sin(x) with SymPy and show the result.',
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
icon: 'P',
|
| 907 |
+
label: 'Find primes with Prolog',
|
| 908 |
+
prompt: 'Find all prime numbers less than 100 using Prolog.',
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
icon: 'L',
|
| 912 |
+
label: 'Design a simple API in TypeScript',
|
| 913 |
+
prompt: 'Design a clean TypeScript Express API structure for a todo app.',
|
| 914 |
+
},
|
| 915 |
+
];
|
| 916 |
+
const activeExamples = assistantMode === 'legal-support' ? legalExamples : generalistExamples;
|
| 917 |
|
| 918 |
const toggleModel = () => {
|
| 919 |
setSelectedModel((prev) =>
|
|
|
|
| 2049 |
|
| 2050 |
|
| 2051 |
|
| 2052 |
+
|