mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 21:59:25 +00:00
* feat(provider): vendor and adapt pi model generator - Vendor generate-models.ts, model-data.ts, and models-dev-reasoning-options.ts from @earendil-works/pi tag v0.82.1 - Adapt imports to use @earendil-works/pi-ai and expose generateModels programmatic function - Add compare.test.ts to verify vendored generator against original built-in catalog - Add packages/core/src/provider/generator to eslint ignores * feat(provider): add provider and model sync api and ui * feat(webui): add checkbox for existing providers and clean dialog description * feat(webui): add expand all and collapse all to sync providers dialog * refactor(provider): remove compare.test.ts and cli overhead from generate-models * fix(provider): add 30s timeout and strict error handling to sync catalog fetching * fix(e2e): eliminate drag-and-drop race condition on webkit Allow requestAnimationFrame collision updates to settle in dragCard helper before releasing pointer, and scope fileCard locator via data-testid to avoid matching sidebar tree items.
29 lines
1.2 KiB
JavaScript
Generated
29 lines
1.2 KiB
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{}} Sync_Providers_AddingInputs */
|
|
|
|
const en_sync_providers_adding = /** @type {(inputs: Sync_Providers_AddingInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`Adding...`)
|
|
};
|
|
|
|
const zh_sync_providers_adding = /** @type {(inputs: Sync_Providers_AddingInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`正在添加...`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Adding..." |
|
|
*
|
|
* @param {Sync_Providers_AddingInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const sync_providers_adding = /** @type {((inputs?: Sync_Providers_AddingInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Sync_Providers_AddingInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_sync_providers_adding(inputs)
|
|
return zh_sync_providers_adding(inputs)
|
|
}); |