mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-11-26 10:06:31 +00:00
feat(webui): models page
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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('')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user