feat(webui): models page

This commit is contained in:
2026-11-25 11:52:37 +00:00
parent 19950c40f6
commit 0f6201da38
12 changed files with 838 additions and 57 deletions
+3 -1
View File
@@ -15,7 +15,9 @@ import { isValidNonNegativeInt, modelMetaSnippet } from '@/lib/snippets'
* discovered/override price (pricing.go: modelMetaFree short-circuits
* before override/builtin/LiteLLM resolution).
*/
const modelId = ref('')
/** Pre-fills the model id (a detail panel opens the form for its own model). */
const props = defineProps<{ presetModelId?: string }>()
const modelId = ref(props.presetModelId ?? '')
const contextRaw = ref('')
const free = ref(false)
+3 -1
View File
@@ -19,7 +19,9 @@ import { isValidNonNegative, pricingSnippet } from '@/lib/snippets'
* together — a one-sided price makes no billing sense — unlike
* ModelMetaForm.vue's independent contextTokens/free fields.
*/
const modelId = ref('')
/** Pre-fills the model id (a detail panel opens the form for its own model). */
const props = defineProps<{ presetModelId?: string }>()
const modelId = ref(props.presetModelId ?? '')
const inputRaw = ref('')
const outputRaw = ref('')