mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 12:24:39 +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.3 KiB
JavaScript
Generated
29 lines
1.3 KiB
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{}} Select_Provider_FirstInputs */
|
|
|
|
const en_select_provider_first = /** @type {(inputs: Select_Provider_FirstInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`Select a provider on the left to view available models`)
|
|
};
|
|
|
|
const zh_select_provider_first = /** @type {(inputs: Select_Provider_FirstInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`请先在左侧选择一个提供商以查看可用模型`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Select a provider on the left to view available models" |
|
|
*
|
|
* @param {Select_Provider_FirstInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const select_provider_first = /** @type {((inputs?: Select_Provider_FirstInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Select_Provider_FirstInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_select_provider_first(inputs)
|
|
return zh_select_provider_first(inputs)
|
|
}); |