mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 06:54:28 +00:00
feat(agent): add built-in image and video generation tools and settings (#382)
* feat(agent): add built-in image and video generation tools and settings * fix(settings): refine media generation layout and expose media tools in agent and quota forms * feat(media-generation): add alibaba, bytedance, minimax, prodia, and azure providers * feat(agent): support s3 key references for media generation and s3KeyOnly in read_asset
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Loading_ModelsInputs */
|
||||
|
||||
const en_loading_models = /** @type {(inputs: Loading_ModelsInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Loading models...`)
|
||||
};
|
||||
|
||||
const zh_loading_models = /** @type {(inputs: Loading_ModelsInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`正在加载模型...`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Loading models..." |
|
||||
*
|
||||
* @param {Loading_ModelsInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const loading_models = /** @type {((inputs?: Loading_ModelsInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Loading_ModelsInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_loading_models(inputs)
|
||||
return zh_loading_models(inputs)
|
||||
});
|
||||
Reference in New Issue
Block a user