You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NextWeb/.next/static/webpack/app/page.cdfe021e210efe8f.hot-u...

22 lines
30 KiB
JavaScript

9 months ago
"use strict";
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
self["webpackHotUpdate_N_E"]("app/page",{
/***/ "(app-pages-browser)/./app/store/config.ts":
/*!*****************************!*\
!*** ./app/store/config.ts ***!
\*****************************/
/***/ (function(module, __webpack_exports__, __webpack_require__) {
eval(__webpack_require__.ts("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DEFAULT_CONFIG: function() { return /* binding */ DEFAULT_CONFIG; },\n/* harmony export */ ModalConfigValidator: function() { return /* binding */ ModalConfigValidator; },\n/* harmony export */ SubmitKey: function() { return /* binding */ SubmitKey; },\n/* harmony export */ TTSConfigValidator: function() { return /* binding */ TTSConfigValidator; },\n/* harmony export */ Theme: function() { return /* binding */ Theme; },\n/* harmony export */ limitNumber: function() { return /* binding */ limitNumber; },\n/* harmony export */ useAppConfig: function() { return /* binding */ useAppConfig; }\n/* harmony export */ });\n/* harmony import */ var _config_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config/client */ \"(app-pages-browser)/./app/config/client.ts\");\n/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constant */ \"(app-pages-browser)/./app/constant.ts\");\n/* harmony import */ var _utils_store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/store */ \"(app-pages-browser)/./app/utils/store.ts\");\n\n\n\nvar SubmitKey;\n(function(SubmitKey) {\n SubmitKey[\"Enter\"] = \"Enter\";\n SubmitKey[\"CtrlEnter\"] = \"Ctrl + Enter\";\n SubmitKey[\"ShiftEnter\"] = \"Shift + Enter\";\n SubmitKey[\"AltEnter\"] = \"Alt + Enter\";\n SubmitKey[\"MetaEnter\"] = \"Meta + Enter\";\n})(SubmitKey || (SubmitKey = {}));\nvar Theme;\n(function(Theme) {\n Theme[\"Auto\"] = \"auto\";\n Theme[\"Dark\"] = \"dark\";\n Theme[\"Light\"] = \"light\";\n})(Theme || (Theme = {}));\nconst config = (0,_config_client__WEBPACK_IMPORTED_MODULE_0__.getClientConfig)();\nvar _config_template;\nconst DEFAULT_CONFIG = {\n lastUpdate: Date.now(),\n submitKey: \"Enter\",\n avatar: \"1f603\",\n fontSize: 14,\n fontFamily: \"\",\n theme: \"auto\",\n tightBorder: !!(config === null || config === void 0 ? void 0 : config.isApp),\n sendPreviewBubble: true,\n enableAutoGenerateTitle: true,\n sidebarWidth: _constant__WEBPACK_IMPORTED_MODULE_1__.DEFAULT_SIDEBAR_WIDTH,\n enableArtifacts: true,\n enableCodeFold: true,\n disablePromptHint: false,\n dontShowMaskSplashScreen: true,\n hideBuiltinMasks: false,\n customModels: \"\",\n models: _constant__WEBPACK_IMPORTED_MODULE_1__.DEFAULT_MODELS,\n modelConfig: {\n model: \"deepseek-ai/DeepSeek-V3\",\n providerName: \"SiliconFlow\",\n temperature: 0.5,\n top_p: 1,\n max_tokens: 4000,\n presence_penalty: 0,\n frequency_penalty: 0,\n sendMemory: true,\n historyMessageCount: 4,\n compressMessageLengthThreshold: 1000,\n compressModel: \"\",\n compressProviderName: \"\",\n enableInjectSystemPrompts: false,\n template: (_config_template = config === null || config === void 0 ? void 0 : config.template) !== null && _config_template !== void 0 ? _config_template : _constant__WEBPACK_IMPORTED_MODULE_1__.DEFAULT_INPUT_TEMPLATE,\n size: \"1024x1024\",\n quality: \"standard\",\n style: \"vivid\"\n },\n ttsConfig: {\n enable: false,\n autoplay: false,\n engine: _constant__WEBPACK_IMPORTED_MODULE_1__.DEFAULT_TTS_ENGINE,\n model: _constant__WEBPACK_IMPORTED_MODULE_1__.DEFAULT_TTS_MODEL,\n voice: _constant__WEBPACK_IMPORTED_MODULE_1__.DEFAULT_TTS_VOICE,\n speed: 1.0\n },\n realtimeConfig: {\n enable: true,\n provider: \"SiliconFlow\",\n model: \"gpt-4o-realtime-preview-2024-10-01\",\n apiKey: \"\",\n azure: {\n endpoint: \"\",\n deployment: \"\"\n },\n temperature: 0.9,\n voice: \"alloy\"\n }\n};\nfunction limitNumber(x, min, max, defaultValue) {\n if (isNaN(x)) {\n return defaultValue;\n }\n return Math.min(max, Math.max(min, x));\n}\nconst TTSConfigV
/***/ })
});