|
16 | 16 | <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">
|
17 | 17 | Model
|
18 | 18 | </label>
|
19 |
| - <select v-model="selectedModel" |
20 |
| - class="mt-1 w-full p-2 border rounded-md bg-white dark:bg-gray-700 |
21 |
| - text-gray-900 dark:text-gray-200 border-gray-300 dark:border-gray-600"> |
| 19 | + <select v-model="selectedModel" class="mt-1 w-full p-2 border rounded-md bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-200 border-gray-300 dark:border-gray-600"> |
22 | 20 | <option value="gpt-3.5-turbo">GPT-3.5 Turbo</option>
|
23 | 21 | <option value="gpt-4o-mini">GPT-4o-mini</option>
|
24 | 22 | <option value="gpt-4o">GPT-4o</option>
|
|
28 | 26 | <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">
|
29 | 27 | Temperature
|
30 | 28 | </label>
|
31 |
| - <input type="number" step="0.1" min="0" max="1.5" v-model="temperature" |
32 |
| - class="mt-1 w-full p-2 border rounded-md bg-white dark:bg-gray-700 |
33 |
| - text-gray-900 dark:text-gray-200 border-gray-300 dark:border-gray-600"/> |
| 29 | + <input type="number" step="0.1" min="0" max="1.5" v-model="temperature" class="mt-1 w-full p-2 border rounded-md bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-200 border-gray-300 dark:border-gray-600"/> |
34 | 30 | </div>
|
35 | 31 | <!-- Prompt as Select -->
|
36 | 32 | <div class="flex-1">
|
37 | 33 | <label class="block text-sm font-medium text-gray-700 dark:text-gray-200">
|
38 | 34 | Prompt
|
39 | 35 | </label>
|
40 |
| - <select v-model="prompt" |
41 |
| - class="mt-1 w-full p-2 border rounded-md bg-white dark:bg-gray-700 |
42 |
| - text-gray-900 dark:text-gray-200 border-gray-300 dark:border-gray-600"> |
| 36 | + <select v-model="prompt" class="mt-1 w-full p-2 border rounded-md bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-200 border-gray-300 dark:border-gray-600"> |
43 | 37 | <option value="assistant">Assistant</option>
|
44 | 38 | <option value="grammar_correction">Grammar Correction</option>
|
45 | 39 | <option value="sarcastic_response">Sarcastic</option>
|
|
54 | 48 | </div>
|
55 | 49 |
|
56 | 50 | <!-- Chat Messages -->
|
57 |
| - <div ref="chatContainer" |
58 |
| - :class="['border border-gray-300 dark:border-gray-600 rounded-md p-4 h-96 overflow-y-auto mb-4', { blinking: isGenerating }]" |
59 |
| - > |
| 51 | + <div ref="chatContainer" :class="['border border-gray-300 dark:border-gray-600 rounded-md p-4 h-96 overflow-y-auto mb-4', { blinking: isGenerating }]"> |
60 | 52 | <div
|
61 | 53 | v-for="(msg, index) in messages"
|
62 | 54 | :key="index"
|
|
71 | 63 | <div
|
72 | 64 | v-else
|
73 | 65 | :class="[ 'message', 'bg-blue-500 text-white' ]"
|
74 |
| - class="p-3 rounded-md max-w-lg md:max-w-xl" |
75 |
| - > |
| 66 | + class="p-3 rounded-md max-w-lg md:max-w-xl"> |
76 | 67 | {{ msg.text }}
|
77 | 68 | </div>
|
78 | 69 | </div>
|
|
0 commit comments