We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 309f96e commit 2d5bcadCopy full SHA for 2d5bcad
tools/server/webui/src/lib/utils/model-names.ts
@@ -6,6 +6,13 @@
6
*
7
* @param modelName - The model name or path to normalize
8
* @returns The normalized model name (filename only)
9
+ *
10
+ * @example
11
+ * normalizeModelName('models/llama-3.1-8b') // Returns: 'llama-3.1-8b'
12
+ * normalizeModelName('C:\\Models\\gpt-4') // Returns: 'gpt-4'
13
+ * normalizeModelName('simple-model') // Returns: 'simple-model'
14
+ * normalizeModelName(' spaced ') // Returns: 'spaced'
15
+ * normalizeModelName('') // Returns: ''
16
*/
17
export function normalizeModelName(modelName: string): string {
18
const trimmed = modelName.trim();
0 commit comments