mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-03 06:24:30 +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 {{}} Edit_Api_KeyInputs */
|
||||
|
||||
const en_edit_api_key = /** @type {(inputs: Edit_Api_KeyInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Edit API Key`)
|
||||
};
|
||||
|
||||
const zh_edit_api_key = /** @type {(inputs: Edit_Api_KeyInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`修改 API 密钥`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Edit API Key" |
|
||||
*
|
||||
* @param {Edit_Api_KeyInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const edit_api_key = /** @type {((inputs?: Edit_Api_KeyInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Edit_Api_KeyInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_edit_api_key(inputs)
|
||||
return zh_edit_api_key(inputs)
|
||||
});
|
||||
Reference in New Issue
Block a user