Files
shumai/packages/webui/paraglide/messages/remove_model_prompt.js
T
Yiling-J 6285ff8618 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
2026-09-06 09:28:53 +08:00

29 lines
1.4 KiB
JavaScript
Generated
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{ modelId: NonNullable<unknown>, provider: NonNullable<unknown> }} Remove_Model_PromptInputs */
const en_remove_model_prompt = /** @type {(inputs: Remove_Model_PromptInputs) => LocalizedString} */ (i) => {
return /** @type {LocalizedString} */ (`Remove model ${i?.modelId} (${i?.provider}) from enabled models?`)
};
const zh_remove_model_prompt = /** @type {(inputs: Remove_Model_PromptInputs) => LocalizedString} */ (i) => {
return /** @type {LocalizedString} */ (`确定要从已启用模型中移除模型 ${i?.modelId}(${i?.provider})吗?`)
};
/**
* | output |
* | --- |
* | "Remove model {modelId} ({provider}) from enabled models?" |
*
* @param {Remove_Model_PromptInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const remove_model_prompt = /** @type {((inputs: Remove_Model_PromptInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Remove_Model_PromptInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_remove_model_prompt(inputs)
return zh_remove_model_prompt(inputs)
});