mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-26 10:55:27 +00:00
* feat(chat): support markups, attachments, and timestamps in agent 1-to-1 chat * feat(chat): improve message card layout with inline badges and integrated assets * fix(chat): enable image attachment thumbnails in 1-to-1 chat cards * fix(chat): address code review feedback on input state, mentions, i18n, and session deletion * fix(chat): replace ring with border color on selected message card
29 lines
1.1 KiB
JavaScript
Generated
29 lines
1.1 KiB
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{}} Thinking_StatusInputs */
|
|
|
|
const en_thinking_status = /** @type {(inputs: Thinking_StatusInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`Thinking...`)
|
|
};
|
|
|
|
const zh_thinking_status = /** @type {(inputs: Thinking_StatusInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`思考中...`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Thinking..." |
|
|
*
|
|
* @param {Thinking_StatusInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const thinking_status = /** @type {((inputs?: Thinking_StatusInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Thinking_StatusInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_thinking_status(inputs)
|
|
return zh_thinking_status(inputs)
|
|
}); |