- Added Server Configuration settings page (backend + frontend) - Added .env config download/import API - Runtime config updates via UI - Support for all 3 themes (default, air, berry) - i18n support (zh/en)
12 lines
186 B
Go
12 lines
186 B
Go
package deepl
|
|
|
|
import "strings"
|
|
|
|
func parseLangFromModelName(modelName string) string {
|
|
parts := strings.Split(modelName, "-")
|
|
if len(parts) == 1 {
|
|
return "ZH"
|
|
}
|
|
return parts[1]
|
|
}
|