style(web): translate the comments in the src/views directory into English
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
/*
|
||||
* @Author: ZhaoYing
|
||||
* @Date: 2026-02-03 16:50:22
|
||||
* @Last Modified by: ZhaoYing
|
||||
* @Last Modified time: 2026-02-03 16:50:22
|
||||
*/
|
||||
/**
|
||||
* Utility functions for Model Management
|
||||
*/
|
||||
|
||||
import bedrockIcon from '@/assets/images/model/bedrock.svg'
|
||||
import dashscopeIcon from '@/assets/images/model/dashscope.png'
|
||||
import gpustackIcon from '@/assets/images/model/gpustack.png'
|
||||
@@ -5,6 +15,9 @@ import ollamaIcon from '@/assets/images/model/ollama.svg'
|
||||
import openaiIcon from '@/assets/images/model/openai.svg'
|
||||
import xinferenceIcon from '@/assets/images/model/xinference.svg'
|
||||
|
||||
/**
|
||||
* Provider icon mapping
|
||||
*/
|
||||
export const ICONS = {
|
||||
bedrock: bedrockIcon,
|
||||
dashscope: dashscopeIcon,
|
||||
@@ -14,6 +27,11 @@ export const ICONS = {
|
||||
xinference: xinferenceIcon
|
||||
}
|
||||
|
||||
/**
|
||||
* Get logo URL from provider name or URL
|
||||
* @param logo - Provider name or logo URL
|
||||
* @returns Logo URL or undefined
|
||||
*/
|
||||
export const getLogoUrl = (logo?: string) => {
|
||||
if (!logo) {
|
||||
return undefined
|
||||
|
||||
Reference in New Issue
Block a user