mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-01 05:14:25 +00:00
feat(provider): optimize provider and model configuration management (#377)
* feat(provider): optimize provider and model configuration management * style(provider): use default tabs variant in provider settings dialog * style(provider): make tabs list full width * feat(provider): make model card row clickable and remove pencil edit icon * feat(settings): persist active settings tab in url hash * feat(agent): add search box and alphabetical sorting for provider and model selectors * refactor(providers): remove frontend pagination and display all models in scrollable list * fix(providers): address code review findings for model editing, i18n, and api protocol propagation
This commit is contained in:
+23
@@ -296,6 +296,7 @@ export * from "./providers_description.js";
|
||||
export * from "./configured_ai_providers.js";
|
||||
export * from "./add_provider.js";
|
||||
export * from "./search_providers_placeholder.js";
|
||||
export * from "./no_providers_found.js";
|
||||
export * from "./built_in.js";
|
||||
export * from "./models_count.js";
|
||||
export * from "./n_models_count.js";
|
||||
@@ -324,6 +325,20 @@ export * from "./api_key_placeholder.js";
|
||||
export * from "./api_key_description.js";
|
||||
export * from "./models_configuration.js";
|
||||
export * from "./add_model.js";
|
||||
export * from "./edit_model.js";
|
||||
export * from "./delete_model.js";
|
||||
export * from "./delete_model_confirmation.js";
|
||||
export * from "./model_created_successfully.js";
|
||||
export * from "./model_updated_successfully.js";
|
||||
export * from "./model_deleted_successfully.js";
|
||||
export * from "./models.js";
|
||||
export * from "./search_models_placeholder.js";
|
||||
export * from "./no_models_found.js";
|
||||
export * from "./page_info.js";
|
||||
export * from "./previous.js";
|
||||
export * from "./next.js";
|
||||
export * from "./pricing.js";
|
||||
export * from "./parameters.js";
|
||||
export * from "./model_id.js";
|
||||
export * from "./display_name_optional.js";
|
||||
export * from "./reasoning_support.js";
|
||||
@@ -331,8 +346,16 @@ export * from "./context_window_tokens.js";
|
||||
export * from "./max_output_tokens.js";
|
||||
export * from "./input_cost_1m.js";
|
||||
export * from "./output_cost_1m.js";
|
||||
export * from "./tokens.js";
|
||||
export * from "./cache_read_cost_1m.js";
|
||||
export * from "./cache_write_cost_1m.js";
|
||||
export * from "./save_configuration.js";
|
||||
export * from "./at_least_one_model_required.js";
|
||||
export * from "./model_id_already_exists.js";
|
||||
export * from "./model_id_placeholder.js";
|
||||
export * from "./model_name_placeholder.js";
|
||||
export * from "./cost_per_million.js";
|
||||
export * from "./max_tokens_label.js";
|
||||
export * from "./provider.js";
|
||||
export * from "./model.js";
|
||||
export * from "./select_provider.js";
|
||||
|
||||
+23
@@ -298,6 +298,7 @@ export * from './providers_description.js'
|
||||
export * from './configured_ai_providers.js'
|
||||
export * from './add_provider.js'
|
||||
export * from './search_providers_placeholder.js'
|
||||
export * from './no_providers_found.js'
|
||||
export * from './built_in.js'
|
||||
export * from './models_count.js'
|
||||
export * from './n_models_count.js'
|
||||
@@ -326,6 +327,20 @@ export * from './api_key_placeholder.js'
|
||||
export * from './api_key_description.js'
|
||||
export * from './models_configuration.js'
|
||||
export * from './add_model.js'
|
||||
export * from './edit_model.js'
|
||||
export * from './delete_model.js'
|
||||
export * from './delete_model_confirmation.js'
|
||||
export * from './model_created_successfully.js'
|
||||
export * from './model_updated_successfully.js'
|
||||
export * from './model_deleted_successfully.js'
|
||||
export * from './models.js'
|
||||
export * from './search_models_placeholder.js'
|
||||
export * from './no_models_found.js'
|
||||
export * from './page_info.js'
|
||||
export * from './previous.js'
|
||||
export * from './next.js'
|
||||
export * from './pricing.js'
|
||||
export * from './parameters.js'
|
||||
export * from './model_id.js'
|
||||
export * from './display_name_optional.js'
|
||||
export * from './reasoning_support.js'
|
||||
@@ -333,8 +348,16 @@ export * from './context_window_tokens.js'
|
||||
export * from './max_output_tokens.js'
|
||||
export * from './input_cost_1m.js'
|
||||
export * from './output_cost_1m.js'
|
||||
export * from './tokens.js'
|
||||
export * from './cache_read_cost_1m.js'
|
||||
export * from './cache_write_cost_1m.js'
|
||||
export * from './save_configuration.js'
|
||||
export * from './at_least_one_model_required.js'
|
||||
export * from './model_id_already_exists.js'
|
||||
export * from './model_id_placeholder.js'
|
||||
export * from './model_name_placeholder.js'
|
||||
export * from './cost_per_million.js'
|
||||
export * from './max_tokens_label.js'
|
||||
export * from './provider.js'
|
||||
export * from './model.js'
|
||||
export * from './select_provider.js'
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Cache Read Cost (1M)" |
|
||||
*
|
||||
* @param {Cache_Read_Cost_1mInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const cache_read_cost_1m: ((inputs?: Cache_Read_Cost_1mInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Cache_Read_Cost_1mInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Cache_Read_Cost_1mInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Cache_Read_Cost_1mInputs */
|
||||
|
||||
const en_cache_read_cost_1m = /** @type {(inputs: Cache_Read_Cost_1mInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Cache Read Cost (1M)`)
|
||||
};
|
||||
|
||||
const zh_cache_read_cost_1m = /** @type {(inputs: Cache_Read_Cost_1mInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`缓存读取成本(每百万)`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Cache Read Cost (1M)" |
|
||||
*
|
||||
* @param {Cache_Read_Cost_1mInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const cache_read_cost_1m = /** @type {((inputs?: Cache_Read_Cost_1mInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Cache_Read_Cost_1mInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_cache_read_cost_1m(inputs)
|
||||
return zh_cache_read_cost_1m(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Cache Write Cost (1M)" |
|
||||
*
|
||||
* @param {Cache_Write_Cost_1mInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const cache_write_cost_1m: ((inputs?: Cache_Write_Cost_1mInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Cache_Write_Cost_1mInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Cache_Write_Cost_1mInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Cache_Write_Cost_1mInputs */
|
||||
|
||||
const en_cache_write_cost_1m = /** @type {(inputs: Cache_Write_Cost_1mInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Cache Write Cost (1M)`)
|
||||
};
|
||||
|
||||
const zh_cache_write_cost_1m = /** @type {(inputs: Cache_Write_Cost_1mInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`缓存写入成本(每百万)`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Cache Write Cost (1M)" |
|
||||
*
|
||||
* @param {Cache_Write_Cost_1mInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const cache_write_cost_1m = /** @type {((inputs?: Cache_Write_Cost_1mInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Cache_Write_Cost_1mInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_cache_write_cost_1m(inputs)
|
||||
return zh_cache_write_cost_1m(inputs)
|
||||
});
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "${input}/1M in · ${output}/1M out" |
|
||||
*
|
||||
* @param {Cost_Per_MillionInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const cost_per_million: ((inputs: Cost_Per_MillionInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Cost_Per_MillionInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Cost_Per_MillionInputs = {
|
||||
input: NonNullable<unknown>;
|
||||
output: NonNullable<unknown>;
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{ input: NonNullable<unknown>, output: NonNullable<unknown> }} Cost_Per_MillionInputs */
|
||||
|
||||
const en_cost_per_million = /** @type {(inputs: Cost_Per_MillionInputs) => LocalizedString} */ (i) => {
|
||||
return /** @type {LocalizedString} */ (`$${i?.input}/1M in · $${i?.output}/1M out`)
|
||||
};
|
||||
|
||||
const zh_cost_per_million = /** @type {(inputs: Cost_Per_MillionInputs) => LocalizedString} */ (i) => {
|
||||
return /** @type {LocalizedString} */ (`$${i?.input}/1M 输入 · $${i?.output}/1M 输出`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "${input}/1M in · ${output}/1M out" |
|
||||
*
|
||||
* @param {Cost_Per_MillionInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const cost_per_million = /** @type {((inputs: Cost_Per_MillionInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Cost_Per_MillionInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_cost_per_million(inputs)
|
||||
return zh_cost_per_million(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Delete Model" |
|
||||
*
|
||||
* @param {Delete_ModelInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const delete_model: ((inputs?: Delete_ModelInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Delete_ModelInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Delete_ModelInputs = {};
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Delete_ModelInputs */
|
||||
|
||||
const en_delete_model = /** @type {(inputs: Delete_ModelInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Delete Model`)
|
||||
};
|
||||
|
||||
const zh_delete_model = /** @type {(inputs: Delete_ModelInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`删除模型`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Delete Model" |
|
||||
*
|
||||
* @param {Delete_ModelInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const delete_model = /** @type {((inputs?: Delete_ModelInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Delete_ModelInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_delete_model(inputs)
|
||||
return zh_delete_model(inputs)
|
||||
});
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "This action cannot be undone. This will permanently delete the model \"{name}\"." |
|
||||
*
|
||||
* @param {Delete_Model_ConfirmationInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const delete_model_confirmation: ((inputs: Delete_Model_ConfirmationInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Delete_Model_ConfirmationInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Delete_Model_ConfirmationInputs = {
|
||||
name: NonNullable<unknown>;
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{ name: NonNullable<unknown> }} Delete_Model_ConfirmationInputs */
|
||||
|
||||
const en_delete_model_confirmation = /** @type {(inputs: Delete_Model_ConfirmationInputs) => LocalizedString} */ (i) => {
|
||||
return /** @type {LocalizedString} */ (`This action cannot be undone. This will permanently delete the model "${i?.name}".`)
|
||||
};
|
||||
|
||||
const zh_delete_model_confirmation = /** @type {(inputs: Delete_Model_ConfirmationInputs) => LocalizedString} */ (i) => {
|
||||
return /** @type {LocalizedString} */ (`此操作无法撤销。这将永久删除模型 "${i?.name}"。`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "This action cannot be undone. This will permanently delete the model \"{name}\"." |
|
||||
*
|
||||
* @param {Delete_Model_ConfirmationInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const delete_model_confirmation = /** @type {((inputs: Delete_Model_ConfirmationInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Delete_Model_ConfirmationInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_delete_model_confirmation(inputs)
|
||||
return zh_delete_model_confirmation(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Edit Model" |
|
||||
*
|
||||
* @param {Edit_ModelInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const edit_model: ((inputs?: Edit_ModelInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Edit_ModelInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Edit_ModelInputs = {};
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Edit_ModelInputs */
|
||||
|
||||
const en_edit_model = /** @type {(inputs: Edit_ModelInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Edit Model`)
|
||||
};
|
||||
|
||||
const zh_edit_model = /** @type {(inputs: Edit_ModelInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`编辑模型`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Edit Model" |
|
||||
*
|
||||
* @param {Edit_ModelInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const edit_model = /** @type {((inputs?: Edit_ModelInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Edit_ModelInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_edit_model(inputs)
|
||||
return zh_edit_model(inputs)
|
||||
});
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "max {count}" |
|
||||
*
|
||||
* @param {Max_Tokens_LabelInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const max_tokens_label: ((inputs: Max_Tokens_LabelInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Max_Tokens_LabelInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Max_Tokens_LabelInputs = {
|
||||
count: NonNullable<unknown>;
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{ count: NonNullable<unknown> }} Max_Tokens_LabelInputs */
|
||||
|
||||
const en_max_tokens_label = /** @type {(inputs: Max_Tokens_LabelInputs) => LocalizedString} */ (i) => {
|
||||
return /** @type {LocalizedString} */ (`max ${i?.count}`)
|
||||
};
|
||||
|
||||
const zh_max_tokens_label = /** @type {(inputs: Max_Tokens_LabelInputs) => LocalizedString} */ (i) => {
|
||||
return /** @type {LocalizedString} */ (`最大 ${i?.count}`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "max {count}" |
|
||||
*
|
||||
* @param {Max_Tokens_LabelInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const max_tokens_label = /** @type {((inputs: Max_Tokens_LabelInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Max_Tokens_LabelInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_max_tokens_label(inputs)
|
||||
return zh_max_tokens_label(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Model created successfully" |
|
||||
*
|
||||
* @param {Model_Created_SuccessfullyInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const model_created_successfully: ((inputs?: Model_Created_SuccessfullyInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Model_Created_SuccessfullyInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Model_Created_SuccessfullyInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Model_Created_SuccessfullyInputs */
|
||||
|
||||
const en_model_created_successfully = /** @type {(inputs: Model_Created_SuccessfullyInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Model created successfully`)
|
||||
};
|
||||
|
||||
const zh_model_created_successfully = /** @type {(inputs: Model_Created_SuccessfullyInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`模型创建成功`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Model created successfully" |
|
||||
*
|
||||
* @param {Model_Created_SuccessfullyInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const model_created_successfully = /** @type {((inputs?: Model_Created_SuccessfullyInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Model_Created_SuccessfullyInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_model_created_successfully(inputs)
|
||||
return zh_model_created_successfully(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Model deleted successfully" |
|
||||
*
|
||||
* @param {Model_Deleted_SuccessfullyInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const model_deleted_successfully: ((inputs?: Model_Deleted_SuccessfullyInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Model_Deleted_SuccessfullyInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Model_Deleted_SuccessfullyInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Model_Deleted_SuccessfullyInputs */
|
||||
|
||||
const en_model_deleted_successfully = /** @type {(inputs: Model_Deleted_SuccessfullyInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Model deleted successfully`)
|
||||
};
|
||||
|
||||
const zh_model_deleted_successfully = /** @type {(inputs: Model_Deleted_SuccessfullyInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`模型删除成功`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Model deleted successfully" |
|
||||
*
|
||||
* @param {Model_Deleted_SuccessfullyInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const model_deleted_successfully = /** @type {((inputs?: Model_Deleted_SuccessfullyInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Model_Deleted_SuccessfullyInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_model_deleted_successfully(inputs)
|
||||
return zh_model_deleted_successfully(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Model ID already exists for this provider" |
|
||||
*
|
||||
* @param {Model_Id_Already_ExistsInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const model_id_already_exists: ((inputs?: Model_Id_Already_ExistsInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Model_Id_Already_ExistsInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Model_Id_Already_ExistsInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Model_Id_Already_ExistsInputs */
|
||||
|
||||
const en_model_id_already_exists = /** @type {(inputs: Model_Id_Already_ExistsInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Model ID already exists for this provider`)
|
||||
};
|
||||
|
||||
const zh_model_id_already_exists = /** @type {(inputs: Model_Id_Already_ExistsInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`此提供商已存在该模型 ID`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Model ID already exists for this provider" |
|
||||
*
|
||||
* @param {Model_Id_Already_ExistsInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const model_id_already_exists = /** @type {((inputs?: Model_Id_Already_ExistsInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Model_Id_Already_ExistsInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_model_id_already_exists(inputs)
|
||||
return zh_model_id_already_exists(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "e.g., gpt-4o, claude-3-5-sonnet-20241022" |
|
||||
*
|
||||
* @param {Model_Id_PlaceholderInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const model_id_placeholder: ((inputs?: Model_Id_PlaceholderInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Model_Id_PlaceholderInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Model_Id_PlaceholderInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Model_Id_PlaceholderInputs */
|
||||
|
||||
const en_model_id_placeholder = /** @type {(inputs: Model_Id_PlaceholderInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`e.g., gpt-4o, claude-3-5-sonnet-20241022`)
|
||||
};
|
||||
|
||||
const zh_model_id_placeholder = /** @type {(inputs: Model_Id_PlaceholderInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`例如:gpt-4o, claude-3-5-sonnet-20241022`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "e.g., gpt-4o, claude-3-5-sonnet-20241022" |
|
||||
*
|
||||
* @param {Model_Id_PlaceholderInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const model_id_placeholder = /** @type {((inputs?: Model_Id_PlaceholderInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Model_Id_PlaceholderInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_model_id_placeholder(inputs)
|
||||
return zh_model_id_placeholder(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "e.g., GPT-4o" |
|
||||
*
|
||||
* @param {Model_Name_PlaceholderInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const model_name_placeholder: ((inputs?: Model_Name_PlaceholderInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Model_Name_PlaceholderInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Model_Name_PlaceholderInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Model_Name_PlaceholderInputs */
|
||||
|
||||
const en_model_name_placeholder = /** @type {(inputs: Model_Name_PlaceholderInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`e.g., GPT-4o`)
|
||||
};
|
||||
|
||||
const zh_model_name_placeholder = /** @type {(inputs: Model_Name_PlaceholderInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`例如:GPT-4o`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "e.g., GPT-4o" |
|
||||
*
|
||||
* @param {Model_Name_PlaceholderInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const model_name_placeholder = /** @type {((inputs?: Model_Name_PlaceholderInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Model_Name_PlaceholderInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_model_name_placeholder(inputs)
|
||||
return zh_model_name_placeholder(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Model updated successfully" |
|
||||
*
|
||||
* @param {Model_Updated_SuccessfullyInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const model_updated_successfully: ((inputs?: Model_Updated_SuccessfullyInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Model_Updated_SuccessfullyInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Model_Updated_SuccessfullyInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Model_Updated_SuccessfullyInputs */
|
||||
|
||||
const en_model_updated_successfully = /** @type {(inputs: Model_Updated_SuccessfullyInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Model updated successfully`)
|
||||
};
|
||||
|
||||
const zh_model_updated_successfully = /** @type {(inputs: Model_Updated_SuccessfullyInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`模型更新成功`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Model updated successfully" |
|
||||
*
|
||||
* @param {Model_Updated_SuccessfullyInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const model_updated_successfully = /** @type {((inputs?: Model_Updated_SuccessfullyInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Model_Updated_SuccessfullyInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_model_updated_successfully(inputs)
|
||||
return zh_model_updated_successfully(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Models" |
|
||||
*
|
||||
* @param {ModelsInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const models: ((inputs?: ModelsInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<ModelsInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type ModelsInputs = {};
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} ModelsInputs */
|
||||
|
||||
const en_models = /** @type {(inputs: ModelsInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Models`)
|
||||
};
|
||||
|
||||
const zh_models = /** @type {(inputs: ModelsInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`模型列表`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Models" |
|
||||
*
|
||||
* @param {ModelsInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const models = /** @type {((inputs?: ModelsInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<ModelsInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_models(inputs)
|
||||
return zh_models(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Next" |
|
||||
*
|
||||
* @param {NextInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const next: ((inputs?: NextInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<NextInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type NextInputs = {};
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} NextInputs */
|
||||
|
||||
const en_next = /** @type {(inputs: NextInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Next`)
|
||||
};
|
||||
|
||||
const zh_next = /** @type {(inputs: NextInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`下一页`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Next" |
|
||||
*
|
||||
* @param {NextInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const next = /** @type {((inputs?: NextInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<NextInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_next(inputs)
|
||||
return zh_next(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "No models found" |
|
||||
*
|
||||
* @param {No_Models_FoundInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const no_models_found: ((inputs?: No_Models_FoundInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<No_Models_FoundInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type No_Models_FoundInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} No_Models_FoundInputs */
|
||||
|
||||
const en_no_models_found = /** @type {(inputs: No_Models_FoundInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`No models found`)
|
||||
};
|
||||
|
||||
const zh_no_models_found = /** @type {(inputs: No_Models_FoundInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`未找到模型`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "No models found" |
|
||||
*
|
||||
* @param {No_Models_FoundInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const no_models_found = /** @type {((inputs?: No_Models_FoundInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<No_Models_FoundInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_no_models_found(inputs)
|
||||
return zh_no_models_found(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "No providers found" |
|
||||
*
|
||||
* @param {No_Providers_FoundInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const no_providers_found: ((inputs?: No_Providers_FoundInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<No_Providers_FoundInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type No_Providers_FoundInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} No_Providers_FoundInputs */
|
||||
|
||||
const en_no_providers_found = /** @type {(inputs: No_Providers_FoundInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`No providers found`)
|
||||
};
|
||||
|
||||
const zh_no_providers_found = /** @type {(inputs: No_Providers_FoundInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`未找到提供商`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "No providers found" |
|
||||
*
|
||||
* @param {No_Providers_FoundInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const no_providers_found = /** @type {((inputs?: No_Providers_FoundInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<No_Providers_FoundInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_no_providers_found(inputs)
|
||||
return zh_no_providers_found(inputs)
|
||||
});
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Page {current} of {total}" |
|
||||
*
|
||||
* @param {Page_InfoInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const page_info: ((inputs: Page_InfoInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Page_InfoInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Page_InfoInputs = {
|
||||
current: NonNullable<unknown>;
|
||||
total: NonNullable<unknown>;
|
||||
};
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{ current: NonNullable<unknown>, total: NonNullable<unknown> }} Page_InfoInputs */
|
||||
|
||||
const en_page_info = /** @type {(inputs: Page_InfoInputs) => LocalizedString} */ (i) => {
|
||||
return /** @type {LocalizedString} */ (`Page ${i?.current} of ${i?.total}`)
|
||||
};
|
||||
|
||||
const zh_page_info = /** @type {(inputs: Page_InfoInputs) => LocalizedString} */ (i) => {
|
||||
return /** @type {LocalizedString} */ (`第 ${i?.current} 页,共 ${i?.total} 页`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Page {current} of {total}" |
|
||||
*
|
||||
* @param {Page_InfoInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const page_info = /** @type {((inputs: Page_InfoInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Page_InfoInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_page_info(inputs)
|
||||
return zh_page_info(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Parameters" |
|
||||
*
|
||||
* @param {ParametersInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const parameters: ((inputs?: ParametersInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<ParametersInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type ParametersInputs = {};
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} ParametersInputs */
|
||||
|
||||
const en_parameters = /** @type {(inputs: ParametersInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Parameters`)
|
||||
};
|
||||
|
||||
const zh_parameters = /** @type {(inputs: ParametersInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`参数`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Parameters" |
|
||||
*
|
||||
* @param {ParametersInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const parameters = /** @type {((inputs?: ParametersInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<ParametersInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_parameters(inputs)
|
||||
return zh_parameters(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Previous" |
|
||||
*
|
||||
* @param {PreviousInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const previous: ((inputs?: PreviousInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<PreviousInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type PreviousInputs = {};
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} PreviousInputs */
|
||||
|
||||
const en_previous = /** @type {(inputs: PreviousInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Previous`)
|
||||
};
|
||||
|
||||
const zh_previous = /** @type {(inputs: PreviousInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`上一页`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Previous" |
|
||||
*
|
||||
* @param {PreviousInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const previous = /** @type {((inputs?: PreviousInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<PreviousInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_previous(inputs)
|
||||
return zh_previous(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Pricing ($ per 1M tokens)" |
|
||||
*
|
||||
* @param {PricingInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const pricing: ((inputs?: PricingInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<PricingInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type PricingInputs = {};
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} PricingInputs */
|
||||
|
||||
const en_pricing = /** @type {(inputs: PricingInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Pricing ($ per 1M tokens)`)
|
||||
};
|
||||
|
||||
const zh_pricing = /** @type {(inputs: PricingInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`计费(每百万令牌美元)`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Pricing ($ per 1M tokens)" |
|
||||
*
|
||||
* @param {PricingInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const pricing = /** @type {((inputs?: PricingInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<PricingInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_pricing(inputs)
|
||||
return zh_pricing(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Search models by ID or name..." |
|
||||
*
|
||||
* @param {Search_Models_PlaceholderInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const search_models_placeholder: ((inputs?: Search_Models_PlaceholderInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Search_Models_PlaceholderInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Search_Models_PlaceholderInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Search_Models_PlaceholderInputs */
|
||||
|
||||
const en_search_models_placeholder = /** @type {(inputs: Search_Models_PlaceholderInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Search models by ID or name...`)
|
||||
};
|
||||
|
||||
const zh_search_models_placeholder = /** @type {(inputs: Search_Models_PlaceholderInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`按 ID 或名称搜索模型...`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Search models by ID or name..." |
|
||||
*
|
||||
* @param {Search_Models_PlaceholderInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const search_models_placeholder = /** @type {((inputs?: Search_Models_PlaceholderInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Search_Models_PlaceholderInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_search_models_placeholder(inputs)
|
||||
return zh_search_models_placeholder(inputs)
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "tokens" |
|
||||
*
|
||||
* @param {TokensInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const tokens: ((inputs?: TokensInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<TokensInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type TokensInputs = {};
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} TokensInputs */
|
||||
|
||||
const en_tokens = /** @type {(inputs: TokensInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`tokens`)
|
||||
};
|
||||
|
||||
const zh_tokens = /** @type {(inputs: TokensInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`令牌`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "tokens" |
|
||||
*
|
||||
* @param {TokensInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const tokens = /** @type {((inputs?: TokensInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<TokensInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_tokens(inputs)
|
||||
return zh_tokens(inputs)
|
||||
});
|
||||
Reference in New Issue
Block a user