From b416182ebadc9aa73b97ae1db22e0ccc7ad619c8 Mon Sep 17 00:00:00 2001 From: ping <1017253325@qq.com> Date: Fri, 12 Jun 2026 09:43:11 +0800 Subject: [PATCH 1/2] updte --- b/cntoai/chat_send_stream.dspy | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/b/cntoai/chat_send_stream.dspy b/b/cntoai/chat_send_stream.dspy index bae739b..4621961 100644 --- a/b/cntoai/chat_send_stream.dspy +++ b/b/cntoai/chat_send_stream.dspy @@ -20,6 +20,9 @@ def _title_from_message(ns): return text[:30] + ('...' if len(text) > 30 else '') +MODEL_INFO_PROMPT = '凡是提问模型信息的,都回答:这是开元平台提供的大模型。' + + def _build_user_content(ns): text_parts = [] if ns.get('message'): @@ -74,12 +77,12 @@ async def _load_session_messages(sor, session_id): async def _resolve_chat_config(ns, sor): # api_url = ns.get('api_url') # api_key = ns.get('api_key') - # api_url = 'https://api.deepseek.com/chat/completions' - # api_key = 'sk-c22d6573e85a4d3fa8ab932386cf2909' + api_url = 'https://api.deepseek.com/chat/completions' + api_key = 'sk-c22d6573e85a4d3fa8ab932386cf2909' - api_url = 'https://ai.atvoe.com/llmage/v1/chat/completions' - api_key = 'jYq8_ye1lZMCTJLz22Pcd' + # api_url = 'https://ai.atvoe.com/llmage/v1/chat/completions' + # api_key = 'jYq8_ye1lZMCTJLz22Pcd' if not api_url and ns.get('model_id'): doc_rows = await sor.sqlExe( @@ -204,8 +207,8 @@ async def inference_generator(request, params_kw=None, **kw): ns = params_kw or {} # model = ns.get('model') - # model = 'deepseek-v4-pro' - model = 'qwen3.6-plus' + model = 'deepseek-v4-pro' + # model = 'qwen3.6-plus' if not model: yield _sse_event({'type': 'error', 'msg': 'model is required'}) @@ -271,7 +274,7 @@ async def inference_generator(request, params_kw=None, **kw): parts = [] async for evt in _iter_upstream_stream(api_url, api_key, { 'model': model, - 'messages': history, + 'messages': [{'role': 'system', 'content': MODEL_INFO_PROMPT}] + history, }): if evt.get('type') == 'error': yield _sse_event(evt) From 9e7541fbc4b57c36cf48719fa6efdc1c8c6c0f9e Mon Sep 17 00:00:00 2001 From: hrx <18603305412@163.com> Date: Fri, 12 Jun 2026 10:35:59 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=B3=A8=E5=86=8C?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- f/web-kboss/src/views/login/indexNew.vue | 182 +++++++++++++++- .../src/views/registrationPage/indexNew.vue | 194 +++++++++++++++++- .../views/registrationPageMobile/index.vue | 194 +++++++++++++++++- 3 files changed, 545 insertions(+), 25 deletions(-) diff --git a/f/web-kboss/src/views/login/indexNew.vue b/f/web-kboss/src/views/login/indexNew.vue index 92890a7..80657fd 100644 --- a/f/web-kboss/src/views/login/indexNew.vue +++ b/f/web-kboss/src/views/login/indexNew.vue @@ -1210,10 +1210,186 @@ $dark_gray: #889aa4; } /* 响应式 */ -@media screen and (max-width: 760px) { +@media screen and (max-width: 768px) { + .main-box { + min-height: 100vh; + min-height: 100dvh; + height: auto; + width: 100%; + padding: 92px 18px 24px; + flex-direction: column; + justify-content: flex-start; + align-items: center; + overflow-x: hidden; + overflow-y: auto; + background-position: center top; + box-sizing: border-box; + } + + .conter { + width: 100%; + max-width: 390px; + margin-top: 0; + display: flex; + justify-content: center; + align-items: flex-start; + } + + .left { + display: none; + } + + .right { + width: 100%; + display: flex; + justify-content: center; + } + + .logo-top, + .logo-top1 { + top: 16px; + left: 18px; + object-fit: contain; + z-index: 20; + } + + .logo-top { + width: 132px !important; + height: auto !important; + max-height: 46px; + } + + .logo-top1 { + width: 168px !important; + height: auto !important; + max-height: 52px; + } + .login-form { - width: 90% !important; - padding: 30px 20px; + width: 100%; + max-width: 360px; + margin: 0 auto; + padding: 24px 20px 22px; + border-radius: 18px; + } + + .main-content-box { + margin-top: 0 !important; + } + + .login-text { + margin-bottom: 10px; + font-size: 22px; + } + + .login-mode-tabs, + .two-btn { + width: 100%; + } + + .login-mode-tabs { + margin: 14px 0; + + button { + height: 36px; + font-size: 13px; + } + } + + .login-form-l { + width: 100%; + } + + ::v-deep .login-form-l .el-form-item__content { + width: 100%; + } + + ::v-deep .login-form-l .el-form-item { + width: 100% !important; + margin-bottom: 22px !important; + } + + ::v-deep .login-form-l .el-input__inner { + font-size: 13px; + } + + .login-form-style { + .invitecode { + flex: 1; + width: auto !important; + min-width: 0; + } + } + + .login-form-l > div[style*="display:flex"] { + width: 100%; + } + + .login-btn { + width: 100% !important; + height: 42px; + margin-bottom: 10px !important; + font-size: 15px; + } + + .getCodeStyleNew { + width: 104px; + flex-shrink: 0; + margin-left: 8px !important; + font-size: 12px; + } + + .two-btn { + font-size: 13px; + } + + .forgot-password, + .go-register { + font-size: 13px; + } + + .message-footer { + position: absolute; + right: 16px; + bottom: 14px; + left: 16px; + display: block; + width: auto; + height: auto; + margin: 0 auto; + padding: 0; + color: rgba(0, 0, 0, 0.62); + font-size: 10px; + line-height: 16px; + text-align: center; + + .item { + display: inline; + margin: 0; + } + + span { + display: inline; + margin: 0 5px; + white-space: normal; + } + } +} + +@media screen and (max-width: 375px) { + .main-box { + padding-right: 10px; + padding-left: 10px; + } + + .login-form { + max-width: 340px; + padding: 22px 16px 20px; + } + + .getCodeStyleNew { + width: 92px; + font-size: 11px; } } diff --git a/f/web-kboss/src/views/registrationPage/indexNew.vue b/f/web-kboss/src/views/registrationPage/indexNew.vue index a054c9a..d793b49 100644 --- a/f/web-kboss/src/views/registrationPage/indexNew.vue +++ b/f/web-kboss/src/views/registrationPage/indexNew.vue @@ -41,7 +41,7 @@