mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-01 13:34:33 +00:00
* feat(settings): redesign image and video generation settings with tabs, card switch, and 2-box model selector * fix(settings): remove model type checkmark, remove search inputs, and fix select box scrolling in add model dialog * refactor(settings): remove display name input from add model dialog * feat(media-generation): add gemini-omni-1.1-flash as default video model via google interactions api * feat(media-generation): forward video parameters to gemini-omni-1.1-flash via system instructions and prompt
29 lines
1.1 KiB
JavaScript
Generated
29 lines
1.1 KiB
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{}} Search_ModelsInputs */
|
|
|
|
const en_search_models = /** @type {(inputs: Search_ModelsInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`Search models...`)
|
|
};
|
|
|
|
const zh_search_models = /** @type {(inputs: Search_ModelsInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`搜索模型...`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Search models..." |
|
|
*
|
|
* @param {Search_ModelsInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const search_models = /** @type {((inputs?: Search_ModelsInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Search_ModelsInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_search_models(inputs)
|
|
return zh_search_models(inputs)
|
|
}); |