mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 23:24:21 +00:00
feat(media-generation): add gemini-omni-1.1-flash video model and redesign settings UI (#383)
* 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
This commit is contained in:
+4
@@ -1339,4 +1339,8 @@ export * from "./add_media_model_desc.js";
|
||||
export * from "./loading_models.js";
|
||||
export * from "./remove_model_prompt.js";
|
||||
export * from "./remove_key.js";
|
||||
export * from "./select_provider_first.js";
|
||||
export * from "./search_providers.js";
|
||||
export * from "./search_models.js";
|
||||
export * from "./default_env_var_desc.js";
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
|
||||
+5
-1
@@ -1340,4 +1340,8 @@ export * from './model_requires_api_key_warning.js'
|
||||
export * from './add_media_model_desc.js'
|
||||
export * from './loading_models.js'
|
||||
export * from './remove_model_prompt.js'
|
||||
export * from './remove_key.js'
|
||||
export * from './remove_key.js'
|
||||
export * from './select_provider_first.js'
|
||||
export * from './search_providers.js'
|
||||
export * from './search_models.js'
|
||||
export * from './default_env_var_desc.js'
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Default: {envKey}" |
|
||||
*
|
||||
* @param {Default_Env_Var_DescInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const default_env_var_desc: ((inputs: Default_Env_Var_DescInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Default_Env_Var_DescInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Default_Env_Var_DescInputs = {
|
||||
envKey: NonNullable<unknown>;
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{ envKey: NonNullable<unknown> }} Default_Env_Var_DescInputs */
|
||||
|
||||
const en_default_env_var_desc = /** @type {(inputs: Default_Env_Var_DescInputs) => LocalizedString} */ (i) => {
|
||||
return /** @type {LocalizedString} */ (`Default: ${i?.envKey}`)
|
||||
};
|
||||
|
||||
const zh_default_env_var_desc = /** @type {(inputs: Default_Env_Var_DescInputs) => LocalizedString} */ (i) => {
|
||||
return /** @type {LocalizedString} */ (`默认:${i?.envKey}`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Default: {envKey}" |
|
||||
*
|
||||
* @param {Default_Env_Var_DescInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const default_env_var_desc = /** @type {((inputs: Default_Env_Var_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Default_Env_Var_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_default_env_var_desc(inputs)
|
||||
return zh_default_env_var_desc(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Search models..." |
|
||||
*
|
||||
* @param {Search_ModelsInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const search_models: ((inputs?: Search_ModelsInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Search_ModelsInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Search_ModelsInputs = {};
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/* 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)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Search providers..." |
|
||||
*
|
||||
* @param {Search_ProvidersInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const search_providers: ((inputs?: Search_ProvidersInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Search_ProvidersInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Search_ProvidersInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Search_ProvidersInputs */
|
||||
|
||||
const en_search_providers = /** @type {(inputs: Search_ProvidersInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Search providers...`)
|
||||
};
|
||||
|
||||
const zh_search_providers = /** @type {(inputs: Search_ProvidersInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`搜索提供商...`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Search providers..." |
|
||||
*
|
||||
* @param {Search_ProvidersInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const search_providers = /** @type {((inputs?: Search_ProvidersInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Search_ProvidersInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_search_providers(inputs)
|
||||
return zh_search_providers(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | 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: ((inputs?: Select_Provider_FirstInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Select_Provider_FirstInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Select_Provider_FirstInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* 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)
|
||||
});
|
||||
Reference in New Issue
Block a user